syzbot


KCSAN: data-race in do_coredump / drop_nlink

Status: auto-obsoleted due to no activity on 2023/09/22 14:46
Subsystems: ext4
[Documentation on labels]
First crash: 529d, last: 529d

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

write to 0xffff88812c136160 of 4 bytes by task 4144 on cpu 0:
 drop_nlink+0x3b/0x90 fs/inode.c:331
 __ext4_unlink+0x357/0x6b0 fs/ext4/namei.c:3286
 ext4_unlink+0xd6/0x2a0 fs/ext4/namei.c:3319
 vfs_unlink+0x261/0x3e0 fs/namei.c:4329
 do_unlinkat+0x26c/0x4f0 fs/namei.c:4395
 do_coredump+0x152e/0x1890 fs/coredump.c:675
 get_signal+0xd65/0xff0 kernel/signal.c:2867
 arch_do_signal_or_restart+0x89/0x2a0 arch/x86/kernel/signal.c:308
 exit_to_user_mode_loop+0x6f/0xe0 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:310
 irqentry_exit+0x12/0x40 kernel/entry/common.c:413
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570

read to 0xffff88812c136160 of 4 bytes by task 4137 on cpu 1:
 do_coredump+0x157b/0x1890 fs/coredump.c:711
 get_signal+0xd65/0xff0 kernel/signal.c:2867
 arch_do_signal_or_restart+0x89/0x2a0 arch/x86/kernel/signal.c:308
 exit_to_user_mode_loop+0x6f/0xe0 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:310
 irqentry_exit+0x12/0x40 kernel/entry/common.c:413
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4137 Comm: syz-executor.0 Not tainted 6.5.0-rc6-syzkaller-00117-g0e8860d2125f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/18 14:41 upstream 0e8860d2125f acb1ba71 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_coredump / drop_nlink
* Struck through repros no longer work on HEAD.