1. 13 Oct, 2024 2 commits
    • Takashi Iwai's avatar
      parport: Proper fix for array out-of-bounds access · 02ac3a9e
      Takashi Iwai authored
      The recent fix for array out-of-bounds accesses replaced sprintf()
      calls blindly with snprintf().  However, since snprintf() returns the
      would-be-printed size, not the actually output size, the length
      calculation can still go over the given limit.
      
      Use scnprintf() instead of snprintf(), which returns the actually
      output letters, for addressing the potential out-of-bounds access
      properly.
      
      Fixes: ab11dac9 ("dev/parport: fix the array out-of-bounds risk")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      Link: https://lore.kernel.org/r/20240920103318.19271-1-tiwai@suse.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      02ac3a9e
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-fixes-for-6.12a' of... · 7528cb0f
      Greg Kroah-Hartman authored
      Merge tag 'iio-fixes-for-6.12a' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-linus
      
      Jonathan writes:
      
      IIO: 1st set of fixes for the 6.12 cycle.
      
      Most of this pull request is the result of Javier Carrasco doing a
      careful audit for missing Kconfig dependencies that luck has meant
      the random builds have never hit. The rest is the usual mix of old
      bugs that have surfaced and some fallout from the recent merge window.
      
      adi,ad5686
       - Fix binding duplication of compatible strings.
      bosch,bma400
       - Fix an uninitialized variable in the event tap handling.
      bosch,bmi323
       - Fix several issues in the register saving and restore on suspend/resume
      sensiron,spd500
       - Fix missing CRC8 dependency
      ti,op3001
       - Fix a missing full-scale range value (values above this point were
         all reported wrongly)
      vishay,veml6030
       - Fix a segmentation fault due to some type confusion.
       - Fix wrong ambient light sensor resolution.
      
      * tag 'iio-fixes-for-6.12a' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (34 commits)
        iio: frequency: admv4420: fix missing select REMAP_SPI in Kconfig
        iio: frequency: {admv4420,adrf6780}: format Kconfig entries
        iio: adc: ad4695: Add missing Kconfig select
        iio: adc: ti-ads8688: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
        iio: hid-sensors: Fix an error handling path in _hid_sensor_set_report_latency()
        iioc: dac: ltc2664: Fix span variable usage in ltc2664_channel_config()
        iio: dac: stm32-dac-core: add missing select REGMAP_MMIO in Kconfig
        iio: dac: ltc1660: add missing select REGMAP_SPI in Kconfig
        iio: dac: ad5770r: add missing select REGMAP_SPI in Kconfig
        iio: amplifiers: ada4250: add missing select REGMAP_SPI in Kconfig
        iio: frequency: adf4377: add missing select REMAP_SPI in Kconfig
        iio: resolver: ad2s1210: add missing select (TRIGGERED_)BUFFER in Kconfig
        iio: resolver: ad2s1210 add missing select REGMAP in Kconfig
        iio: proximity: mb1232: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
        iio: pressure: bm1390: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
        iio: magnetometer: af8133j: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
        iio: light: bu27008: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
        iio: chemical: ens160: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
        iio: dac: ad5766: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
        iio: dac: ad3552r: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
        ...
      7528cb0f
  2. 10 Oct, 2024 5 commits
  3. 06 Oct, 2024 33 commits