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

From
Bartosz Golaszewski <hidden>
Date
2025-05-09 12:40:39
Also in
dri-devel, linux-gpio, linux-iio, lkml
Reply to
Markus Burri, 2025-05-08
On Thu, May 8, 2025 at 3:07 PM Markus Burri [off-list ref] 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 <redacted>
---
Looks good and does fix an issue that can be easily reproduced with
KASAN enabled. Please fix the issues reported by the build bot and
resend (as a patch separate from the rest of this series). Thanks.

Bartosz
Thread (18 messages) 18 messages, 6 authors, last reply 2025-05-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help