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
: 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
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