summaryrefslogtreecommitdiff
path: root/net/ax25/ax25_out.c
diff options
context:
space:
mode:
authorQiujun Huang <hqjagain@gmail.com>2020-10-30 00:19:05 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-10 10:24:02 +0100
commitb134320e5bde93273d856de9ab6a51389bfad331 (patch)
tree6a5ff6e5cd7b04738cdb81012c96e583b3341a27 /net/ax25/ax25_out.c
parent59cc02cbe6c0c9196fb6778a5a55a7dcdb6f8560 (diff)
tracing: Fix out of bounds write in get_trace_buf
commit c1acb4ac1a892cf08d27efcb964ad281728b0545 upstream. The nesting count of trace_printk allows for 4 levels of nesting. The nesting counter starts at zero and is incremented before being used to retrieve the current context's buffer. But the index to the buffer uses the nesting counter after it was incremented, and not its original number, which in needs to do. Link: https://lkml.kernel.org/r/20201029161905.4269-1-hqjagain@gmail.com Cc: stable@vger.kernel.org Fixes: 3d9622c12c887 ("tracing: Add barrier to trace_printk() buffer nesting modification") Signed-off-by: Qiujun Huang <hqjagain@gmail.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ax25/ax25_out.c')
0 files changed, 0 insertions, 0 deletions