From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarek Poplawski Subject: Re: [PATCH] ax25: Fix ax25_cb refcounting in ax25_ctl_ioctl Date: Sun, 27 Sep 2009 19:10:29 +0200 Message-ID: <20090927171029.GA3297@del.dom.local> References: <20090921201157.GA5460@del.dom.local> <4ABA9058.3010605@free.fr> <20090925131038.GA14778@ff.dom.local> <20090925134052.GA1661@linux-mips.org> <20090925183504.GA3307@del.dom.local> <20090927072319.GA28089@linux-mips.org> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=S1GcoZOcqrAR9LC7XbVu1TZK7BnPFajZE2VYsjELhZU=; b=SUPVRA5d61jT9H9Lt+MK47PoLFeWN+gT61pVHEs3xPqmwkMEsi+CTMzz9RFH7bsOml 4eu+wkeTfTFsgTNsHhZ7hYPhtpuOHcuJom2mCxhr/CcSBZeUusQ8YtHwyfr4u0pJacls iyUBf2MkrRS2KkgxgjiacDSSx+I2yLRqlupzU= Content-Disposition: inline In-Reply-To: <20090927072319.GA28089@linux-mips.org> Sender: linux-hams-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ralf Baechle DL5RB Cc: David Miller , Bernard Pidoux F6BVP , Bernard Pidoux , Linux Netdev List , linux-hams On Sun, Sep 27, 2009 at 08:23:19AM +0100, Ralf Baechle DL5RB wrote: > On Fri, Sep 25, 2009 at 08:35:04PM +0200, Jarek Poplawski wrote: > > > > > This bug isn't responsible for these oopses here, but looks quite > > > > obviously. (I'm not sure if it's easy to test/hit with the common > > > > tools.) > > > > > > The issue your patch fixes is obvious enough. > > > > Yes, with new code there would be no doubt. But here, if you know it's > > worked for some time, you wonder if you're not blind. |-) > > Most of of the ioctls are used by AX.25 userland which does error > checking on user supplied values so userland will never attempt invalid > ioctl calls. So no surprise this went unnoticed. In this case valid calls (return 0) were affected too, so I guess the whole thing is rarely used. Jarek P.