syzbot


KCSAN: data-race in copy_page_to_iter / ext4_fill_super (3)

Status: auto-closed as invalid on 2022/01/19 23:07
Subsystems: ext4
[Documentation on labels]
First crash: 862d, last: 862d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in copy_page_to_iter / ext4_fill_super (2) ext4 11 919d 997d 0/26 auto-closed as invalid on 2021/11/23 22:50
upstream KCSAN: data-race in copy_page_to_iter / ext4_fill_super ext4 6 1035d 1095d 0/26 auto-closed as invalid on 2021/07/31 12:41

Sample crash report:
==================================================================
BUG: KCSAN: data-race in copy_page_to_iter / ext4_fill_super

write to 0xffff888144992560 of 4 bytes by task 5485 on cpu 1:
 ext4_fill_super+0x282f/0x78f0 fs/ext4/super.c:4412
 mount_bdev+0x1e8/0x290 fs/super.c:1370
 ext4_mount+0x2d/0x40 fs/ext4/super.c:6523
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1500
 do_new_mount fs/namespace.c:2988 [inline]
 path_mount+0x11cf/0x1c40 fs/namespace.c:3318
 do_mount fs/namespace.c:3331 [inline]
 __do_sys_mount fs/namespace.c:3539 [inline]
 __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3516
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3516
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888144992400 of 1024 bytes by task 1908 on cpu 0:
 instrument_copy_to_user include/linux/instrumented.h:119 [inline]
 copyout lib/iov_iter.c:156 [inline]
 copy_page_to_iter_iovec lib/iov_iter.c:228 [inline]
 __copy_page_to_iter lib/iov_iter.c:852 [inline]
 copy_page_to_iter+0x2cb/0x950 lib/iov_iter.c:880
 filemap_read+0x138b/0x16d0 mm/filemap.c:2697
 generic_file_read_iter+0x72/0x2a0 mm/filemap.c:2792
 blkdev_read_iter+0x96/0x140 block/fops.c:583
 call_read_iter include/linux/fs.h:2156 [inline]
 new_sync_read fs/read_write.c:400 [inline]
 vfs_read+0x66c/0x750 fs/read_write.c:481
 ksys_read+0xd9/0x190 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+0x3e/0x50 fs/read_write.c:627
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1908 Comm: udevd Not tainted 5.16.0-rc5-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/12/15 23:05 upstream 2b14864acbaa 572bcb40 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_page_to_iter / ext4_fill_super
* Struck through repros no longer work on HEAD.