Re: [PATCH v2] iio: buffer: Ensure bounce buffer used for unaligned case is zeroed.
Andy Shevchenko <[email protected]>
| Newsgroups | org.kernel.vger.linux-iio |
|---|---|
| Organization | Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo |
| Message-ID | <[email protected]> |
On Mon, Aug 03, 2026 at 02:22:24AM +0100, Jonathan Cameron wrote: > iio_push_to_buffers_with_ts_unaligned() leaks uninitialized heap memory > to userspace if the data passed in is not a multiple of 8 bytes and the > timestamp is enabled. Specify __GFP_ZERO for the devm_krealloc() > to ensure any extra space is cleared. Reviewed-by: Andy Shevchenko <[email protected]> -- With Best Regards, Andy Shevchenko