From: Serge Hallyn Subject: Re: user namespace: make signal.c respect user namespaces (v5) Date: Fri, 18 Nov 2011 18:43:02 -0600 Message-ID: <20111119004302.GB16259@sergelap> References: <20111117045230.GA26345@hallyn.com> <20111118173752.GB11823@sergelap> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Eric W. Biederman" Cc: richard-/L3Ra7n9ekc@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, oleg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, eparis-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, Andrew Morton List-Id: containers.vger.kernel.org Quoting Eric W. Biederman (ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org): > "Serge E. Hallyn" writes: > > > Quoting Eric W. Biederman (ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org): > >> There is a small bug here. You want to fixup q->info, not info. > >> Otherwise you might try dereferencing one of the special signals and get > >> a NULL pointer dereference. > > > > Thanks, Eric. Oddly I've not seen this happen in quite a bit of > > testing with the kernel, but you certainly must be right. I sent > > out a new patch to fix that. > > You clearly have a different test case than I do. I ran a good chunk of ltp... and it passed. I can't explain it. > I managed to trigger the oops within about 5 minutes of just fooling > around. > > You want to say &q->info not q->info in your updated patch. Oh, yes, thanks. Sorry, I shouldn't have sent that one as I wasn't able to compile and test until tonight. -serge