syzbot


KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (9)

Status: moderation: reported on 2026/02/12 02:29
Subsystems: ext4
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+f675e69be7135b609a50@syzkaller.appspotmail.com
First crash: 122d, last: 4d09h
✨ AI Jobs (3)
ID Workflow Result Correct Bug Created Started Finished Revision Error
c770bd12-14b1-40a8-b3ee-317979c58f96 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ✅ VMHostTrigger: ❌ KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (9) 2026/06/02 18:13 2026/06/02 18:13 2026/06/02 18:15 62fe15281f5011cd203d8845b8767b10e7443aa5
632d0475-633c-4d34-957d-8e657c82034a assessment-security 💥 KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (9) 2026/05/26 15:24 2026/05/26 15:24 2026/05/26 15:24 76d4b4b1b168407cf701ec594f642e93a00ce699 failed to run ["git" "-c" "core.hooksPath=/dev/null" "fetch" "--force" "--tags" "f569e972c8e9057ee9c286220c83a480ebf30cc5" "e8c2f9fdadee7cbc75134dc463c1e0d856d6e5c7"]: exit status 128 error: insufficient permission for adding an object to repository database .git/objects fatal: failed to write object fatal: unpack-objects failed
7be8049a-9771-4ab7-8c14-7f4a4f129e1f assessment-kcsan Benign: ✅ Confident: ✅ KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (9) 2026/02/12 16:25 2026/02/13 13:11 2026/02/13 13:13 54290dbc8f9e8d4533df2bb39cf823e93897fb2c
Similar bugs (8)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (4) ext4 6 80 776d 920d 0/29 auto-obsoleted due to no activity on 2024/06/03 21:44
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (8) ext4 6 9 193d 364d 0/29 auto-obsoleted due to no activity on 2026/01/28 21:28
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (3) fs 6 1 1212d 1212d 0/29 auto-obsoleted due to no activity on 2023/04/01 03:15
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (5) ext4 6 13 602d 719d 0/29 auto-obsoleted due to no activity on 2024/11/24 11:50
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru fs 6 14 2321d 2387d 0/29 auto-closed as invalid on 2020/04/15 20:03
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (2) ext4 exfat 6 213 1257d 1717d 0/29 auto-obsoleted due to no activity on 2023/02/08 20:39
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (6) ext4 6 1 564d 564d 0/29 auto-obsoleted due to no activity on 2025/01/22 20:51
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (7) ext4 6 6 426d 499d 0/29 auto-obsoleted due to no activity on 2025/06/09 21:46

Sample crash report:
EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000.
==================================================================
BUG: KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru

write to 0xffff888237d277a0 of 8 bytes by task 3289 on cpu 1:
 __invalidate_bh_lrus fs/buffer.c:1426 [inline]
 invalidate_bh_lru+0x89/0xe0 fs/buffer.c:1438
 csd_do_func kernel/smp.c:136 [inline]
 smp_call_function_many_cond+0x719/0xb70 kernel/smp.c:883
 on_each_cpu_cond_mask+0x3c/0x80 kernel/smp.c:1057
 on_each_cpu_cond include/linux/smp.h:106 [inline]
 invalidate_bh_lrus+0x2a/0x30 fs/buffer.c:1457
 kill_bdev block/bdev.c:90 [inline]
 blkdev_flush_mapping+0x94/0x1a0 block/bdev.c:720
 blkdev_put_whole block/bdev.c:727 [inline]
 bdev_release+0x2bf/0x3d0 block/bdev.c:1152
 blkdev_release+0x15/0x20 block/fops.c:705
 __fput+0x29b/0x630 fs/file_table.c:510
 fput_close_sync+0xad/0x190 fs/file_table.c:615
 __do_sys_close fs/open.c:1507 [inline]
 __se_sys_close fs/open.c:1492 [inline]
 __x64_sys_close+0x55/0xf0 fs/open.c:1492
 x64_sys_call+0x275d/0x3020 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x12c/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888237d277a0 of 8 bytes by task 3296 on cpu 0:
 has_bh_in_lru+0x35/0x1f0 fs/buffer.c:1448
 smp_call_function_many_cond+0x2a7/0xb70 kernel/smp.c:836
 on_each_cpu_cond_mask+0x3c/0x80 kernel/smp.c:1057
 on_each_cpu_cond include/linux/smp.h:106 [inline]
 invalidate_bh_lrus+0x2a/0x30 fs/buffer.c:1457
 invalidate_bdev+0x42/0x70 block/bdev.c:100
 ext4_put_super+0x610/0x7b0 fs/ext4/super.c:1355
 generic_shutdown_super+0xee/0x220 fs/super.c:646
 kill_block_super+0x2a/0x70 fs/super.c:1725
 ext4_kill_sb+0x42/0x80 fs/ext4/super.c:7492
 deactivate_locked_super+0x75/0x1c0 fs/super.c:476
 deactivate_super+0x97/0xa0 fs/super.c:509
 cleanup_mnt+0x2bb/0x330 fs/namespace.c:1312
 __cleanup_mnt+0x19/0x20 fs/namespace.c:1319
 task_work_run+0x130/0x1a0 kernel/task_work.c:233
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 __exit_to_user_mode_loop kernel/entry/common.c:67 [inline]
 exit_to_user_mode_loop+0x211/0x820 kernel/entry/common.c:98
 __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:318 [inline]
 do_syscall_64+0x232/0x3b0 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff8881006a81a0 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3296 Comm: syz-executor Tainted: G        W           syzkaller #0 PREEMPT(lazy) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/06/10 13:03 upstream acb7500801e9 f79bac11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
2026/05/26 04:59 upstream e8c2f9fdadee c69befb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
2026/05/03 01:19 upstream 66edb901bf87 a0d91488 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
2026/03/31 02:59 upstream d0c3bcd5b897 d0af506e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
2026/03/10 15:13 upstream 1f318b96cc84 4683d576 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
2026/02/12 02:28 upstream c22e26bd0906 76a109e2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
* Struck through repros no longer work on HEAD.