Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 22 Mar 2003 15:10:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 22 Mar 2003 15:10:14 -0500 Received: from cerebus.wirex.com ([65.102.14.138]:49904 "EHLO figure1.int.wirex.com") by vger.kernel.org with ESMTP id ; Sat, 22 Mar 2003 15:10:12 -0500 Date: Sat, 22 Mar 2003 12:19:57 -0800 From: Chris Wright To: Alan Cox Cc: Chris Wright , Junfeng Yang , Linux Kernel Mailing List , mc@cs.stanford.edu Subject: Re: [CHECKER] potential dereference of user pointer errors Message-ID: <20030322121957.A2865@figure1.int.wirex.com> Mail-Followup-To: Alan Cox , Chris Wright , Junfeng Yang , Linux Kernel Mailing List , mc@cs.stanford.edu References: <200303041112.h24BCRW22235@csl.stanford.edu> <20030321141507.B646@figure1.int.wirex.com> <1048366179.9219.38.camel@irongate.swansea.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1048366179.9219.38.camel@irongate.swansea.linux.org.uk>; from alan@lxorguk.ukuu.org.uk on Sat, Mar 22, 2003 at 08:49:39PM +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1042 Lines: 26 * Alan Cox (alan@lxorguk.ukuu.org.uk) wrote: > On Fri, 2003-03-21 at 22:15, Chris Wright wrote: > > on first pass of the cmd. However, this is inconsistent with the rest > > of the file, so here is a patch to use kcmd.resbuf. I also added a NULL > > check, as done in similar funcitons in this file. Alan, this look ok? > > Looks slightly wrong to me > > #1 ->resbuf = NULL is a completely acceptable if odd user choice. If invalid > its covered OK, I wasn't sure if it was valid. I noticed the other routines in that file making similar checks. > #2 - We copy to the users nominated cmd->resbuf. You are correct there, > that we should be using the kernel side copy. Fixed in my tree. Great, thanks. -chris -- Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/