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
Makefile
core.c
reset-a10sr.c
reset-aspeed.c
reset-ath79.c
reset-axs10x.c
reset-bcm6345.c
reset-berlin.c
reset-brcmstb-rescal.c
reset-brcmstb.c
reset-eyeq.c
reset-gpio.c
reset-hsdk.c
reset-imx-scu.c
reset-imx7.c
reset-imx8mp-audiomix.c
reset-intel-gw.c
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-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-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