syzbot


KCSAN: data-race in flush_workqueue / flush_workqueue

Status: auto-closed as invalid on 2020/02/14 11:06
Subsystems: bluetooth
[Documentation on labels]
First crash: 1620d, last: 1602d

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

read to 0xffff88805e102050 of 8 bytes by task 13217 on cpu 1:
 flush_workqueue+0x30b/0xc00 kernel/workqueue.c:2834
 hci_dev_open+0x9e/0x180 net/bluetooth/hci_core.c:1604
 hci_sock_ioctl+0x2f8/0x600 net/bluetooth/hci_sock.c:1015
 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

write to 0xffff88805e102050 of 8 bytes by task 13213 on cpu 0:
 flush_workqueue+0x93f/0xc00 kernel/workqueue.c:2905
 hci_dev_open+0x9e/0x180 net/bluetooth/hci_core.c:1604
 hci_sock_ioctl+0x2f8/0x600 net/bluetooth/hci_sock.c:1015
 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

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13213 Comm: syz-executor.1 Not tainted 5.4.0-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
2019/12/06 11:00 https://github.com/google/ktsan.git kcsan ef798c30ba4e 12c3b6cd .config console log report ci2-upstream-kcsan-gce
2019/11/22 10:37 https://github.com/google/ktsan.git kcsan 5863cc791e4c 598ca6c8 .config console log report ci2-upstream-kcsan-gce
2019/11/18 13:00 https://github.com/google/ktsan.git kcsan 5863cc791e4c d5696d51 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.