syzbot


KCSAN: data-race in do_group_exit / do_group_exit

Status: closed as invalid on 2019/11/19 13:44
Subsystems: kasan
[Documentation on labels]
First crash: 1642d, last: 1642d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_group_exit / do_group_exit (3) kasan 2 1425d 1456d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in do_group_exit / do_group_exit (4) kernel 6 1308d 1385d 0/26 auto-closed as invalid on 2020/10/28 04:41
upstream KCSAN: data-race in do_group_exit / do_group_exit (5) kernel 2 1206d 1212d 0/26 auto-closed as invalid on 2021/02/07 13:19
upstream KCSAN: data-race in do_group_exit / do_group_exit (8) kernel 1 287d 287d 0/26 auto-obsoleted due to no activity on 2023/08/15 00:36
upstream KCSAN: data-race in do_group_exit / do_group_exit (2) kasan 4 1594d 1609d 0/26 auto-closed as invalid on 2020/02/20 16:37
upstream KCSAN: data-race in do_group_exit / do_group_exit (9) kernel 1 247d 247d 0/26 auto-obsoleted due to no activity on 2023/09/23 23:34
upstream KCSAN: data-race in do_group_exit / do_group_exit (7) kernel 1 949d 949d 0/26 auto-closed as invalid on 2021/10/22 14:01
upstream KCSAN: data-race in do_group_exit / do_group_exit (6) kernel 12 1066d 1157d 0/26 auto-closed as invalid on 2021/06/27 02:37

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

write to 0xffff88811f85ad74 of 4 bytes by task 10433 on cpu 0:
 do_group_exit+0x1a6/0x1c0 kernel/exit.c:915
 __do_sys_exit_group kernel/exit.c:932 [inline]
 __se_sys_exit_group kernel/exit.c:930 [inline]
 __x64_sys_exit_group+0x2e/0x30 kernel/exit.c:930
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88811f85ad74 of 4 bytes by task 10438 on cpu 1:
 do_group_exit+0x7b/0x1c0 kernel/exit.c:904
 __do_sys_exit_group kernel/exit.c:932 [inline]
 __se_sys_exit_group kernel/exit.c:930 [inline]
 __x64_sys_exit_group+0x2e/0x30 kernel/exit.c:930
 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: 1 PID: 10438 Comm: syz-executor.5 Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 10438 Comm: syz-executor.5 Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0xf5/0x159 lib/dump_stack.c:113
 panic+0x210/0x640 kernel/panic.c:221
 kcsan_report.cold+0xc/0x10 kernel/kcsan/report.c:302
 __kcsan_setup_watchpoint+0x32e/0x4a0 kernel/kcsan/core.c:411
 __tsan_read4 kernel/kcsan/kcsan.c:35 [inline]
 __tsan_read4+0x2c/0x30 kernel/kcsan/kcsan.c:35
 do_group_exit+0x7b/0x1c0 kernel/exit.c:904
 __do_sys_exit_group kernel/exit.c:932 [inline]
 __se_sys_exit_group kernel/exit.c:930 [inline]
 __x64_sys_exit_group+0x2e/0x30 kernel/exit.c:930
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x459ef9
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f7fdaa0c6c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 0000000000459ef9
RDX: 0000000000000003 RSI: 00007f7fdaa0c700 RDI: 0000000000000007
RBP: 000000000075bfc8 R08: 00007f7fdaa0d700 R09: 0000000000000000
R10: 00007f7fdaa0d700 R11: 0000000000000246 R12: 000000000075c008
R13: 00000000004c088f R14: 00000000004d2f88 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..

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