Repository navigation
Conversation
|
Upstream branch: 58161ea |
3d027d5 to
90ea7e4
Compare
|
Upstream branch: c03c1a1 |
22387c4 to
775e5e5
Compare
|
Upstream branch: c03c1a1 |
775e5e5 to
231ea45
Compare
|
Upstream branch: c03c1a1 |
231ea45 to
64cbf2c
Compare
90ea7e4 to
435b194
Compare
|
Upstream branch: 7be4bc5 |
64cbf2c to
a8a3081
Compare
435b194 to
fd67522
Compare
|
Upstream branch: 17bb0e2 |
a8a3081 to
ebc7933
Compare
fd67522 to
3b53a63
Compare
|
Upstream branch: 21a7f44 |
ebc7933 to
e5b06b3
Compare
3b53a63 to
5d84576
Compare
|
Upstream branch: 6b4b543 |
e5b06b3 to
c71ee38
Compare
5d84576 to
6582ed2
Compare
|
Upstream branch: fb2c3f4 |
c71ee38 to
dbc3627
Compare
6582ed2 to
b3a1abc
Compare
|
Upstream branch: d135ab4 |
dbc3627 to
29872b4
Compare
b3a1abc to
712496f
Compare
|
Upstream branch: c339f40 |
29872b4 to
e9eaa30
Compare
712496f to
a186880
Compare
|
Upstream branch: d89e1d1 |
e9eaa30 to
51aebbd
Compare
a186880 to
46206a3
Compare
|
Upstream branch: 6628e7d |
51aebbd to
1a275ab
Compare
46206a3 to
220bd96
Compare
|
Upstream branch: 05441d6 |
1a275ab to
570de9c
Compare
220bd96 to
6c4625e
Compare
|
Upstream branch: f66469d |
570de9c to
92a8ea6
Compare
6c4625e to
c7f678d
Compare
|
Upstream branch: d487237 |
92a8ea6 to
37242d9
Compare
c7f678d to
6aa6cd1
Compare
__get_task_ioprio() reads task->io_context and ioc->ioprio without task_lock() when called on current, e.g. from init_sync_kiocb() on every write. set_task_ioprio() can update both for another task at any time, including the first publication of a new io_context. KCSAN reports it: BUG: KCSAN: data-race in __kernel_write_iter / set_task_ioprio value changed: 0x0000000000000000 -> 0xffff888109813730 A stale or torn value is harmless, a task simply gets the old or new priority, but the compiler may tear or refetch the accesses and the io_context fields must be visible before the pointer is. The io_context itself needs no extra protection: only the owning task drops it, in exit_io_context(), so it cannot be freed under a lockless reader running as current. Publish the pointer with smp_store_release(), read it with READ_ONCE() (address dependency orders the ioprio load), and mark the ioprio accesses. Reported-by: syzbot+feeb9b5352b9ff89618a@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=feeb9b5352b9ff89618a Signed-off-by: Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
|
Upstream branch: b3dfbde |
37242d9 to
101a123
Compare
Pull request for series with
subject: block: annotate lockless task ioprio accesses
version: 1
url: https://patchwork.kernel.org/series/1188204/