syzbot


KCSAN: data-race in do_nanosleep / mm_update_next_owner

Status: closed as invalid on 2019/10/15 15:50
Subsystems: kernel
[Documentation on labels]
First crash: 1657d, last: 1651d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_nanosleep / mm_update_next_owner (3) kernel 1238 1050d 1551d 0/26 auto-closed as invalid on 2021/07/07 20:29
upstream KCSAN: data-race in do_nanosleep / mm_update_next_owner (2) kernel 29 1613d 1646d 0/26 closed as invalid on 2019/11/19 14:04

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

write to 0xffff888129c19124 of 4 bytes by task 7351 on cpu 0:
 freezer_count include/linux/freezer.h:121 [inline]
 freezable_schedule include/linux/freezer.h:173 [inline]
 do_nanosleep+0x126/0x330 kernel/time/hrtimer.c:1679
 hrtimer_nanosleep+0x1c1/0x3e0 kernel/time/hrtimer.c:1733
 __do_sys_nanosleep kernel/time/hrtimer.c:1767 [inline]
 __se_sys_nanosleep kernel/time/hrtimer.c:1754 [inline]
 __x64_sys_nanosleep+0x106/0x150 kernel/time/hrtimer.c:1754
 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888129c19124 of 4 bytes by task 7576 on cpu 1:
 mm_update_next_owner+0x29f/0x460 kernel/exit.c:451
 exit_mm kernel/exit.c:546 [inline]
 do_exit+0x4e5/0x18e0 kernel/exit.c:866
 do_group_exit+0xb4/0x1c0 kernel/exit.c:983
 __do_sys_exit_group kernel/exit.c:994 [inline]
 __se_sys_exit_group kernel/exit.c:992 [inline]
 __x64_sys_exit_group+0x2e/0x30 kernel/exit.c:992
 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7576 Comm: syz-executor.2 Not tainted 5.3.0+ #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: 7576 Comm: syz-executor.2 Not tainted 5.3.0+ #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+0x209/0x639 kernel/panic.c:219
 kcsan_report.cold+0xc/0x1b kernel/kcsan/report.c:303
 __kcsan_setup_watchpoint+0x3ee/0x510 kernel/kcsan/core.c:455
 __tsan_read4 kernel/kcsan/kcsan.c:30 [inline]
 __tsan_read4+0x2c/0x30 kernel/kcsan/kcsan.c:30
 mm_update_next_owner+0x29f/0x460 kernel/exit.c:451
 exit_mm kernel/exit.c:546 [inline]
 do_exit+0x4e5/0x18e0 kernel/exit.c:866
 do_group_exit+0xb4/0x1c0 kernel/exit.c:983
 __do_sys_exit_group kernel/exit.c:994 [inline]
 __se_sys_exit_group kernel/exit.c:992 [inline]
 __x64_sys_exit_group+0x2e/0x30 kernel/exit.c:992
 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x459a59
Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd606969a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 000000000000001e RCX: 0000000000459a59
RDX: 0000000000413741 RSI: fffffffffffffff7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffff R09: 00007ffd60696a00
R10: 0000000000762930 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffd60696a00 R14: 0000000000000000 R15: 00007ffd60696a10
Shutting down cpus with NMI
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/10 10:01 https://github.com/google/ktsan.git kcsan d724f94f63de d52eff28 .config console log report ci2-upstream-kcsan-gce
2019/10/05 10:19 https://github.com/google/ktsan.git kcsan c1c7521f03c7 f3f7d9c8 .config console log report ci2-upstream-kcsan-gce
2019/10/04 16:28 https://github.com/google/ktsan.git kcsan b4bd934316dc c86336cf .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.