linux/drivers/iio/imu/inv_mpu6050
Len Baker d722f1e06f drivers/iio: Remove all strcpy() uses
strcpy() performs no bounds checking on the destination buffer. This
could result in linear overflows beyond the end of the buffer, leading
to all kinds of misbehaviors. So, remove all the uses and add
devm_kstrdup() or devm_kasprintf() instead.

Also, modify the "for" loop conditions to clarify the access to the
st->orientation.rotation buffer.

This patch is an effort to clean up the proliferation of str*()
functions in the kernel and a previous step in the path to remove
the strcpy function from the kernel entirely [1].

[1] https://github.com/KSPP/linux/issues/88

Signed-off-by: Len Baker <len.baker@gmx.com>
Link: https://lore.kernel.org/r/20210815174204.126593-1-len.baker@gmx.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-09-14 12:00:30 +01:00
..
inv_mpu_acpi.c iio: imu: inv_mpu6050: Drop double check for ACPI companion device 2020-06-14 11:49:32 +01:00
inv_mpu_aux.c
inv_mpu_aux.h
inv_mpu_core.c Add startup time for each chip using inv_mpu6050 driver 2021-07-19 09:51:59 +01:00
inv_mpu_i2c.c iio: imu: inv_mpu6050: Add support for MPU-6880 2021-01-09 14:25:30 +00:00
inv_mpu_iio.h Add startup time for each chip using inv_mpu6050 driver 2021-07-19 09:51:59 +01:00
inv_mpu_magn.c drivers/iio: Remove all strcpy() uses 2021-09-14 12:00:30 +01:00
inv_mpu_magn.h iio: imu: inv_mpu6050: fix data polling interface 2020-03-08 17:28:38 +00:00
inv_mpu_ring.c iio:imu:inv_mpu6050: Use regmap_noinc_read for fifo reads. 2020-09-21 20:01:51 +01:00
inv_mpu_spi.c iio: imu: inv_mpu6050: Add support for MPU-6880 2021-01-09 14:25:30 +00:00
inv_mpu_trigger.c Add startup time for each chip using inv_mpu6050 driver 2021-07-19 09:51:59 +01:00
Kconfig iio: imu: inv_mpu6050: Add support for MPU-6880 2021-01-09 14:25:30 +00:00
Makefile iio: imu: inv_mpu6050: add MPU925x magnetometer support 2019-10-05 12:14:20 +01:00