aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/include/(developers-only)
diff options
context:
space:
mode:
authorAhmad Khalifa <vexeduxr@FreeBSD.org>2025-09-30 11:09:50 +0000
committerAhmad Khalifa <vexeduxr@FreeBSD.org>2025-09-30 11:20:25 +0000
commitd000adfe41e6f2fe8f3dbe92d8fc2d34ae882086 (patch)
tree2ebe89c84471e6372a11ef0ca446cd3bb1eca553 /sys/arm64/include/(developers-only)
parentfa26e445544eb88f05779258e2ab9c96384fe74d (diff)
gpioc: fix race in ioctl(GPIOCONFIGEVENTS)HEADmain
A race can occur in gpioc_ioctl when it is called with GPIOCONFIGEVENTS closely followed by GPIOSETCONFIG. GPIOSETCONFIG can alter the priv->pins list, making it no longer empty and opening the door for access to priv->events while we are reallocating it. Fix this by holding priv->mtx while handling GPIOCONFIGEVENTS. Reported by: Qiu-ji Chen PR: 289120 Reviewed by: mmel MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D52783
Diffstat (limited to 'sys/arm64/include/(developers-only)')
0 files changed, 0 insertions, 0 deletions