syzbot


KCSAN: data-race in do_cpu_nanosleep.isra.0 / do_signal_stop (2)

Status: auto-closed as invalid on 2020/03/07 20:04
Subsystems: kernel
[Documentation on labels]
First crash: 1573d, last: 1573d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_cpu_nanosleep.isra.0 / do_signal_stop kernel 1 1620d 1620d 0/26 closed as invalid on 2019/11/19 15:04

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_cpu_nanosleep.isra.0 / do_signal_stop

read to 0xffff8881225de090 of 8 bytes by task 31488 on cpu 0:
 do_signal_stop+0x3e3/0x500 kernel/signal.c:2348
 get_signal+0x61b/0x1320 kernel/signal.c:2694
 do_signal+0x2f/0x6c0 arch/x86/kernel/signal.c:815
 exit_to_usermode_loop+0x250/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+0x384/0x3a0 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8881225de090 of 8 bytes by task 31485 on cpu 1:
 do_cpu_nanosleep.isra.0+0x195/0x380 kernel/time/posix-cpu-timers.c:1265
 posix_cpu_nsleep_restart+0x64/0x90 kernel/time/posix-cpu-timers.c:1351
 __ia32_sys_restart_syscall+0x3a/0x50 kernel/signal.c:2870
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 31485 Comm: syz-executor.3 Not tainted 5.5.0-rc1-syzkaller #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: 31485 Comm: syz-executor.3 Not tainted 5.5.0-rc1-syzkaller #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+0x11d/0x181 lib/dump_stack.c:118
 panic+0x210/0x640 kernel/panic.c:221
 kcsan_report.cold+0xc/0xd kernel/kcsan/report.c:313
 kcsan_setup_watchpoint+0x3fe/0x460 kernel/kcsan/core.c:416
 check_access kernel/kcsan/core.c:459 [inline]
 __tsan_unaligned_write8+0xc7/0x110 kernel/kcsan/core.c:589
 do_cpu_nanosleep.isra.0+0x195/0x380 kernel/time/posix-cpu-timers.c:1265
 posix_cpu_nsleep_restart+0x64/0x90 kernel/time/posix-cpu-timers.c:1351
 __ia32_sys_restart_syscall+0x3a/0x50 kernel/signal.c:2870
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45a919
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:00007fecb71a1c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000db
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045a919
RDX: 00000000200000c0 RSI: 00000300e10fac20 RDI: 0000000000000002
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fecb71a26d4
R13: 00000000004c0fe9 R14: 00000000004d4d18 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/12/28 20:03 https://github.com/google/ktsan.git kcsan 245a43005292 af6b8ef8 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.