diff options
author | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-09-30 11:09:50 +0000 |
---|---|---|
committer | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-09-30 11:20:25 +0000 |
commit | d000adfe41e6f2fe8f3dbe92d8fc2d34ae882086 (patch) | |
tree | 2ebe89c84471e6372a11ef0ca446cd3bb1eca553 /sys/arm64/include/(developers-only) | |
parent | fa26e445544eb88f05779258e2ab9c96384fe74d (diff) |
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