1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-22 07:53:11 -05:00
linux/drivers/iio
Greg Kroah-Hartman 6ffc565c24 IIO: 1st set of fixes for 6.13 cycle.
The usual mixed back of fixes for ancient and recent bugs
 
 A number of these were from an audit by Javier Carrasco of places
 we may leak stack data via holes in structures passed to userspace that
 were not explicitly zeroed. Very helpful effort after we found a similar
 bug in review of new code.
 
 This affected:
 - dummy driver
 - kionix,kmx61
 - murrata,zpa2326
 - rockchip,saradc
 - rohm,bh1745
 - veml,vcnl4035
 - ti,ads1119
 - ti,ads8688
 - ti,tmp0006
 
 Other fixes:
 
 core,inkern
 - Underflow fo reference count issue in error path of iio_channel_get_all()
   for devices we haven't yet gotten.
 tests
 - Kconfig typo fix so it's possible to tell what test is being enabled.
 - Check for allocation failures.
 
 adi,ad4695
 - Ensure timing requirement wrt to final clock edge vs next conversion
   signal are met by adding an additional SPI transfer.
 adi,ad7124
 - Ensure channels are disabled at probe to avoid wrong data if channel 0
   is not the first one read.
 adi,ad7173
 - Fix handing of multiple devices by not editing a single static
   structure and instead making a per instance copy.
 adi,ad9467
 - Fix handing of multiple devices by not editing a single static
   structure and instead making a per instance copy.
 adi,ad9832
 - Off by one error on input verification for phase control
 adi,ad9834
 - Off by one error on input verification for phase control.
 atmel,at91
 - In an error path don't use a variable that hasn't been initialized yet.
 invensense,icm42600
 - SPI burst write does not work for some icm426000 chips, disable it.
 - Ensure correct handling of timestamps after resume.
 st,sensors
 - Add back accidentally dropped IIS2MDC compatible in binding doc.
 st,stm32-dfsdm:
 - label property was accidentally made a required property. Make it optional
   again to fix use of older DT.
 ti,ads1119
 - Use a fixed size for the channel data rather than an integer, bringing
   the code inline with the advertised 16 bit channel size and avoiding
   userspace misinterpreting the data.
 ti,ads124s08
 - Use _cansleep gpio calls as no reason to prevent sleeping and it
   was stopping a new board design working (trivial fix).
 ti,ads1298
 - Add a check on failure of devm_kasprintf()
 -----BEGIN PGP SIGNATURE-----
 
 iQJFBAABCAAvFiEEbilms4eEBlKRJoGxVIU0mcT0FogFAmdaAfERHGppYzIzQGtl
 cm5lbC5vcmcACgkQVIU0mcT0FojDng/+OFybX06zLefGBaCvitsax+JPjnznZc5t
 pHWaCR8Wm5cWeky7fEnYS1uS2mlgAro9HmGCy1MErcDQJZs/sYMN6oMynPwbFr1t
 gtJomIFEewVbR3QXMefW1sYtuYoIBxAJp/Rf8QyHjDZJGKazHi9RwRicFbMB5wQu
 f+ngG7JloaL2uXEjymsmlgOQZwBAQYvGe5hwyh++E0yY/zyf6sO6Cku5h7tiqiy7
 TCV31Q+/43OvC/+pemt+fUmzPh0Y0tHSXDwLXT0dSzm7y2ND57lnHL14MPDZTXCJ
 o1BgYhVBUsLydMs2MCZsv8BtoUln7IoH2gH2pl4fWbye0U4/eL1i+rO4SXDaXXeX
 U48qTHEOE+P1pY3/0NSnOOAfvFnY+hLp+X0G/ZDTcWUXE7QCSwza1JNcTEoEPOm3
 dlltX1FSyu18i4AN71tyJNCUv44jL/uGWp+wbPj8YoMbMGVCRB6QmjT3a3Nux99l
 Js8s+oVLKgzjqtJZYCxgUgwx3bC7MEnrvUMN9F6Awm1C9vbk8sLqo3o4iE+wfUZJ
 t7xAmLYs5+MtiMJUo3+GanvTQUSpLtBsZ3Q1YBfc6O7yf2GCL18TbZad1Y4OQibq
 God5ajeChBrEtUiqOvm4+2Dk5vJcBC9ficp7YhSmyy9iz+rHbkZ4kZhW+KiChYHm
 /UTK9S4uXeQ=
 =r/KU
 -----END PGP SIGNATURE-----

Merge tag 'iio-fixes-for-6.13a' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-linus

Jonathan writes:

IIO: 1st set of fixes for 6.13 cycle.

The usual mixed back of fixes for ancient and recent bugs

A number of these were from an audit by Javier Carrasco of places
we may leak stack data via holes in structures passed to userspace that
were not explicitly zeroed. Very helpful effort after we found a similar
bug in review of new code.

This affected:
- dummy driver
- kionix,kmx61
- murrata,zpa2326
- rockchip,saradc
- rohm,bh1745
- veml,vcnl4035
- ti,ads1119
- ti,ads8688
- ti,tmp0006

Other fixes:

core,inkern
- Underflow fo reference count issue in error path of iio_channel_get_all()
  for devices we haven't yet gotten.
tests
- Kconfig typo fix so it's possible to tell what test is being enabled.
- Check for allocation failures.

adi,ad4695
- Ensure timing requirement wrt to final clock edge vs next conversion
  signal are met by adding an additional SPI transfer.
adi,ad7124
- Ensure channels are disabled at probe to avoid wrong data if channel 0
  is not the first one read.
adi,ad7173
- Fix handing of multiple devices by not editing a single static
  structure and instead making a per instance copy.
adi,ad9467
- Fix handing of multiple devices by not editing a single static
  structure and instead making a per instance copy.
adi,ad9832
- Off by one error on input verification for phase control
adi,ad9834
- Off by one error on input verification for phase control.
atmel,at91
- In an error path don't use a variable that hasn't been initialized yet.
invensense,icm42600
- SPI burst write does not work for some icm426000 chips, disable it.
- Ensure correct handling of timestamps after resume.
st,sensors
- Add back accidentally dropped IIS2MDC compatible in binding doc.
st,stm32-dfsdm:
- label property was accidentally made a required property. Make it optional
  again to fix use of older DT.
ti,ads1119
- Use a fixed size for the channel data rather than an integer, bringing
  the code inline with the advertised 16 bit channel size and avoiding
  userspace misinterpreting the data.
ti,ads124s08
- Use _cansleep gpio calls as no reason to prevent sleeping and it
  was stopping a new board design working (trivial fix).
ti,ads1298
- Add a check on failure of devm_kasprintf()

* tag 'iio-fixes-for-6.13a' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (27 commits)
  iio: adc: ti-ads1119: fix sample size in scan struct for triggered buffer
  iio: temperature: tmp006: fix information leak in triggered buffer
  iio: inkern: call iio_device_put() only on mapped devices
  iio: adc: ad9467: Fix the "don't allow reading vref if not available" case
  iio: adc: at91: call input_free_device() on allocated iio_dev
  iio: adc: ad7173: fix using shared static info struct
  iio: adc: ti-ads124s08: Use gpiod_set_value_cansleep()
  iio: adc: ti-ads1119: fix information leak in triggered buffer
  iio: pressure: zpa2326: fix information leak in triggered buffer
  iio: adc: rockchip_saradc: fix information leak in triggered buffer
  iio: imu: kmx61: fix information leak in triggered buffer
  iio: light: vcnl4035: fix information leak in triggered buffer
  iio: light: bh1745: fix information leak in triggered buffer
  iio: adc: ti-ads8688: fix information leak in triggered buffer
  iio: dummy: iio_simply_dummy_buffer: fix information leak in triggered buffer
  iio: test: Fix GTS test config
  dt-bindings: iio: st-sensors: Re-add IIS2MDC magnetometer
  iio: adc: ti-ads1298: Add NULL check in ads1298_init
  iio: adc: stm32-dfsdm: handle label as an optional property
  iio: adc: ad4695: fix buffered read, single sample timings
  ...
2024-12-16 16:29:55 +01:00
..
accel module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adc iio: adc: ti-ads1119: fix sample size in scan struct for triggered buffer 2024-12-08 16:59:13 +00:00
addac module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
afe module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
amplifiers IIO: 1st set of fixes for the 6.12 cycle. 2024-10-13 17:23:47 +02:00
buffer module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
cdc iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
chemical module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
common module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
dac module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
dummy iio: dummy: iio_simply_dummy_buffer: fix information leak in triggered buffer 2024-12-07 17:23:41 +00:00
filter
frequency Merge 6.12-rc4 into char-misc-next 2024-10-21 08:42:22 +02:00
gyro iio: gyro: fxas21002c: Fix missing data update in trigger handler 2024-12-07 17:13:25 +00:00
health move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
humidity module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
imu iio: imu: kmx61: fix information leak in triggered buffer 2024-12-07 17:23:42 +00:00
light iio: light: vcnl4035: fix information leak in triggered buffer 2024-12-07 17:23:41 +00:00
magnetometer 24 hotfixes. 17 are cc:stable. 15 are MM and 9 are non-MM. 2024-12-08 11:26:13 -08:00
multiplexer
orientation module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
position module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
potentiometer
potentiostat
pressure iio: pressure: zpa2326: fix information leak in triggered buffer 2024-12-07 17:23:42 +00:00
proximity module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
resolver iio: resolver: ad2s1210: add missing select (TRIGGERED_)BUFFER in Kconfig 2024-10-06 16:30:38 +01:00
temperature iio: temperature: tmp006: fix information leak in triggered buffer 2024-12-08 16:51:35 +00:00
test iio: test: Fix GTS test config 2024-12-07 17:23:41 +00:00
trigger iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
iio_core.h
iio_core_trigger.h
industrialio-acpi.c iio: acpi: Add iio_get_acpi_device_name_and_data() helper function 2024-10-28 20:04:11 +00:00
industrialio-backend.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
industrialio-buffer.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
industrialio-configfs.c
industrialio-core.c iio: Add channel type for attention 2024-11-03 20:33:43 +00:00
industrialio-event.c
industrialio-gts-helper.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c iio: trigger: allow devices to suspend/resume theirs associated trigger 2024-08-10 11:19:36 +01:00
industrialio-triggered-event.c
inkern.c iio: inkern: call iio_device_put() only on mapped devices 2024-12-08 16:49:09 +00:00
Kconfig
Makefile
TODO