All of lore.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+c477bc599c896b5de237@syzkaller.appspotmail.com>
To: adobriyan@gmail.com, akpm@linux-foundation.org,
	brauner@kernel.org,  jack@suse.cz, jannh@google.com,
	linux-fsdevel@vger.kernel.org,  linux-kernel@vger.kernel.org,
	sforshee@kernel.org,  syzkaller-bugs@googlegroups.com
Subject: [syzbot] [fs?] KCSAN: data-race in proc_invalidate_siblings_dcache / proc_pid_evict_inode
Date: Fri, 27 Nov 2026 23:21:34 -0800	[thread overview]
Message-ID: <6b0a80fe.8ccee5ca.1045fd.028c.GAE@google.com> (raw)

Hello,

syzbot found the following issue on:

HEAD commit:    9437ee8b6cf6 Merge tag 'net-7.4-rc5' of git://git.kernel.o..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13557865580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=dc99102739636b09
dashboard link: https://syzkaller.appspot.com/bug?extid=c477bc599c896b5de237
compiler:       Debian clang version 22.1.8 (1~deb13u5), Debian LLD 22.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/a18388c9db19/disk-9437ee8b.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/a8415136a96e/vmlinux-9437ee8b.xz
kernel image: https://storage.googleapis.com/syzbot-assets/594b09b51c9a/bzImage-9437ee8b.xz

AI-generated root cause summary:
proc_invalidate_siblings_dcache() in fs/proc/inode.c reads the RCU-protected
hlist head using hlist_first_rcu(inodes) directly without wrapping it in
rcu_dereference() (or holding the list spinlock). Because hlist_first_rcu() is a
plain pointer dereference rather than an atomic/RCU load, this creates an
unmarked read on pid->inodes.first that races with marked writes
(WRITE_ONCE(*pprev, next)) in __hlist_del() when proc_pid_evict_inode() unlinks
a sibling inode under pid->lock.

full analysis:  https://syzkaller.appspot.com/x/ai_root_cause?x=c477bc599c896b5de237

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+c477bc599c896b5de237@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in proc_invalidate_siblings_dcache / proc_pid_evict_inode

write (marked) to 0xffff8881048a01d0 of 8 bytes by task 6951 on cpu 0:
 __hlist_del include/linux/list.h:1045 [inline]
 hlist_del_init_rcu include/linux/rculist.h:238 [inline]
 proc_pid_evict_inode+0x7c/0xd0 fs/proc/base.c:1918
 proc_evict_inode+0x45/0xa0 fs/proc/inode.c:41
 evict+0x301/0x570 fs/inode.c:829
 iput_final fs/inode.c:2036 [inline]
 iput+0x44f/0x5d0 fs/inode.c:2085
 dentry_unlink_inode+0x29a/0x2b0 fs/dcache.c:510
 dentry_kill+0x135/0x4f0 fs/dcache.c:857
 finish_dput+0x9f/0x1d0 fs/dcache.c:1032
 dput+0x43/0x50 fs/dcache.c:1073
 proc_invalidate_siblings_dcache+0x1e6/0x2c0 fs/proc/inode.c:143
 proc_flush_pid+0x1d/0x30 fs/proc/base.c:3457
 release_task+0xa0c/0xba0 kernel/exit.c:292
 exit_notify kernel/exit.c:781 [inline]
 do_exit+0xd64/0x1530 kernel/exit.c:992
 do_group_exit+0xfe/0x140 kernel/exit.c:1123
 get_signal+0xc49/0xd30 kernel/signal.c:3113
 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337
 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline]
 exit_to_user_mode_loop+0x161/0x940 kernel/entry/common.c:101
 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
 syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
 do_syscall_64+0x23b/0x3a0 arch/x86/entry/syscall_64.c:107
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881048a01d0 of 8 bytes by task 5112 on cpu 1:
 proc_invalidate_siblings_dcache+0x2a/0x2c0 fs/proc/inode.c:114
 proc_flush_pid+0x1d/0x30 fs/proc/base.c:3457
 release_task+0xa0c/0xba0 kernel/exit.c:292
 wait_task_zombie kernel/exit.c:1285 [inline]
 wait_consider_task+0x1131/0x1630 kernel/exit.c:1512
 do_wait_thread kernel/exit.c:1575 [inline]
 __do_wait+0xf1/0x500 kernel/exit.c:1693
 do_wait+0xc9/0x2c0 kernel/exit.c:1727
 kernel_wait4+0x19f/0x210 kernel/exit.c:1886
 __do_sys_wait4 kernel/exit.c:1914 [inline]
 __se_sys_wait4 kernel/exit.c:1910 [inline]
 __x64_sys_wait4+0x91/0x120 kernel/exit.c:1910
 x64_sys_call+0x108f/0x2550 arch/x86/include/generated/asm/syscalls_64.h:62
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff8881071611b0 -> 0xffff88810718e530

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 5112 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

                 reply	other threads:[~2026-11-28  7:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6b0a80fe.8ccee5ca.1045fd.028c.GAE@google.com \
    --to=syzbot+c477bc599c896b5de237@syzkaller.appspotmail.com \
    --cc=adobriyan@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=brauner@kernel.org \
    --cc=jack@suse.cz \
    --cc=jannh@google.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sforshee@kernel.org \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.