syzbot


KCSAN: data-race in generic_file_buffered_read_pagenotuptodate / set_blocksize

Status: auto-closed as invalid on 2021/01/25 19:32
Subsystems: nilfs
[Documentation on labels]
First crash: 1221d, last: 1221d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in generic_file_buffered_read_pagenotuptodate / set_blocksize

write to 0xffff88810222db06 of 1 bytes by task 23005 on cpu 0:
 set_blocksize+0x20f/0x2a0 fs/block_dev.c:150
 sb_set_blocksize+0x2c/0xa0 fs/block_dev.c:160
 init_nilfs+0x2e0/0x8c0 fs/nilfs2/the_nilfs.c:609
 nilfs_fill_super fs/nilfs2/super.c:1046 [inline]
 nilfs_mount+0x4e7/0xac0 fs/nilfs2/super.c:1316
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:592
 vfs_get_tree+0x4a/0x190 fs/super.c:1496
 do_new_mount fs/namespace.c:2875 [inline]
 path_mount+0x119d/0x1c10 fs/namespace.c:3205
 do_mount fs/namespace.c:3218 [inline]
 __do_sys_mount fs/namespace.c:3426 [inline]
 __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3403
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3403
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810222db06 of 1 bytes by task 22982 on cpu 1:
 generic_file_buffered_read_pagenotuptodate+0x245/0x8e0 mm/filemap.c:2264
 generic_file_buffered_read_get_pages+0x4f8/0xaf0 mm/filemap.c:2401
 generic_file_buffered_read+0x27f/0x9a0 mm/filemap.c:2481
 generic_file_read_iter+0x80/0x3d0 mm/filemap.c:2633
 blkdev_read_iter+0xb3/0xc0 fs/block_dev.c:1705
 call_read_iter include/linux/fs.h:1895 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 vfs_read+0x552/0x5c0 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

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 22982 Comm: systemd-udevd Not tainted 5.10.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
2020/12/21 19:23 upstream e37b12e4bb21 04201c06 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.