syzbot


KCSAN: data-race in ns_capable_common / task_set_jobctl_pending

Status: closed as invalid on 2019/11/19 14:44
Subsystems: lsm
[Documentation on labels]
First crash: 1626d, last: 1626d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ns_capable_common / task_set_jobctl_pending (2) lsm 3 1513d 1596d 0/26 auto-closed as invalid on 2020/05/12 07:21

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

write to 0xffff88809abd2024 of 4 bytes by task 15653 on cpu 1:
 ns_capable_common+0x9f/0xc0 kernel/capability.c:377
 ns_capable kernel/capability.c:396 [inline]
 capable+0x28/0x40 kernel/capability.c:449
 hci_sock_bind+0x5d1/0xc10 net/bluetooth/hci_sock.c:1285
 __sys_bind+0x1df/0x220 net/socket.c:1647
 __do_sys_bind net/socket.c:1658 [inline]
 __se_sys_bind net/socket.c:1656 [inline]
 __x64_sys_bind+0x4c/0x60 net/socket.c:1656
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88809abd2024 of 4 bytes by task 15646 on cpu 0:
 task_set_jobctl_pending+0x9c/0x180 kernel/signal.c:291
 do_signal_stop+0x40e/0x500 kernel/signal.c:2349
 get_signal+0x61b/0x1320 kernel/signal.c:2694
 do_signal+0x3b/0xbf0 arch/x86/kernel/signal.c:815
 exit_to_usermode_loop+0x250/0x2c0 arch/x86/entry/common.c:159
 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:274 [inline]
 do_syscall_64+0x353/0x370 arch/x86/entry/common.c:300
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 15646 Comm: syz-executor.2 Not tainted 5.4.0-rc6+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

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