syzbot


KCSAN: data-race in __filemap_add_folio / invalidate_bdev (11)

Status: moderation: reported on 2026/02/18 01:36
Subsystems: mm fs
[Documentation on labels]
Reported-by: syzbot+7ebe8796457c16621407@syzkaller.appspotmail.com
First crash: 81d, last: 3d14h
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
04ea9311-f86b-4e82-9bc5-cd42172df95a assessment-kcsan Benign: ✅ Confident: ✅ KCSAN: data-race in __filemap_add_folio / invalidate_bdev (11) 2026/02/23 15:02 2026/02/23 15:02 2026/02/23 15:12 305c0ec5cd886e2d13738e28e1b2df9b0ec20fc9
Similar bugs (10)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev mm fs 6 3 1417d 1452d 0/29 auto-closed as invalid on 2022/07/28 00:49
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (4) fs mm 6 4 994d 1024d 0/29 auto-obsoleted due to no activity on 2023/09/24 05:15
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (5) fs mm 6 4 859d 880d 0/29 auto-obsoleted due to no activity on 2024/02/05 20:23
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (3) block 6 1 1119d 1112d 0/29 auto-obsoleted due to no activity on 2023/05/21 22:53
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (10) fs mm 6 4 166d 252d 0/29 auto-obsoleted due to no activity on 2026/01/20 06:58
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (2) mm fs 6 2 1320d 1347d 0/29 auto-obsoleted due to no activity on 2022/11/01 13:37
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (8) fs mm 6 2 421d 426d 0/29 auto-obsoleted due to no activity on 2025/05/09 19:21
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (9) fs mm 6 1 319d 319d 0/29 auto-obsoleted due to no activity on 2025/08/20 03:26
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (6) fs mm 6 1 777d 777d 0/29 auto-obsoleted due to no activity on 2024/04/28 09:19
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (7) mm fs 6 1 529d 529d 0/29 auto-obsoleted due to no activity on 2025/01/22 09:36

Sample crash report:
EXT4-fs (loop1): invalid inodes per group: 4294967295
==================================================================
BUG: KCSAN: data-race in __filemap_add_folio / invalidate_bdev

read-write to 0xffff8881005f0b78 of 8 bytes by task 21416 on cpu 0:
 __filemap_add_folio+0x671/0x880 mm/filemap.c:920
 filemap_add_folio+0x1d3/0x350 mm/filemap.c:967
 page_cache_ra_unbounded+0x20e/0x420 mm/readahead.c:282
 do_page_cache_ra mm/readahead.c:334 [inline]
 force_page_cache_ra+0x18d/0x1d0 mm/readahead.c:364
 page_cache_sync_ra+0x10e/0x530 mm/readahead.c:582
 filemap_get_pages+0x30a/0x1250 mm/filemap.c:2696
 filemap_read+0x231/0xa10 mm/filemap.c:2806
 blkdev_read_iter+0x22d/0x2e0 block/fops.c:855
 new_sync_read fs/read_write.c:493 [inline]
 vfs_read+0x6c0/0x7f0 fs/read_write.c:574
 ksys_read+0xdc/0x1a0 fs/read_write.c:717
 __do_sys_read fs/read_write.c:726 [inline]
 __se_sys_read fs/read_write.c:724 [inline]
 __x64_sys_read+0x40/0x50 fs/read_write.c:724
 x64_sys_call+0x2886/0x3020 arch/x86/include/generated/asm/syscalls_64.h:1
 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 0xffff8881005f0b78 of 8 bytes by task 26138 on cpu 1:
 invalidate_bdev+0x25/0x70 block/bdev.c:99
 __ext4_fill_super fs/ext4/super.c:5799 [inline]
 ext4_fill_super+0x2cf6/0x37c0 fs/ext4/super.c:5824
 get_tree_bdev_flags+0x291/0x300 fs/super.c:1694
 get_tree_bdev+0x1f/0x30 fs/super.c:1717
 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5856
 vfs_get_tree+0x57/0x1d0 fs/super.c:1754
 fc_mount fs/namespace.c:1193 [inline]
 do_new_mount_fc fs/namespace.c:3758 [inline]
 do_new_mount+0x288/0x8d0 fs/namespace.c:3834
 path_mount+0x4d0/0xbc0 fs/namespace.c:4154
 do_mount fs/namespace.c:4167 [inline]
 __do_sys_mount fs/namespace.c:4383 [inline]
 __se_sys_mount+0x28c/0x2e0 fs/namespace.c:4360
 __x64_sys_mount+0x67/0x80 fs/namespace.c:4360
 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/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000005 -> 0x0000000000000006

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 26138 Comm: syz.1.6457 Tainted: G        W           syzkaller #0 PREEMPT(full) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/06 21:20 upstream 74fe02ce122a 1dddfd3d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / invalidate_bdev
2026/03/21 16:43 upstream 42bddab0563f 5b92003d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / invalidate_bdev
2026/02/18 01:36 upstream d295082ea672 06ec4f7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / invalidate_bdev
* Struck through repros no longer work on HEAD.