kernel_optimize_test/net/core
Nelson Elhage 448d7b5daf 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>
2010-10-28 11:47:53 -07:00
..
datagram.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2010-10-23 11:47:02 -07:00
dev_addr_lists.c
dev.c net: NETIF_F_HW_CSUM does not imply FCoE CRC offload 2010-10-27 11:37:29 -07:00
drop_monitor.c
dst.c
ethtool.c
fib_rules.c fib_rules: __rcu annotates ctarget 2010-10-27 11:37:32 -07:00
filter.c net: add __rcu annotation to sk_filter 2010-10-25 14:18:28 -07:00
flow.c
gen_estimator.c
gen_stats.c
iovec.c net: Limit socket I/O iovec total length to INT_MAX. 2010-10-28 11:47:52 -07:00
kmap_skb.h
link_watch.c
Makefile
neighbour.c
net_namespace.c net_ns: add __rcu annotations 2010-10-25 14:18:27 -07:00
net-sysfs.c rps: add __rcu annotations 2010-10-25 14:18:27 -07:00
net-sysfs.h
net-traces.c
netevent.c
netpoll.c
pktgen.c pktgen: Limit how much data we copy onto the stack. 2010-10-28 11:47:53 -07:00
request_sock.c
rtnetlink.c
scm.c
skbuff.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2010-10-23 11:47:02 -07:00
sock.c net: add __rcu annotation to sk_filter 2010-10-25 14:18:28 -07:00
stream.c
sysctl_net_core.c rps: add __rcu annotations 2010-10-25 14:18:27 -07:00
timestamping.c
user_dma.c
utils.c