syzbot


KCSAN: data-race in kcm_release / kcm_tx_work

Status: auto-closed as invalid on 2020/03/24 09:19
Subsystems: net
[Documentation on labels]
First crash: 1580d, last: 1536d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in kcm_release / kcm_tx_work

read to 0xffff888086691678 of 8 bytes by task 8202 on cpu 1:
 kcm_tx_work+0x5e/0xe0 net/kcm/kcmsock.c:741
 process_one_work+0x3d4/0x890 kernel/workqueue.c:2264
 worker_thread+0xa0/0x800 kernel/workqueue.c:2410
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

write to 0xffff888086691678 of 8 bytes by task 21288 on cpu 0:
 sk_set_socket include/net/sock.h:1801 [inline]
 sock_orphan include/net/sock.h:1820 [inline]
 kcm_release+0xb9/0x480 net/kcm/kcmsock.c:1843
 __sock_release+0x85/0x160 net/socket.c:592
 sock_close+0x24/0x30 net/socket.c:1270
 __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: 21288 Comm: syz-executor.0 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/14 09:12 https://github.com/google/ktsan.git kcsan 245a43005292 32881205 .config console log report ci2-upstream-kcsan-gce
2019/12/24 09:19 https://github.com/google/ktsan.git kcsan 245a43005292 be5c2c81 .config console log report ci2-upstream-kcsan-gce
2019/12/01 01:56 https://github.com/google/ktsan.git kcsan ef798c30ba4e a76bf83f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.