Skip to content

iio: Fix memory corruption, teardown races and bounds checks

Lee Jones linux-arm-kernel linux-arm-msm linux-iio lkml stable 1 version Applied

Status from this message: Applied. Given it's hardening against a bad DT, not rushing this one in.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 17 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/10iio: imu: adis: Clear pointers after freeing in adis_update_scan_mode()drivers/iio/imu/adis_buffer.c+2 -01 reply
2/10iio: accel: adxl313: Prevent FIFO buffer overflow in adxl313_fifo_transfer()drivers/iio/accel/adxl313.h drivers/iio/accel/adxl313_core.c+7 -22 replies
3/10iio: accel: adxl313: Reject sub-base ODR codes in adxl313_read_raw()drivers/iio/accel/adxl313_core.c+5 -11 reply
4/10iio: adc: stm32-adc: Validate channel index before writing chan_namedrivers/iio/adc/stm32-adc.c+6 -63 replies
5/10iio: adc: stm32-adc: Detach chained IRQ handler before removing domaindrivers/iio/adc/stm32-adc-core.c+3 -33 replies
6/10iio: adc: pac1934: Fix custom attribute allocation and channel boundsdrivers/iio/adc/pac1934.c+15 -182 replies
7/10iio: adc: qcom-spmi-adc5-gen3: Free TM auxiliary device wrapper in release callbackdrivers/iio/adc/qcom-spmi-adc5-gen3.c+24 -62 replies
8/10iio: adc: qcom-spmi-adc5-gen3: Reject empty reg property in probedrivers/iio/adc/qcom-spmi-adc5-gen3.c+2 -01 reply
9/10iio: proximity: isl29501: Fix division by zero and overflow in isl29501_set_freq()drivers/iio/proximity/isl29501.c+8 -21 reply
10/10iio: light: tsl2591: Prevent infinite recursion on threshold boundariesdrivers/iio/light/tsl2591.c+15 -101 reply

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchFabrice Gasnier
1/10
2/10
3/10
4/10A-b
5/10A-b
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] iio: Fix memory corruption, teardown races and bounds checks

These issues were reported by Sashiko.

Cc Alexandre Torgue <[email protected]>
Cc Alexandru Ardelean <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Bogdan Bolocan <[email protected]>
Cc David Lechner <[email protected]>
Cc Fabrice Gasnier <[email protected]>
Cc Jishnu Prakash <[email protected]>
Cc Joe Sandom <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Lars-Peter Clausen <[email protected]>
Cc Lothar Rubusch <[email protected]>
Cc Lucas Stankus <[email protected]>
Cc Marius Cristea <[email protected]>
Cc Mathieu Othacehe <[email protected]>
Cc Maxime Coquelin <[email protected]>
Cc Michael Hennerich <[email protected]>
Cc "Nuno Sá" <[email protected]>
Cc Olivier Moysan <[email protected]>

Lee Jones (10):
iio: imu: adis: Clear pointers after freeing in
adis_update_scan_mode()
iio: accel: adxl313: Prevent FIFO buffer overflow in

    adxl313_fifo_transfer()
  iio: accel: adxl313: Reject sub-base ODR codes in adxl313_read_raw()
  iio: adc: stm32-adc: Validate channel index before writing chan_name
  iio: adc: stm32-adc: Detach chained IRQ handler before removing domain
  iio: adc: pac1934: Fix custom attribute allocation and channel bounds
  iio: adc: qcom-spmi-adc5-gen3: Free TM auxiliary device wrapper in
    release callback
  iio: adc: qcom-spmi-adc5-gen3: Reject empty reg property in probe
  iio: proximity: isl29501: Fix division by zero and overflow in
    isl29501_set_freq()

iio: light: tsl2591: Prevent infinite recursion on threshold
boundaries

 drivers/iio/accel/adxl313.h           |  2 +-
 drivers/iio/accel/adxl313_core.c      | 13 +++++++++--
 drivers/iio/adc/pac1934.c             | 33 ++++++++++++---------------
 drivers/iio/adc/qcom-spmi-adc5-gen3.c | 32 +++++++++++++++++++++-----
 drivers/iio/adc/stm32-adc-core.c      |  6 ++---
 drivers/iio/adc/stm32-adc.c           | 12 +++++-----
 drivers/iio/imu/adis_buffer.c         |  2 ++
 drivers/iio/light/tsl2591.c           | 25 ++++++++++++--------
 drivers/iio/proximity/isl29501.c      | 10 ++++++--
 9 files changed, 87 insertions(+), 48 deletions(-)
Signature · 1 line
2.56.1.708.g77570a6a1d-goog