mirror_iproute2/misc
Masatake YAMATO 97352f1b33 ss: prepare rth when killing inet sock
kill_inet_sock() expects rhn_handle instance is passed
via inet_diag_arg argument. However on the following calling path:

    generic_show_sock
    => show_one_inet_sock
       => kill_inet_sock

rth field of inet_diag_arg is not filled with the address of
rhn_handle instance. As the result ss crashes.

This commit fills the field with newly created rhn_handle
instance.

Changes in v2:
Instead of creating rtn_handle instances for each socket, create
one in upper layer and reuse it.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2018-02-23 08:32:39 -08:00
..
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
arpd.c lib: make resolve_hosts variable common 2017-11-12 16:15:23 -08:00
ifstat.c ifstat, nstat: Check fdopen() return value 2017-08-24 14:49:43 -07:00
lnstat_util.c lnstat_util: Make sure buffer is NUL-terminated 2017-09-01 12:10:54 -07:00
lnstat.c Replace malloc && memset by calloc 2016-07-20 12:05:24 -07:00
lnstat.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
Makefile SPDX license identifiers 2017-11-24 12:21:35 -08:00
nstat.c ifstat, nstat: Check fdopen() return value 2017-08-24 14:49:43 -07:00
rtacct.c misc: fix style issues 2016-03-21 11:56:36 -07:00
ss.c ss: prepare rth when killing inet sock 2018-02-23 08:32:39 -08:00
ssfilter.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
ssfilter.y ss: fix crash with invalid command input file 2017-12-18 11:18:55 -08:00