[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101028162825.GG6062@bicker>
Date: Thu, 28 Oct 2010 18:28:25 +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 v3] fix stack overflow in pktgen_if_write()
On Thu, Oct 28, 2010 at 11:22:22AM -0400, Nelson Elhage wrote:
> You've got a leak if copy_user fails.
>
My QC scripts should have caught that, but they didn't... I'll figure
it out. It shouldn't happen again.
> While testing this, I realized that printk() won't print more than 1k in a
> single call, anyways, so I've sent along a patch that just copies up to 1k onto
> the stack, which should prevent the overflow without changing behavior or
> needing a heap allocation.
>
Ok. Good to hear. Sorry I wasted people's time.
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