From: Daniel Wagner <wagi@monom.org>
To: Li Zefan <lizefan@huawei.com>
Cc: netdev@vger.kernel.org, cgroups@vger.kernel.org,
Daniel Wagner <daniel.wagner@bmw-carit.de>,
"David S. Miller" <davem@davemloft.net>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Al Viro <viro@zeniv.linux.org.uk>,
John Fastabend <john.r.fastabend@intel.com>,
Neil Horman <nhorman@tuxdriver.com>
Subject: Re: [PATCH] net: net_cls: fd passed in SCM_RIGHTS datagram not set correctly
Date: Mon, 21 Jan 2013 11:16:50 +0100 [thread overview]
Message-ID: <50FD1592.2000907@monom.org> (raw)
In-Reply-To: <50FD1058.2000306@huawei.com>
On 21.01.2013 10:54, Li Zefan wrote:
> On 2013/1/21 17:38, Daniel Wagner wrote:
>> From: Daniel Wagner <daniel.wagner@bmw-carit.de>
>>
>> Commit 6a328d8c6f03501657ad580f6f98bf9a42583ff7 changed the update
>> logic for the socket but it does not update the SCM_RIGHTS update
>> as well. This patch is based on the net_prio fix commit
>>
>> 48a87cc26c13b68f6cce4e9d769fcb17a6b3e4b8
>>
>> net: netprio: fd passed in SCM_RIGHTS datagram not set correctly
>>
>> A socket fd passed in a SCM_RIGHTS datagram was not getting
>> updated with the new tasks cgrp prioidx. This leaves IO on
>> the socket tagged with the old tasks priority.
>>
>> To fix this add a check in the scm recvmsg path to update the
>> sock cgrp prioidx with the new tasks value.
>>
>> Let's apply the same fix for net_cls.
>>
>> Reported-by: Li Zefan <lizefan@huawei.com>
>
> Acutally I didn't report this.
You made me look into this, so you reported it at least in my eyes :)
> I was about to send exactly the same
> patch and then I noticed the shared socket issue. ;)
I don't mind if you want your patch to be applied. I just felt
responsible for the changes I did.
thanks,
daniel
next prev parent reply other threads:[~2013-01-21 10:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-21 9:38 [PATCH] net: net_cls: fd passed in SCM_RIGHTS datagram not set correctly Daniel Wagner
[not found] ` <1358761102-7765-1-git-send-email-wagi-kQCPcA+X3s7YtjvyW6yDsg@public.gmane.org>
2013-01-21 9:54 ` Li Zefan
2013-01-21 9:54 ` Li Zefan
2013-01-21 10:16 ` Daniel Wagner [this message]
2013-01-21 19:17 ` David Miller
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=50FD1592.2000907@monom.org \
--to=wagi@monom.org \
--cc=cgroups@vger.kernel.org \
--cc=daniel.wagner@bmw-carit.de \
--cc=davem@davemloft.net \
--cc=ebiederm@xmission.com \
--cc=john.r.fastabend@intel.com \
--cc=lizefan@huawei.com \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
--cc=viro@zeniv.linux.org.uk \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.