syzbot


KCSAN: data-race in copy_process / mm_update_next_owner (2)

Status: auto-closed as invalid on 2020/02/18 04:56
Subsystems: kasan
[Documentation on labels]
First crash: 1599d, last: 1591d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in copy_process / mm_update_next_owner kasan 2 1628d 1639d 0/26 closed as invalid on 2019/11/19 13:24
upstream KCSAN: data-race in copy_process / mm_update_next_owner (3) kernel 1 1061d 1061d 0/26 auto-closed as invalid on 2021/06/27 23:17

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

read to 0xffff888120dbf0e4 of 4 bytes by task 11972 on cpu 0:
 mm_update_next_owner+0x29f/0x460 kernel/exit.c:389
 exit_mm kernel/exit.c:484 [inline]
 do_exit+0x4c1/0x18f0 kernel/exit.c:804
 do_group_exit+0xb4/0x1c0 kernel/exit.c:921
 __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

write to 0xffff888120dbf0e4 of 4 bytes by task 11963 on cpu 1:
 copy_process+0x916/0x3b50 kernel/fork.c:1882
 _do_fork+0xfe/0x6e0 kernel/fork.c:2366
 __do_sys_clone kernel/fork.c:2521 [inline]
 __se_sys_clone kernel/fork.c:2502 [inline]
 __x64_sys_clone+0x12b/0x160 kernel/fork.c:2502
 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: 11963 Comm: syz-executor.1 Not tainted 5.4.0-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: 11963 Comm: syz-executor.1 Not tainted 5.4.0-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:315
 kcsan_setup_watchpoint+0x3fe/0x460 kernel/kcsan/core.c:423
 check_access kernel/kcsan/core.c:466 [inline]
 __tsan_write4 kernel/kcsan/core.c:595 [inline]
 __tsan_unaligned_write4+0xc4/0x100 kernel/kcsan/core.c:595
 copy_process+0x916/0x3b50 kernel/fork.c:1882
 _do_fork+0xfe/0x6e0 kernel/fork.c:2366
 __do_sys_clone kernel/fork.c:2521 [inline]
 __se_sys_clone kernel/fork.c:2502 [inline]
 __x64_sys_clone+0x12b/0x160 kernel/fork.c:2502
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45d0c9
Code: ff 48 85 f6 0f 84 d7 8c fb ff 48 83 ee 10 48 89 4e 08 48 89 3e 48 89 d7 4c 89 c2 4d 89 c8 4c 8b 54 24 08 b8 38 00 00 00 0f 05 <48> 85 c0 0f 8c ae 8c fb ff 74 01 c3 31 ed 48 f7 c7 00 00 01 00 75
RSP: 002b:00007ffe9e42fee8 EFLAGS: 00000202 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007f2fa1bb7700 RCX: 000000000045d0c9
RDX: 00007f2fa1bb79d0 RSI: 00007f2fa1bb6db0 RDI: 00000000003d0f00
RBP: 00007ffe9e430100 R08: 00007f2fa1bb7700 R09: 00007f2fa1bb7700
R10: 00007f2fa1bb79d0 R11: 0000000000000202 R12: 0000000000000000
R13: 00007ffe9e42ff9f R14: 00007f2fa1bb79c0 R15: 000000000075bfd4
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/12/10 04:55 https://github.com/google/ktsan.git kcsan ef798c30ba4e 4b83c8fb .config console log report ci2-upstream-kcsan-gce
2019/12/09 14:16 https://github.com/google/ktsan.git kcsan ef798c30ba4e b31eda3d .config console log report ci2-upstream-kcsan-gce
2019/12/02 18:03 https://github.com/google/ktsan.git kcsan ef798c30ba4e ab342da3 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.