syzbot


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

Status: moderation: reported on 2026/02/12 02:29
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+f675e69be7135b609a50@syzkaller.appspotmail.com
First crash: 3d00h, last: 3d00h
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 656d 800d 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 73d 244d 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 1092d 1092d 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 482d 599d 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 2201d 2268d 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 1137d 1597d 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 444d 444d 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 306d 379d 0/29 auto-obsoleted due to no activity on 2025/06/09 21:46

Sample crash report:
==================================================================
BUG: KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru

write to 0xffff888237d275d0 of 8 bytes by task 21099 on cpu 1:
 __invalidate_bh_lrus fs/buffer.c:1530 [inline]
 invalidate_bh_lru+0x89/0xe0 fs/buffer.c:1542
 csd_do_func kernel/smp.c:136 [inline]
 smp_call_function_many_cond+0x865/0xc30 kernel/smp.c:868
 on_each_cpu_cond_mask+0x3c/0x80 kernel/smp.c:1043
 on_each_cpu_cond include/linux/smp.h:105 [inline]
 invalidate_bh_lrus+0x2a/0x30 fs/buffer.c:1561
 kill_bdev block/bdev.c:90 [inline]
 set_blocksize+0x235/0x2c0 block/bdev.c:207
 sb_set_blocksize+0x93/0x170 block/bdev.c:240
 sb_min_blocksize+0x53/0x60 block/bdev.c:255
 fat_fill_super+0x332/0x1ce0 fs/fat/inode.c:1600
 vfat_fill_super+0x24/0x30 fs/fat/namei_vfat.c:1196
 get_tree_bdev_flags+0x291/0x300 fs/super.c:1694
 get_tree_bdev+0x1f/0x30 fs/super.c:1717
 vfat_get_tree+0x1c/0x30 fs/fat/namei_vfat.c:1201
 vfs_get_tree+0x57/0x1d0 fs/super.c:1754
 fc_mount fs/namespace.c:1193 [inline]
 do_new_mount_fc fs/namespace.c:3760 [inline]
 do_new_mount+0x288/0x8d0 fs/namespace.c:3836
 path_mount+0x4d0/0xbc0 fs/namespace.c:4146
 do_mount fs/namespace.c:4159 [inline]
 __do_sys_mount fs/namespace.c:4348 [inline]
 __se_sys_mount+0x28c/0x2e0 fs/namespace.c:4325
 __x64_sys_mount+0x67/0x80 fs/namespace.c:4325
 x64_sys_call+0x2d61/0x3020 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x12c/0x370 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888237d275d0 of 8 bytes by task 3308 on cpu 0:
 has_bh_in_lru+0x35/0x1f0 fs/buffer.c:1552
 smp_call_function_many_cond+0x2a9/0xc30 kernel/smp.c:821
 on_each_cpu_cond_mask+0x3c/0x80 kernel/smp.c:1043
 on_each_cpu_cond include/linux/smp.h:105 [inline]
 invalidate_bh_lrus+0x2a/0x30 fs/buffer.c:1561
 kill_bdev block/bdev.c:90 [inline]
 blkdev_flush_mapping+0x9a/0x1a0 block/bdev.c:728
 blkdev_put_whole block/bdev.c:735 [inline]
 bdev_release+0x2bf/0x3d0 block/bdev.c:1160
 blkdev_release+0x15/0x20 block/fops.c:706
 __fput+0x29b/0x650 fs/file_table.c:469
 ____fput+0x1c/0x30 fs/file_table.c:497
 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+0x1f4/0x6f0 kernel/entry/common.c:98
 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline]
 syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline]
 do_syscall_64+0x249/0x370 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff8881079ffc30 -> 0x0000000000000000

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.