linux/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
..
Makefile
datagram.c
dev.c net: NETIF_F_HW_CSUM does not imply FCoE CRC offload 2010-10-27 11:37:29 -07:00
dev_addr_lists.c
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
neighbour.c
net-sysfs.c rps: add __rcu annotations 2010-10-25 14:18:27 -07:00
net-sysfs.h
net-traces.c
net_namespace.c net_ns: add __rcu annotations 2010-10-25 14:18:27 -07:00
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
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