summaryrefslogtreecommitdiff
path: root/io_uring/statx.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-01-29 19:23:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-31 10:40:54 +0100
commita4a97ab3db5c081eb6e7dba91306adefb461e0bd (patch)
tree9890b4a9be03e929124c5a59de7af3d13e1aa219 /io_uring/statx.c
parent33bb1a9459989ef501bda9b127b38173fb2224c9 (diff)
usb: early: xhci-dbc: Fix a potential out-of-bound memory access
If xdbc_bulk_write() fails, the values in 'buf' can be anything. So the string is not guaranteed to be NULL terminated when xdbc_trace() is called. Reserve an extra byte, which will be zeroed automatically because 'buf' is a static variable, in order to avoid troubles, should it happen. Fixes: aeb9dd1de98c ("usb/early: Add driver for xhci debug capability") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/d6a7562c5e839a195cee85db6dc81817f9372cb1.1675016180.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'io_uring/statx.c')
0 files changed, 0 insertions, 0 deletions