syzbot


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

Status: auto-obsoleted due to no activity on 2024/04/28 09:19
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+54d98583ab10d08b0b47@syzkaller.appspotmail.com
First crash: 254d, last: 254d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev fs mm 3 895d 930d 0/28 auto-closed as invalid on 2022/07/28 00:49
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (4) fs mm 4 472d 502d 0/28 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 4 337d 358d 0/28 auto-obsoleted due to no activity on 2024/02/05 20:23
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (3) block 1 597d 590d 0/28 auto-obsoleted due to no activity on 2023/05/21 22:53
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (2) fs mm 2 798d 825d 0/28 auto-obsoleted due to no activity on 2022/11/01 13:37
upstream KCSAN: data-race in __filemap_add_folio / invalidate_bdev (7) fs mm 1 6d23h 6d23h 0/28 moderation: reported on 2024/11/27 09:35

Sample crash report:
EXT4-fs (loop0): Invalid log block size: 2049831
==================================================================
BUG: KCSAN: data-race in __filemap_add_folio / invalidate_bdev

read-write to 0xffff8881004c0bb8 of 8 bytes by task 3867 on cpu 0:
 __filemap_add_folio+0x492/0x700 mm/filemap.c:912
 filemap_add_folio+0x70/0x160 mm/filemap.c:947
 page_cache_ra_unbounded+0x15f/0x2e0 mm/readahead.c:250
 do_page_cache_ra mm/readahead.c:299 [inline]
 force_page_cache_ra+0x18e/0x1d0 mm/readahead.c:330
 page_cache_sync_ra+0xcc/0xf0 mm/readahead.c:684
 page_cache_sync_readahead include/linux/pagemap.h:1300 [inline]
 filemap_get_pages+0x252/0xfb0 mm/filemap.c:2505
 filemap_read+0x21c/0x690 mm/filemap.c:2601
 blkdev_read_iter+0x217/0x2c0 block/fops.c:754
 call_read_iter include/linux/fs.h:2102 [inline]
 new_sync_read fs/read_write.c:395 [inline]
 vfs_read+0x5bc/0x6b0 fs/read_write.c:476
 ksys_read+0xeb/0x1b0 fs/read_write.c:619
 __do_sys_read fs/read_write.c:629 [inline]
 __se_sys_read fs/read_write.c:627 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:627
 do_syscall_64+0xd3/0x1d0
 entry_SYSCALL_64_after_hwframe+0x6d/0x75

read to 0xffff8881004c0bb8 of 8 bytes by task 8816 on cpu 1:
 invalidate_bdev+0x32/0x80 block/bdev.c:93
 __ext4_fill_super fs/ext4/super.c:5674 [inline]
 ext4_fill_super+0x1788/0x39d0 fs/ext4/super.c:5699
 get_tree_bdev+0x253/0x2e0 fs/super.c:1632
 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5731
 vfs_get_tree+0x56/0x1d0 fs/super.c:1797
 do_new_mount+0x227/0x690 fs/namespace.c:3352
 path_mount+0x49b/0xb30 fs/namespace.c:3679
 do_mount fs/namespace.c:3692 [inline]
 __do_sys_mount fs/namespace.c:3898 [inline]
 __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3875
 __x64_sys_mount+0x67/0x80 fs/namespace.c:3875
 do_syscall_64+0xd3/0x1d0
 entry_SYSCALL_64_after_hwframe+0x6d/0x75

value changed: 0x0000000000000009 -> 0x000000000000000a

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8816 Comm: syz-executor.0 Not tainted 6.8.0-syzkaller-13213-g70293240c5ce #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/24 09:19 upstream 70293240c5ce 0ea90952 .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.