diff options
author | 2025-05-09 17:04:59 +0200 | |
---|---|---|
committer | 2025-05-13 12:59:30 +0200 | |
commit | 7118be7c6072f40391923543fdd1563b8d56377c (patch) | |
tree | af0dfe22dca3854801be64bc05f2f0b346e03e0a /scripts/lib/kdoc/kdoc_files.py | |
parent | gpio: pca953x: fix IRQ storm on system wake up (diff) | |
download | linux-rng-7118be7c6072f40391923543fdd1563b8d56377c.tar.xz linux-rng-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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202505091754.285hHbr2-lkp@intel.com/
Signed-off-by: Markus Burri <markus.burri@mt.com>
Link: https://lore.kernel.org/r/20250509150459.115489-1-markus.burri@mt.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions