aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2010-11-25 04:11:39 +0000
committerDavid S. Miller <[email protected]>2010-11-29 09:45:15 -0800
commit25888e30319f8896fc656fc68643e6a078263060 (patch)
treeae484d38b1250da885d3939dd9a97e667fbc871d /tools/perf/util/trace-event-scripting.c
parent50a4205333c5e545551f1f82b3004ca635407c5c (diff)
af_unix: limit recursion level
Its easy to eat all kernel memory and trigger NMI watchdog, using an exploit program that queues unix sockets on top of others. lkml ref : http://lkml.org/lkml/2010/11/25/8 This mechanism is used in applications, one choice we have is to have a recursion limit. Other limits might be needed as well (if we queue other types of files), since the passfd mechanism is currently limited by socket receive queue sizes only. Add a recursion_level to unix socket, allowing up to 4 levels. Each time we send an unix socket through sendfd mechanism, we copy its recursion level (plus one) to receiver. This recursion level is cleared when socket receive queue is emptied. Reported-by: Марк Коренберг <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions