[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200909291615.38457.borntraeger@de.ibm.com>
Date: Tue, 29 Sep 2009 16:15:38 +0200
From: Christian Borntraeger <borntraeger@...ibm.com>
To: Evgeniy Polyakov <zbr@...emap.net>
Cc: Oleg Nesterov <oleg@...hat.com>,
Evgeny Polyakov <johnpol@....mipt.ru>,
Scott James Remnant <scott@...ntu.com>,
Linux Kernel <linux-kernel@...r.kernel.org>,
Matt Helsley <matthltc@...ibm.com>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH] connector: Fix sid connector (was: Badness at kernel/softirq.c:143...)
Am Dienstag 29 September 2009 16:07:18 schrieb Evgeniy Polyakov:
> Your patch breaks assumption that task_session(current->group_leader) is
> not equal to new session id, but to check task_session() we need either
> rcu or task lock. Also setsid() return value is not zero or negative
> error, but new session ID or negative error,
Right.
> so I believe attached patch is a proper fix, although it looks rather ugly.
>
> Also proc_sid_connector() uses GFP_KERNEL allocation which is way too
> wrong to use under any locks.
>
> Something like this (not tested :)
Patch compiles and seems to work.
Christian
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists