diff options
author | Nelson Elhage <nelhage@ksplice.com> | 2010-10-28 11:31:07 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-28 11:47:53 -0700 |
commit | 448d7b5daf043d109df98e3e8f8deb165c2e8896 (patch) | |
tree | 475844d92c01fae639bda19988ba1375272c857a /drivers/net/wan/x25_asy.c | |
parent | 8acfe468b0384e834a303f08ebc4953d72fb690a (diff) | |
download | op-kernel-dev-448d7b5daf043d109df98e3e8f8deb165c2e8896.zip op-kernel-dev-448d7b5daf043d109df98e3e8f8deb165c2e8896.tar.gz |
pktgen: Limit how much data we copy onto the stack.
A program that accidentally writes too much data to the pktgen file can overflow
the kernel stack and oops the machine. This is only triggerable by root, so
there's no security issue, but it's still an unfortunate bug.
printk() won't print more than 1024 bytes in a single call, anyways, so let's
just never copy more than that much data. We're on a fairly shallow stack, so
that should be safe even with CONFIG_4KSTACKS.
Signed-off-by: Nelson Elhage <nelhage@ksplice.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/x25_asy.c')
0 files changed, 0 insertions, 0 deletions