syzbot


KCSAN: data-race in kthread_stop / set_pf_worker

Status: auto-closed as invalid on 2020/03/23 05:09
Subsystems: block
[Documentation on labels]
First crash: 1589d, last: 1536d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in kthread_stop / set_pf_worker (2) rdma 1 1446d 1446d 0/26 auto-closed as invalid on 2020/06/18 13:33

Sample crash report:
==================================================================
BUG: KCSAN: data-race in kthread_stop / set_pf_worker

write to 0xffff8880b48bd0a4 of 4 bytes by task 30184 on cpu 1:
 set_pf_worker+0x58/0xb0 kernel/workqueue.c:2334
 rescuer_thread+0x7f/0x6a0 kernel/workqueue.c:2469
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

read to 0xffff8880b48bd0a4 of 4 bytes by task 30182 on cpu 0:
 to_kthread kernel/kthread.c:75 [inline]
 kthread_stop+0x9e/0x390 kernel/kthread.c:555
 destroy_workqueue+0xd9/0x4b0 kernel/workqueue.c:4364
 ucma_close+0x192/0x1b0 drivers/infiniband/core/ucma.c:1771
 __fput+0x1e1/0x520 fs/file_table.c:280
 ____fput+0x1f/0x30 fs/file_table.c:313
 task_work_run+0xf6/0x130 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 30182 Comm: syz-executor.2 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/13 05:02 https://github.com/google/ktsan.git kcsan 245a43005292 53faa9fe .config console log report ci2-upstream-kcsan-gce
2019/12/10 18:03 https://github.com/google/ktsan.git kcsan ef798c30ba4e 4b83c8fb .config console log report ci2-upstream-kcsan-gce
2019/11/20 15:04 https://github.com/google/ktsan.git kcsan 5863cc791e4c 432c7650 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.