aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorMarkus Burri <[email protected]>2025-05-09 15:04:59 +0000
committerBartosz Golaszewski <[email protected]>2025-05-13 10:59:30 +0000
commit7118be7c6072f40391923543fdd1563b8d56377c (patch)
treeaf0dfe22dca3854801be64bc05f2f0b346e03e0a /rust/helpers/mutex.c
parentgpio: pca953x: fix IRQ storm on system wake up (diff)
downloadkernel-7118be7c6072f40391923543fdd1563b8d56377c.tar.gz
kernel-7118be7c6072f40391923543fdd1563b8d56377c.zip
gpio: virtuser: fix potential out-of-bound write
If the caller wrote more characters, count is truncated to the max available space in "simple_write_to_buffer". Check that the input size does not exceed the buffer size. Write a zero termination afterwards. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Markus Burri <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions