From: Stephen Hemminger <stephen@networkplumber.org>
To: Masatake YAMATO <yamato@redhat.com>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] ss: prepare rth when killing inet sock
Date: Wed, 14 Feb 2018 07:25:27 -0800 [thread overview]
Message-ID: <20180214072527.7e137003@xeon-e3> (raw)
In-Reply-To: <20180214135004.30586-1-yamato@redhat.com>
On Wed, 14 Feb 2018 22:50:04 +0900
Masatake YAMATO <yamato@redhat.com> wrote:
> 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.
>
> Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Won't this slow down ss because it does open/close of netlink socket
for each socket being displayed. It is not uncommon to run this with
millions of sockets open.
prev parent reply other threads:[~2018-02-14 15:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-14 13:50 [PATCH] ss: prepare rth when killing inet sock Masatake YAMATO
2018-02-14 15:25 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180214072527.7e137003@xeon-e3 \
--to=stephen@networkplumber.org \
--cc=netdev@vger.kernel.org \
--cc=yamato@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).