[PATCH v3 00/12] pinctrl: Fix memory leaks, OOB writes, and resource handling bugs

Lee Jones lee at kernel.org
Fri Nov 27 06:04:48 PST 2026


These issues were reported by Sashiko.

This v3 series addresses Alexander Sverdlin's review feedback on
pinctrl-single and rebases the twelve patches onto pinctrl/for-next.

v2 => v3:
 - Rebase onto pinctrl/for-next.
 - Add Alexander Sverdlin's Reviewed-by tag on patch 09.
 - Update patch 10 (pinctrl: single) to use kzalloc_objs() with pinctrl_utils_free_map() directly and update its Fixes tag, per Alexander Sverdlin's review.

Cc: "Andreas Färber" <afaerber at suse.com>
Cc: Andrew Gaylard <ag at ffroot.co.za>
Cc: Andrew Jeffery <andrew at codeconstruct.com.au>
Cc: Andy Shevchenko <andy.shevchenko at gmail.com>
Cc: Avi Fishman <avifishman70 at gmail.com>
Cc: Benjamin Fair <benjaminfair at google.com>
Cc: Dan Carpenter <error27 at gmail.com>
Cc: Dvorkin Dmitry <dvorkin at tibbo.com>
Cc: Haojian Zhuang <haojian.zhuang at linaro.org>
Cc: Harshit Mogalapalli <harshit.m.mogalapalli at oracle.com>
Cc: Jacky Huang <ychuang3 at nuvoton.com>
Cc: James Tai <james.tai at realtek.com>
Cc: jordan_hargrave at dell.com
Cc: Linus Walleij <linusw at kernel.org>
Cc: linux-arm-kernel at lists.infradead.org
Cc: linux-gpio at vger.kernel.org
Cc: linux-omap at vger.kernel.org
Cc: linux-realtek-soc at lists.infradead.org
Cc: Maulik Shah <maulik.shah at oss.qualcomm.com>
Cc: Nancy Yuen <yuenn at google.com>
Cc: openbmc at lists.ozlabs.org
Cc: Patrick Venture <venture at google.com>
Cc: Shan-Chun Hung <schung at nuvoton.com>
Cc: Tali Perry <tali.perry1 at gmail.com>
Cc: Tomer Maimon <tmaimon77 at gmail.com>
Cc: tomer.maimon at nuvoton.com
Cc: Tony Lindgren <tony at atomide.com>
Cc: Tzuyi Chang <tychang at realtek.com>
Cc: Wells Lu <wellslutw at gmail.com>
Cc: Yang Yingliang <yangyingliang at huawei.com>
Cc: Yu-Chun Lin <eleanor.lin at realtek.com>

Lee Jones (12):
  pinctrl: nuvoton: ma35: Unmap reg_base and release clock on probe
    error
  pinctrl: nuvoton: ma35: Prevent out-of-bounds write in
    ma35_pinctrl_get_soc_data()
  pinctrl: nuvoton: ma35: Retain child firmware node reference in
    ma35_pinctrl_get_soc_data()
  pinctrl: nuvoton: ma35: Assign fwnode to gpio_chip in
    ma35_gpiolib_register()
  pinctrl: nuvoton: ma35: Avoid leaking map when parent node is missing
  pinctrl: nuvoton: Unmap GPIO bank registers on error in NPCM7xx and
    NPCM8xx
  pinctrl: nuvoton: npcm8xx: Propagate npcm8xx_gpio_register() error in
    probe
  pinctrl: nuvoton: npcm7xx: Fix fwnode_irq_get() error check in
    npcm7xx_gpio_of()
  pinctrl: single: Reject invalid register width in pcs_probe()
  pinctrl: single: Free pinconf settings array with
    pinctrl_utils_free_map()
  pinctrl: sunplus: Validate pin_func index in sppctl_dt_node_to_map()
  pinctrl: realtek: rtd1625: Set dcycle_offset to NA for pins without
    duty-cycle support

 drivers/pinctrl/nuvoton/pinctrl-ma35.c    | 70 +++++++++++++++++++----
 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 20 +++++--
 drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 15 ++++-
 drivers/pinctrl/pinctrl-single.c          | 52 +++++++----------
 drivers/pinctrl/realtek/pinctrl-rtd1625.c | 12 ++--
 drivers/pinctrl/sunplus/sppctl.c          |  7 ++-
 6 files changed, 123 insertions(+), 53 deletions(-)

-- 
2.56.1.839.g22a8290db9-goog




More information about the linux-arm-kernel mailing list