[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101028060500.GW6062@bicker>
Date: Thu, 28 Oct 2010 08:05:00 +0200
From: Dan Carpenter <error27@...il.com>
To: Nelson Elhage <nelhage@...lice.com>
Cc: Eric Dumazet <eric.dumazet@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Robert Olsson <robert.olsson@....uu.se>,
Andy Shevchenko <andy.shevchenko@...il.com>,
netdev@...r.kernel.org
Subject: Re: [patch v2] fix stack overflow in pktgen_if_write()
On Wed, Oct 27, 2010 at 07:06:57PM -0400, Nelson Elhage wrote:
> You want to add a trailing NUL, or else printk will read off the end of the
> buffer.
>
> Also, by memdup()ing count + 1 bytes, you're technically reading one more byte
> than userspace asked for, which could in principle lead to a spurious EFAULT.
>
That's a lot of bugs per line. :( I'm eating humble pie today...
regards,
dan carpenter
--
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