[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AE90C24D6B3A694183C094C60CF0A2F6026B7033@saturn3.aculab.com>
Date: Wed, 10 Oct 2012 15:59:00 +0100
From: "David Laight" <David.Laight@...LAB.COM>
To: "Joe Perches" <joe@...ches.com>,
"Andreas Schwab" <schwab@...ux-m68k.org>
Cc: "Dan Carpenter" <dan.carpenter@...cle.com>,
"Karsten Keil" <isdn@...ux-pingi.de>,
"David S. Miller" <davem@...emloft.net>,
"Masanari Iida" <standby24x7@...il.com>, <netdev@...r.kernel.org>,
<kernel-janitors@...r.kernel.org>
Subject: RE: [patch] isdn: fix a wrapping bug in isdn_ppp_ioctl()
> -----Original Message-----
> From: netdev-owner@...r.kernel.org [mailto:netdev-owner@...r.kernel.org] On Behalf Of Joe Perches
> Sent: 10 October 2012 15:42
> To: Andreas Schwab
> Cc: Dan Carpenter; Karsten Keil; David S. Miller; Masanari Iida; netdev@...r.kernel.org; kernel-
> janitors@...r.kernel.org
> Subject: Re: [patch] isdn: fix a wrapping bug in isdn_ppp_ioctl()
>
> 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.
Seems to me the code is expecting 256 bits of data, not any multiple of int,
long or anything else.
David
--
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