Re: [PATCH v4 0/6] Fix potential out-of-bounds error in some drivers

2025-05-09 Thread Bartosz Golaszewski
On Thu, May 8, 2025 at 3:06 PM Markus Burri wrote: > > Several drivers are using debugfs and follow the same pattern. > > A buffer is created on the stack with a limited size to copy the given data > from user space. The copy is performed using simple_write_to_buffer. > This function limits the in

[PATCH v4 0/6] Fix potential out-of-bounds error in some drivers

2025-05-08 Thread Markus Burri
Several drivers are using debugfs and follow the same pattern. A buffer is created on the stack with a limited size to copy the given data from user space. The copy is performed using simple_write_to_buffer. This function limits the input according to the specified buffer size, but it does not wri