]> www.infradead.org Git - users/willy/linux.git/commit
eventpoll: Annotate data-race of busy_poll_usecs
authorMartin Karsten <mkarsten@uwaterloo.ca>
Tue, 6 Aug 2024 12:33:01 +0000 (12:33 +0000)
committerChristian Brauner <brauner@kernel.org>
Fri, 30 Aug 2024 06:22:34 +0000 (08:22 +0200)
commitb9ca079dd6b09e08863aa998edf5c47597806c05
treec1e3592d2b9b3636c8c5092d6d3a3c7410c8f7cb
parent4f98f380f4662829e394c840062ea677956b57ec
eventpoll: Annotate data-race of busy_poll_usecs

A struct eventpoll's busy_poll_usecs field can be modified via a user
ioctl at any time. All reads of this field should be annotated with
READ_ONCE.

Fixes: 85455c795c07 ("eventpoll: support busy poll per epoll instance")
Cc: stable@vger.kernel.org
Signed-off-by: Martin Karsten <mkarsten@uwaterloo.ca>
Link: https://lore.kernel.org/r/20240806123301.167557-1-jdamato@fastly.com
Reviewed-by: Joe Damato <jdamato@fastly.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/eventpoll.c