Re: [PATCH v2] iio: buffer: Ensure bounce buffer used for unaligned case is zeroed.
Jonathan Cameron <[email protected]>
| Newsgroups | org.kernel.vger.linux-iio |
|---|---|
| Message-ID | <20260822003502.79b9207d@jic23-huawei> |
On Tue, 11 Aug 2026 13:32:44 +0300 Andy Shevchenko <[email protected]> wrote: > 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]> > Applied to the fixes-togreg branch of iio.git and marked for stable. Usual stuff about rebasing on rc1 etc apply J