aboutsummaryrefslogtreecommitdiff
path: root/kernel/trace/trace_stack.c
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2017-08-10 12:41:58 -0400
committerMoyster <oysterized@gmail.com>2017-11-06 15:33:28 +0100
commita1dd9fe7e8834531814e1bd376460427333a64f2 (patch)
tree1b91c5e159b0acc8a48e7a6fd30c2cc46e4e29fd /kernel/trace/trace_stack.c
parent174815976d4bb03c16e751ef5acd91a8d6fcb663 (diff)
packet: fix tp_reserve race in packet_set_ring
commit c27927e372f0785f3303e8fad94b85945e2c97b7 upstream. Updates to tp_reserve can race with reads of the field in packet_set_ring. Avoid this by holding the socket lock during updates in setsockopt PACKET_RESERVE. This bug was discovered by syzkaller. Fixes: 8913336a7e8d ("packet: add PACKET_RESERVE sockopt") Reported-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'kernel/trace/trace_stack.c')
0 files changed, 0 insertions, 0 deletions