From: Lee Jones <lee@kernel.org>
To: lee@kernel.org
Cc: linux-kernel@vger.kernel.org,
"Alexander Sverdlin" <alex@sverdlin.org>,
"Andreas Färber" <afaerber@suse.com>,
"Andrew Gaylard" <ag@ffroot.co.za>,
"Andrew Jeffery" <andrew@codeconstruct.com.au>,
"Andy Shevchenko" <andy.shevchenko@gmail.com>,
"Avi Fishman" <avifishman70@gmail.com>,
"Benjamin Fair" <benjaminfair@google.com>,
"Dvorkin Dmitry" <dvorkin@tibbo.com>,
"Haojian Zhuang" <haojian.zhuang@linaro.org>,
"Harshit Mogalapalli" <harshit.m.mogalapalli@oracle.com>,
"Jacky Huang" <ychuang3@nuvoton.com>,
"James Tai" <james.tai@realtek.com>,
jordan_hargrave@dell.com, "Linus Walleij" <linusw@kernel.org>,
linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org,
linux-omap@vger.kernel.org,
linux-realtek-soc@lists.infradead.org,
"Nancy Yuen" <yuenn@google.com>,
openbmc@lists.ozlabs.org, "Patrick Venture" <venture@google.com>,
"Shan-Chun Hung" <schung@nuvoton.com>,
"Tali Perry" <tali.perry1@gmail.com>,
tomer.maimon@nuvoton.com, "Tomer Maimon" <tmaimon77@gmail.com>,
"Tony Lindgren" <tony@atomide.com>,
"Tzuyi Chang" <tychang@realtek.com>,
"Wells Lu" <wellslutw@gmail.com>,
"Yu-Chun Lin" <eleanor.lin@realtek.com>
Subject: [PATCH v2 00/12] pinctrl: Fix resource leaks, out-of-bounds accesses, and error handling (batch 2)
Date: Thu, 19 Nov 2026 20:48:56 +0000 [thread overview]
Message-ID: <20261119205013.2563811-1-lee@kernel.org> (raw)
These issues were reported by Sashiko (batch 2).
v1 => v2:
- Rebase onto pinctrl for-next, dropping the manual fwnode_handle_put()
in npcm7xx_gpio_of() now covered by __free(fwnode_handle)
- ma35: Explicitly include the I/O mapping header for iounmap()
- ma35: Retain a reference on bank->fwnode in ma35_pinctrl_get_soc_data()
(Sashiko)
- ma35: Correct the description of commit 3fd976afe974 in the
dt_node_to_map commit message (Sashiko)
- npcm7xx, npcm8xx: Release GPIO bank fwnode_iomap() mappings via devres
on error (Sashiko)
- single: Switch *map and settings in pcs_dt_node_to_map() and
pcs_parse_pinconf() to unmanaged kcalloc()/kfree() so devres teardown
cannot free *map before pcs_dt_free_map() runs
v1: https://lore.kernel.org/all/20261111215256.1982044-1-lee@kernel.org/
Cc: Alexander Sverdlin <alex@sverdlin.org>
Cc: "Andreas Färber" <afaerber@suse.com>
Cc: Andrew Gaylard <ag@ffroot.co.za>
Cc: Andrew Jeffery <andrew@codeconstruct.com.au>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Avi Fishman <avifishman70@gmail.com>
Cc: Benjamin Fair <benjaminfair@google.com>
Cc: Dvorkin Dmitry <dvorkin@tibbo.com>
Cc: Haojian Zhuang <haojian.zhuang@linaro.org>
Cc: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Cc: Jacky Huang <ychuang3@nuvoton.com>
Cc: James Tai <james.tai@realtek.com>
Cc: jordan_hargrave@dell.com
Cc: Linus Walleij <linusw@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-gpio@vger.kernel.org
Cc: linux-omap@vger.kernel.org
Cc: linux-realtek-soc@lists.infradead.org
Cc: Nancy Yuen <yuenn@google.com>
Cc: openbmc@lists.ozlabs.org
Cc: Patrick Venture <venture@google.com>
Cc: Shan-Chun Hung <schung@nuvoton.com>
Cc: Tali Perry <tali.perry1@gmail.com>
Cc: tomer.maimon@nuvoton.com
Cc: Tomer Maimon <tmaimon77@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Tzuyi Chang <tychang@realtek.com>
Cc: Wells Lu <wellslutw@gmail.com>
Cc: Yu-Chun Lin <eleanor.lin@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 in pcs_dt_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 | 49 ++++++++--------
drivers/pinctrl/realtek/pinctrl-rtd1625.c | 12 ++--
drivers/pinctrl/sunplus/sppctl.c | 7 ++-
6 files changed, 126 insertions(+), 47 deletions(-)
--
2.56.1.750.gf70dc682cf-goog
next reply other threads:[~2026-11-19 20:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 20:48 Lee Jones [this message]
2026-11-19 20:48 ` [PATCH v2 01/12] pinctrl: nuvoton: ma35: Unmap reg_base and release clock on probe error Lee Jones
2026-11-19 20:48 ` [PATCH v2 02/12] pinctrl: nuvoton: ma35: Prevent out-of-bounds write in ma35_pinctrl_get_soc_data() Lee Jones
2026-11-19 20:48 ` [PATCH v2 03/12] pinctrl: nuvoton: ma35: Retain child firmware node reference " Lee Jones
2026-11-19 20:49 ` [PATCH v2 04/12] pinctrl: nuvoton: ma35: Assign fwnode to gpio_chip in ma35_gpiolib_register() Lee Jones
2026-11-19 20:49 ` [PATCH v2 05/12] pinctrl: nuvoton: ma35: Avoid leaking map when parent node is missing Lee Jones
2026-11-19 20:49 ` [PATCH v2 06/12] pinctrl: nuvoton: Unmap GPIO bank registers on error in NPCM7xx and NPCM8xx Lee Jones
2026-11-19 20:49 ` [PATCH v2 07/12] pinctrl: nuvoton: npcm8xx: Propagate npcm8xx_gpio_register() error in probe Lee Jones
2026-11-19 20:49 ` [PATCH v2 08/12] pinctrl: nuvoton: npcm7xx: Fix fwnode_irq_get() error check in npcm7xx_gpio_of() Lee Jones
2026-11-19 20:49 ` [PATCH v2 09/12] pinctrl: single: Reject invalid register width in pcs_probe() Lee Jones
2026-11-19 22:38 ` Sverdlin, Alexander
2026-11-19 20:49 ` [PATCH v2 10/12] pinctrl: single: Free pinconf settings array in pcs_dt_free_map() Lee Jones
2026-11-19 22:38 ` Sverdlin, Alexander
2026-11-19 20:49 ` [PATCH v2 11/12] pinctrl: sunplus: Validate pin_func index in sppctl_dt_node_to_map() Lee Jones
2026-11-19 20:49 ` [PATCH v2 12/12] pinctrl: realtek: rtd1625: Set dcycle_offset to NA for pins without duty-cycle support Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261119205013.2563811-1-lee@kernel.org \
--to=lee@kernel.org \
--cc=afaerber@suse.com \
--cc=ag@ffroot.co.za \
--cc=alex@sverdlin.org \
--cc=andrew@codeconstruct.com.au \
--cc=andy.shevchenko@gmail.com \
--cc=avifishman70@gmail.com \
--cc=benjaminfair@google.com \
--cc=dvorkin@tibbo.com \
--cc=eleanor.lin@realtek.com \
--cc=haojian.zhuang@linaro.org \
--cc=harshit.m.mogalapalli@oracle.com \
--cc=james.tai@realtek.com \
--cc=jordan_hargrave@dell.com \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-realtek-soc@lists.infradead.org \
--cc=openbmc@lists.ozlabs.org \
--cc=schung@nuvoton.com \
--cc=tali.perry1@gmail.com \
--cc=tmaimon77@gmail.com \
--cc=tomer.maimon@nuvoton.com \
--cc=tony@atomide.com \
--cc=tychang@realtek.com \
--cc=venture@google.com \
--cc=wellslutw@gmail.com \
--cc=ychuang3@nuvoton.com \
--cc=yuenn@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.