syzbot


KCSAN: data-race in d_delete / do_coredump

Status: auto-obsoleted due to no activity on 2024/02/11 07:52
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+c16bb43851a9c7b82e92@syzkaller.appspotmail.com
First crash: 387d, last: 387d

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

write to 0xffff888107af5550 of 8 bytes by task 10896 on cpu 1:
 __d_drop fs/dcache.c:508 [inline]
 d_delete+0xa0/0xf0 fs/dcache.c:2566
 d_delete_notify+0x30/0xe0 include/linux/fsnotify.h:260
 vfs_unlink+0x305/0x3e0 fs/namei.c:4333
 do_unlinkat+0x236/0x4c0 fs/namei.c:4382
 do_coredump+0x152f/0x1890 fs/coredump.c:675
 get_signal+0xdb5/0x10a0 kernel/signal.c:2890
 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:309
 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:309
 irqentry_exit+0x12/0x40 kernel/entry/common.c:412
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570

read to 0xffff888107af5550 of 8 bytes by task 10895 on cpu 0:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:336 [inline]
 do_coredump+0x15e5/0x1890 fs/coredump.c:713
 get_signal+0xdb5/0x10a0 kernel/signal.c:2890
 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:309
 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:309
 irqentry_exit+0x12/0x40 kernel/entry/common.c:412
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570

value changed: 0xffff888237a71ea8 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10895 Comm: syz-executor.5 Not tainted 6.7.0-rc8-syzkaller-00177-g52b1853b080a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/07 07:51 upstream 52b1853b080a d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / do_coredump
* Struck through repros no longer work on HEAD.