On 10/9/25 5:55 PM, Sasha Levin wrote:
From: Bartosz Golaszewski bartosz.golaszewski@linaro.org
[ Upstream commit cc85cb96e2e4489826e372cde645b7823c435de0 ]
The strict flag in struct pinmux_ops disallows the usage of the same pin as a GPIO and for another function. Without it, a rouge user-space process with enough privileges (or even a buggy driver) can request a used pin as GPIO and drive it, potentially confusing devices or even crashing the system. Set it globally for all pinctrl-msm users.
Reviewed-by: Konrad Dybcio konrad.dybcio@oss.qualcomm.com Tested-by: Neil Armstrong neil.armstrong@linaro.org Signed-off-by: Bartosz Golaszewski bartosz.golaszewski@linaro.org Signed-off-by: Linus Walleij linus.walleij@linaro.org Signed-off-by: Sasha Levin sashal@kernel.org
I didn't receive more related patches, but this had quite some dependencies (in pinctrl core and individual per-SoC drivers), which I'm not sure are worth all digging up and resolving conflicts
Konrad