Files
twx-linux/drivers/gpio
Markus Burri 7118be7c60 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>
2025-05-13 12:59:30 +02:00
..
2024-10-17 08:53:34 +02:00
2024-10-21 09:23:34 +02:00
2023-10-13 08:39:30 +02:00
2024-11-13 16:29:27 +01:00
2023-08-21 10:39:58 +02:00
2025-02-24 20:49:43 +01:00