linux-yocto/drivers/iio/dummy
Javier Carrasco ea703cda36 iio: dummy: iio_simply_dummy_buffer: fix information leak in triggered buffer
commit 333be433ee upstream.

The 'data' array is allocated via kmalloc() and it is used to push data
to user space from a triggered buffer, but it does not set values for
inactive channels, as it only uses iio_for_each_active_channel()
to assign new values.

Use kzalloc for the memory allocation to avoid pushing uninitialized
information to userspace.

Cc: stable@vger.kernel.org
Fixes: 415f792447 ("iio: Move IIO Dummy Driver out of staging")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20241125-iio_memset_scan_holes-v1-9-0cb6e98d895c@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-17 13:40:56 +01:00
..
iio_dummy_evgen.c iio: dummy_evgen: remove Excess kernel-doc comments 2024-02-17 16:16:09 +00:00
iio_dummy_evgen.h
iio_simple_dummy_buffer.c iio: dummy: iio_simply_dummy_buffer: fix information leak in triggered buffer 2025-01-17 13:40:56 +01:00
iio_simple_dummy_events.c iio: dummy: iio_simple_dummy_events: Demote file header and supply descriptions for val2 params 2020-07-20 09:02:55 +01:00
iio_simple_dummy.c iio: dummy: Use automatic lock and direct mode cleanup. 2024-02-17 16:16:10 +00:00
iio_simple_dummy.h
Kconfig iio: dummy: Fix build error when CONFIG_IIO_TRIGGERED_BUFFER is not set 2021-06-13 17:00:17 +01:00
Makefile