syzbot


KCSAN: data-race in __add_to_page_cache_locked / set_blocksize

Status: auto-closed as invalid on 2021/03/28 06:41
Subsystems: mm fs
[Documentation on labels]
First crash: 1132d, last: 1132d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __add_to_page_cache_locked / set_blocksize (2) mm fs 4 1061d 1089d 0/26 auto-closed as invalid on 2021/06/07 05:31

Sample crash report:
loop1: detected capacity change from 264192 to 0
==================================================================
BUG: KCSAN: data-race in __add_to_page_cache_locked / set_blocksize

write to 0xffff88814046fc10 of 8 bytes by task 27353 on cpu 0:
 __add_to_page_cache_locked+0x3ad/0x6e0 mm/filemap.c:890
 add_to_page_cache_lru+0xa0/0x1b0 mm/filemap.c:943
 page_cache_ra_unbounded+0x272/0x4c0 mm/readahead.c:222
 do_page_cache_ra mm/readahead.c:267 [inline]
 force_page_cache_ra+0x226/0x260 mm/readahead.c:298
 page_cache_sync_ra+0x178/0x1a0 mm/readahead.c:572
 page_cache_sync_readahead include/linux/pagemap.h:839 [inline]
 generic_file_buffered_read_get_pages+0x234/0xaf0 mm/filemap.c:2365
 generic_file_buffered_read+0x26e/0x9c0 mm/filemap.c:2485
 generic_file_read_iter+0x82/0x3e0 mm/filemap.c:2637
 blkdev_read_iter+0xb3/0xc0 fs/block_dev.c:1714
 call_read_iter include/linux/fs.h:1895 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 vfs_read+0x565/0x5d0 fs/read_write.c:496
 ksys_read+0xce/0x180 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:642
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88814046fc10 of 8 bytes by task 27408 on cpu 1:
 kill_bdev fs/block_dev.c:82 [inline]
 set_blocksize+0x238/0x2a0 fs/block_dev.c:158
 sb_set_blocksize fs/block_dev.c:167 [inline]
 sb_min_blocksize+0x9d/0x120 fs/block_dev.c:183
 fat_fill_super+0xe40/0x2a80 fs/fat/inode.c:1648
 msdos_fill_super+0x29/0x30 fs/fat/namei_msdos.c:653
 mount_bdev+0x1e8/0x290 fs/super.c:1366
 msdos_mount+0x2d/0x40 fs/fat/namei_msdos.c:660
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:592
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1496
 do_new_mount fs/namespace.c:2881 [inline]
 path_mount+0x11b6/0x1ca0 fs/namespace.c:3211
 do_mount fs/namespace.c:3224 [inline]
 __do_sys_mount fs/namespace.c:3432 [inline]
 __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3409
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3409
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 27408 Comm: syz-executor.1 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/21 06:34 upstream e767b3530acb 3e5ed8b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __add_to_page_cache_locked / set_blocksize
* Struck through repros no longer work on HEAD.