Commit ef7dfac
committed
io_uring/poll: serialize poll linked timer start with poll removal
We selectively grab the ctx->uring_lock for poll update/removal, but
we really should grab it from the start to fully synchronize with
linked timeouts. Normally this is indeed the case, but if requests
are forced async by the application, we don't fully cover removal
and timer disarm within the uring_lock.
Make this simpler by having consistent locking state for poll removal.
Cc: stable@vger.kernel.org # 6.1+
Reported-by: Querijn Voet <querijnqyn@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent adeaa3f commit ef7dfac
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
| 980 | + | |
981 | 981 | | |
| 982 | + | |
982 | 983 | | |
983 | 984 | | |
984 | 985 | | |
| |||
990 | 991 | | |
991 | 992 | | |
992 | 993 | | |
993 | | - | |
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
997 | 997 | | |
998 | | - | |
999 | 998 | | |
1000 | 999 | | |
1001 | 1000 | | |
| |||
1019 | 1018 | | |
1020 | 1019 | | |
1021 | 1020 | | |
1022 | | - | |
| 1021 | + | |
1023 | 1022 | | |
1024 | 1023 | | |
1025 | 1024 | | |
1026 | 1025 | | |
1027 | 1026 | | |
1028 | 1027 | | |
1029 | 1028 | | |
1030 | | - | |
1031 | 1029 | | |
1032 | 1030 | | |
| 1031 | + | |
1033 | 1032 | | |
1034 | 1033 | | |
1035 | 1034 | | |
| |||
0 commit comments