Skip to content

pinctrl: Fix out-of-bounds accesses, divide-by-zero, and error handling

Lee Jones linux-arm-kernel linux-gpio linux-mediatek linux-mips linux-tegra lkml stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyIn review
  2. v110 patches 17 repliesSuperseded

Changes in v2 from the cover letter

- Drop patches 05/10, 06/10, 07/10, and 10/10, already applied to pinctrl for-next
- Drop patch 01/10 (sunxi) in favour of the broader Allwinner IRQ-bank rework in flight (Andre, Sashiko)
- mediatek: Guard against NULL eint in mtk_eint_do_suspend() and mtk_eint_do_resume() before resetting hw->eint to NULL on error (Sashiko)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6pinctrl: tegra186: Fix out-of-bounds register bank index for AON drive groupsdrivers/pinctrl/tegra/pinctrl-tegra186.c+51 -510 replies
2/6pinctrl: ingenic: Fix element type of x1600_sfc_funcs arraydrivers/pinctrl/pinctrl-ingenic.c+1 -10 replies
3/6pinctrl: mediatek: mt7981: Add missing entries to mt7981_ant_sel_funcsdrivers/pinctrl/mediatek/pinctrl-mt7981.c+1 -11 reply
4/6pinctrl: mediatek: Guard against NULL eint in mtk_eint_do_suspend() and mtk_eint_do_resume()drivers/pinctrl/mediatek/mtk-eint.c+6 -00 replies
5/6pinctrl: mediatek: Clean up partially initialised hw->eint on errordrivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c+8 -40 replies
6/6pinctrl: mediatek: Prevent divide-by-zero for pins with fixed drive strengthdrivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c+12 -00 replies

Reviews trailers per patch

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

PatchThierry RedingDaniel Golle
1/6R-b
2/6
3/6R-b
4/6
5/6
6/6

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

Read the v2 thread

Cover letter [PATCH v2 0/6] pinctrl: Fix out-of-bounds accesses, divide-by-zero, and error handling

These issues were reported by Sashiko.

v1 => v2:
- Drop patches 05/10, 06/10, 07/10, and 10/10, already applied to pinctrl for-next
- Drop patch 01/10 (sunxi) in favour of the broader Allwinner IRQ-bank rework in flight (Andre, Sashiko)
- mediatek: Guard against NULL eint in mtk_eint_do_suspend() and mtk_eint_do_resume() before resetting hw->eint to NULL on error (Sashiko)

v1: https://lore.kernel.org/all/[email protected]/

Cc Aaron Kling <[email protected]>
Cc Andreas Kemnade <[email protected]>
Cc AngeloGioacchino Del Regno <[email protected]>
Cc Bartosz Golaszewski <[email protected]>
Cc Daniel Golle <[email protected]>
Cc Hao Chang <[email protected]>
Cc "H. Nikolaus Schaller" <[email protected]>
Cc Jonathan Hunter <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Maoguang Meng <[email protected]>
Cc Matthias Brugger <[email protected]>
Cc Nicolas Boichat <[email protected]>
Cc Olivier Louvignes <[email protected]>
Cc Paul Boddie <[email protected]>
Cc Paul Cercueil <[email protected]>
Cc Qingliang Li <[email protected]>
Cc Rob Herring <[email protected]>
Cc "Ryder.Lee" <[email protected]>
Cc Sam Shih <[email protected]>
Cc Sean Wang <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Thierry Reding <[email protected]>

Lee Jones (6):
pinctrl: tegra186: Fix out-of-bounds register bank index for AON drive
groups
pinctrl: ingenic: Fix element type of x1600_sfc_funcs array
pinctrl: mediatek: mt7981: Add missing entries to mt7981_ant_sel_funcs
pinctrl: mediatek: Guard against NULL eint in mtk_eint_do_suspend()
and mtk_eint_do_resume()
pinctrl: mediatek: Clean up partially initialised hw->eint on error
pinctrl: mediatek: Prevent divide-by-zero for pins with fixed drive
strength

 drivers/pinctrl/mediatek/mtk-eint.c           |   6 ++
 drivers/pinctrl/mediatek/pinctrl-mt7981.c     |   2 +-
 .../pinctrl/mediatek/pinctrl-mtk-common-v2.c  |  24 ++++-
 drivers/pinctrl/pinctrl-ingenic.c             |   2 +-
 drivers/pinctrl/tegra/pinctrl-tegra186.c      | 102 +++++++++---------
 5 files changed, 79 insertions(+), 57 deletions(-)
Signature · 1 line
2.56.1.750.gf70dc682cf-goog