KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (17)

Status: moderation: reported on 2026/09/09 01:34
Subsystems: fs
Labels: race:benign prio:high
[Documentation on labels]
Reported-by: syzbot+0d5bd0f88d9939fa02c2@syzkaller.appspotmail.com
First crash: 26d, last: 26d
▶ ▼ ✨ AI Jobs (3)
ID Workflow Result Correct Bug Created Started Finished Revision
acc19e0a repro-c Reproduced: ✅ ❓ KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (17) 2026/10/01 14:28 2026/10/01 14:28 2026/10/01 15:09 6d32eb1f
1acdb55c assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ✅ VMHostTrigger: ❌ ❓ KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (17) 2026/09/11 00:01 2026/09/11 00:01 2026/09/11 00:59 1fe56c0a
151b42f2 assessment-kcsan Benign: ✅ ❓ KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (17) 2026/09/09 01:33 2026/09/09 01:33 2026/09/09 02:36 243b72f1
▶ ▼ Similar bugs (16)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (3) fs 6 1 1453d 1453d 0/29 auto-obsoleted due to no activity on 2022/11/16 21:51
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (5) fs 6 2 1259d 1271d 0/29 auto-obsoleted due to no activity on 2023/05/30 05:48
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (7) ext4 6 3 1085d 1112d 0/29 auto-obsoleted due to no activity on 2023/11/20 11:49
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (9) fs 6 1 990d 990d 0/29 auto-obsoleted due to no activity on 2024/02/23 17:16
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (16) ext4 6 2 225d 236d 0/29 auto-obsoleted due to no activity on 2026/04/19 01:25
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (11) exfat 6 1 763d 763d 0/29 auto-obsoleted due to no activity on 2024/10/07 09:54
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (6) ext4 6 1 1149d 1149d 0/29 auto-obsoleted due to no activity on 2023/09/17 01:43
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (10) fs 6 1 905d 905d 0/29 auto-obsoleted due to no activity on 2024/05/17 23:40
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (13) ext4 6 2 660d 662d 0/29 auto-obsoleted due to no activity on 2025/02/08 00:12
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (2) fs 6 14 1498d 1704d 0/29 auto-closed as invalid on 2022/10/03 06:12
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (14) fs 6 1 559d 559d 0/29 auto-obsoleted due to no activity on 2025/05/20 16:51
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (8) ext4 6 1 1040d 1028d 0/29 auto-obsoleted due to no activity on 2024/01/04 10:47
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu ext4 6 137 1777d 1935d 0/29 auto-closed as invalid on 2021/12/28 13:59
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (15) ext4 6 4 452d 489d 0/29 auto-obsoleted due to no activity on 2025/09/04 15:11
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (12) fs 6 1 719d 719d 0/29 auto-obsoleted due to no activity on 2024/11/20 10:12
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (4) ext4 6 3 1364d 1415d 0/29 auto-obsoleted due to no activity on 2023/03/11 22:09
▶ ▼ Last patch testing requests (1)
Created Duration User Patch Repo Result
2026/10/01 17:02 35m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 551c722f40809618230001baccf219193e22fc5a no crash job log log

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

write to 0xffff888237c277e0 of 8 bytes by task 11 on cpu 0:
 __invalidate_bh_lrus fs/buffer.c:1414 [inline]
 invalidate_bh_lrus_cpu+0x83/0xc0 fs/buffer.c:1459
 lru_add_and_bh_lrus_drain mm/folio.c:733 [inline]
 lru_add_drain_per_cpu+0x57/0x70 mm/folio.c:752
 process_one_work kernel/workqueue.c:3396 [inline]
 process_scheduled_works+0x56a/0xa50 kernel/workqueue.c:3479
 worker_thread+0x569/0x750 kernel/workqueue.c:3560
 kthread+0x223/0x270 kernel/kthread.c:436
 ret_from_fork+0x146/0x330 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

read to 0xffff888237c277e0 of 8 bytes by task 3305 on cpu 1:
 has_bh_in_lru+0x35/0x1f0 fs/buffer.c:1436
 smp_call_function_many_cond+0x2d1/0xbc0 kernel/smp.c:936
 on_each_cpu_cond_mask+0x35/0x50 kernel/smp.c:1169
 on_each_cpu_cond include/linux/smp.h:105 [inline]
 invalidate_bh_lrus+0x2a/0x30 fs/buffer.c:1445
 kill_bdev block/bdev.c:89 [inline]
 blkdev_flush_mapping+0x94/0x1a0 block/bdev.c:757
 blkdev_put_whole block/bdev.c:764 [inline]
 bdev_release+0x2c1/0x3d0 block/bdev.c:1189
 blkdev_release+0x15/0x20 block/fops.c:682
 __fput+0x29e/0x630 fs/file_table.c:512
 ____fput+0x1c/0x30 fs/file_table.c:540
 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:70 [inline]
 exit_to_user_mode_loop+0x1e4/0x8c0 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:336 [inline]
 do_syscall_64+0x212/0x360 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff88810040f6c0 -> 0x0000000000000000

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/09 01:33 upstream 893e11787f78 243b72f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
* Struck through repros no longer work on HEAD.