syzbot


KCSAN: data-race in ns_capable_common / task_set_jobctl_pending (2)

Status: auto-closed as invalid on 2020/05/12 07:21
Subsystems: lsm
[Documentation on labels]
First crash: 1927d, last: 1844d
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 lsm 1 1957d 1957d 0/28 closed as invalid on 2019/11/19 14:44

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

write to 0xffff888092bf4024 of 4 bytes by task 25817 on cpu 0:
 ns_capable_common+0x9a/0xc0 kernel/capability.c:377
 ns_capable kernel/capability.c:396 [inline]
 capable_wrt_inode_uidgid+0x5a/0xa0 kernel/capability.c:506
 generic_permission+0x2f1/0x3f0 fs/namei.c:359
 do_inode_permission fs/namei.c:391 [inline]
 inode_permission+0x77/0x360 fs/namei.c:449
 may_open.isra.0+0x13d/0x240 fs/namei.c:3048
 do_last fs/namei.c:3486 [inline]
 path_openat+0xd60/0x2f70 fs/namei.c:3607
 do_filp_open+0x11e/0x1b0 fs/namei.c:3637
 do_sys_openat2+0x4f5/0x620 fs/open.c:1149
 do_sys_open+0xa2/0x110 fs/open.c:1165
 ksys_open include/linux/syscalls.h:1386 [inline]
 __do_sys_open fs/open.c:1171 [inline]
 __se_sys_open fs/open.c:1169 [inline]
 __x64_sys_open+0x50/0x60 fs/open.c:1169
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888092bf4024 of 4 bytes by task 25811 on cpu 1:
 task_set_jobctl_pending+0x98/0x180 kernel/signal.c:291
 do_signal_stop+0x3f7/0x4e0 kernel/signal.c:2349
 get_signal+0x601/0x1290 kernel/signal.c:2694
 do_signal+0x2b/0x670 arch/x86/kernel/signal.c:813
 exit_to_usermode_loop+0x24a/0x2c0 arch/x86/entry/common.c:160
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x36e/0x390 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25811 Comm: syz-executor.4 Not tainted 5.6.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/03/03 07:21 https://github.com/google/ktsan.git kcsan 766d004d1b85 4a4e0509 .config console log report ci2-upstream-kcsan-gce
2020/02/05 17:06 https://github.com/google/ktsan.git kcsan 245a43005292 662cf49a .config console log report ci2-upstream-kcsan-gce
2019/12/11 23:42 https://github.com/google/ktsan.git kcsan ef798c30ba4e 0d368675 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.