syzbot


KCSAN: data-race in futex_wait_queue_me / io_fail_links

Status: auto-closed as invalid on 2020/12/27 22:02
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+86eb5e48369b89ab0252@syzkaller.appspotmail.com
First crash: 1261d, last: 1244d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in futex_wait_queue_me / io_fail_links (2) kernel 4 1164d 1208d 0/26 auto-closed as invalid on 2021/03/17 08:38

Sample crash report:
==================================================================
BUG: KCSAN: data-race in futex_wait_queue_me / io_fail_links

read-write to 0xffff888139729064 of 4 bytes by task 15713 on cpu 1:
 freezer_count include/linux/freezer.h:121 [inline]
 freezable_schedule include/linux/freezer.h:173 [inline]
 futex_wait_queue_me+0x198/0x240 kernel/futex.c:2604
 futex_wait+0x145/0x390 kernel/futex.c:2706
 do_futex+0x10ff/0x2140 kernel/futex.c:3765
 __do_sys_futex kernel/futex.c:3828 [inline]
 __se_sys_futex+0x2a8/0x390 kernel/futex.c:3794
 __x64_sys_futex+0x74/0x80 kernel/futex.c:3794
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888139729064 of 4 bytes by task 15718 on cpu 0:
 io_req_task_work_add fs/io_uring.c:2007 [inline]
 io_free_req_deferred fs/io_uring.c:2201 [inline]
 io_put_req_deferred fs/io_uring.c:2214 [inline]
 io_fail_links+0x1b4/0x650 fs/io_uring.c:1964
 __io_req_find_next fs/io_uring.c:1989 [inline]
 io_req_find_next fs/io_uring.c:1997 [inline]
 io_steal_work fs/io_uring.c:2229 [inline]
 io_wq_submit_work+0x716/0x760 fs/io_uring.c:6081
 io_worker_handle_work+0xd2a/0x1000 fs/io-wq.c:572
 io_wqe_worker+0x202/0x810 fs/io-wq.c:614
 kthread+0x1fa/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 15718 Comm: io_wqe_worker-0 Not tainted 5.10.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/22 22:01 upstream 68d3fa235fd8 0d27f508 .config console log report info ci2-upstream-kcsan-gce
2020/11/05 21:28 upstream 521b619acdc8 cba33199 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.