From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [patch] isdn: fix a wrapping bug in isdn_ppp_ioctl() Date: Wed, 10 Oct 2012 07:41:59 -0700 Message-ID: <1349880119.2386.46.camel@joe-AO722> References: <20121010093816.GA3669@elgon.mountain> <1349864358.2386.27.camel@joe-AO722> <1349874007.2386.42.camel@joe-AO722> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: Dan Carpenter , Karsten Keil , "David S. Miller" , Masanari Iida , netdev@vger.kernel.org, kernel-janitors@vger.kernel.org To: Andreas Schwab Return-path: Received: from perches-mx.perches.com ([206.117.179.246]:48660 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932217Ab2JJOmA (ORCPT ); Wed, 10 Oct 2012 10:42:00 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 2012-10-10 at 15:58 +0200, Andreas Schwab wrote: > Sorry, I was misremembering the history of the bit ops. There has > historically been issues with varying bit order, but noadays set_bit is > always defined consistently with C shifts. No worries. Anyway, the change was suggested to aid reader comprehension. If it doesn't (and it seems not) then it's not worth it. Anyway, there is still the open question of an overrun/info leak. > > - if ((r = set_arg(argp, protos, 8 * sizeof(long)))) set_arg's 2nd arg is bytes not bits.