syzbot


KCSAN: data-race in kcm_ioctl / kcm_write_msgs

Status: auto-closed as invalid on 2020/01/25 05:46
Subsystems: net
[Documentation on labels]
First crash: 1620d, last: 1620d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in kcm_ioctl / kcm_write_msgs

write to 0xffff8880b1b2d80c of 1 bytes by task 10780 on cpu 1:
 kcm_unattach_ioctl net/kcm/kcmsock.c:1635 [inline]
 kcm_ioctl+0x750/0xba0 net/kcm/kcmsock.c:1707
 sock_do_ioctl+0x61/0x230 net/socket.c:1038
 sock_ioctl+0x3a3/0x5e0 net/socket.c:1189
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0x991/0xc60 fs/ioctl.c:696
 ksys_ioctl+0xbd/0xe0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x4c/0x60 fs/ioctl.c:718
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b1b2d80c of 1 bytes by task 28 on cpu 0:
 reserve_psock net/kcm/kcmsock.c:447 [inline]
 kcm_write_msgs+0x42d/0xd30 net/kcm/kcmsock.c:620
 kcm_tx_work+0x35/0xe0 net/kcm/kcmsock.c:732
 process_one_work+0x3d4/0x890 kernel/workqueue.c:2269
 worker_thread+0xa0/0x800 kernel/workqueue.c:2415
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 28 Comm: kworker/u4:3 Not tainted 5.4.0-rc7+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: kkcmd kcm_tx_work
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/16 05:41 https://github.com/google/ktsan.git kcsan 5863cc791e4c cdac920b .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.