Re: [PATCH v4 4/6] gpio: fix potential out-of-bound write

2025-05-09 Thread Bartosz Golaszewski
On Thu, May 8, 2025 at 3:07 PM Markus Burri wrote: > > Check that the input size does not exceed the buffer size. > If a caller write more characters, count is truncated to the max available > space in "simple_write_to_buffer". > Write a zero termination afterwards. > > Signed-off-by: Markus Burri

Re: [PATCH v4 4/6] gpio: fix potential out-of-bound write

2025-05-09 Thread kernel test robot
: b4432656b36e5cc1d50a1f2dc15357543add530e patch link: https://lore.kernel.org/r/20250508130612.82270-5-markus.burri%40mt.com patch subject: [PATCH v4 4/6] gpio: fix potential out-of-bound write config: x86_64-buildonly-randconfig-003-20250509 (https://download.01.org/0day-ci/archive/20250509/202505091754.285hhbr2-...@intel.com

[PATCH v4 4/6] gpio: fix potential out-of-bound write

2025-05-08 Thread Markus Burri
Check that the input size does not exceed the buffer size. If a caller write more characters, count is truncated to the max available space in "simple_write_to_buffer". Write a zero termination afterwards. Signed-off-by: Markus Burri --- drivers/gpio/gpio-virtuser.c | 12 ++-- 1 file cha