umber-kernel/drivers/reset
Bartosz Golaszewski 76801c3dfc reset: gpio: suppress bind attributes in sysfs
[ Upstream commit 16de4c6a8fe9ff497ca1aba33ef0dbee09f11952 ]

This is a special device that's created dynamically and is supposed to
stay in memory forever. We also currently don't have a devlink between
it and the actual reset consumer. Suppress sysfs bind attributes so that
user-space can't unbind the device because - as of now - it will cause a
use-after-free splat from any user that puts the reset control handle.

Fixes: cee544a40e ("reset: gpio: Add GPIO-based reset controller")
Cc: stable@vger.kernel.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:21:07 -05:00
..
amlogic
hisilicon
starfive
sti
tegra
Kconfig reset: canaan: k230: drop OF dependency and enable by default 2026-02-26 14:59:10 -08:00
Makefile reset: aspeed: register AST2700 reset auxiliary bus device 2025-08-14 12:17:45 +02:00
core.c
reset-a10sr.c
reset-aspeed.c reset: aspeed: register AST2700 reset auxiliary bus device 2025-08-14 12:17:45 +02:00
reset-ath79.c
reset-axs10x.c
reset-bcm6345.c reset: bcm6345: add support for bcm63xx ephy control register 2025-08-14 12:13:55 +02:00
reset-berlin.c
reset-brcmstb-rescal.c
reset-brcmstb.c
reset-eyeq.c reset: eyeq: fix OF node leak 2025-08-27 16:40:13 +02:00
reset-gpio.c reset: gpio: suppress bind attributes in sysfs 2026-03-04 07:21:07 -05:00
reset-hsdk.c
reset-imx-scu.c
reset-imx7.c
reset-imx8mp-audiomix.c reset: imx8mp-audiomix: Fix bad mask values 2025-11-05 16:12:28 +01:00
reset-intel-gw.c reset: remove unneeded 'fast_io' parameter in regmap_config 2025-08-14 12:21:39 +02:00
reset-k210.c
reset-k230.c
reset-lantiq.c
reset-lpc18xx.c
reset-ma35d1.c
reset-microchip-sparx5.c
reset-mpfs.c
reset-npcm.c
reset-pistachio.c
reset-qcom-aoss.c
reset-qcom-pdc.c reset: remove unneeded 'fast_io' parameter in regmap_config 2025-08-14 12:21:39 +02:00
reset-raspberrypi.c
reset-rzg2l-usbphy-ctrl.c
reset-rzv2h-usb2phy.c
reset-scmi.c
reset-simple.c
reset-socfpga.c
reset-spacemit.c
reset-sunplus.c
reset-sunxi.c
reset-th1520.c reset: remove unneeded 'fast_io' parameter in regmap_config 2025-08-14 12:21:39 +02:00
reset-ti-sci.c
reset-ti-syscon.c
reset-tn48m.c
reset-tps380x.c
reset-uniphier-glue.c
reset-uniphier.c
reset-zynq.c
reset-zynqmp.c