syzbot


KCSAN: data-race in copy_page_to_iter / ext4_put_super

Status: auto-closed as invalid on 2021/06/21 10:51
Subsystems: ext4
[Documentation on labels]
First crash: 1076d, last: 1075d
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_put_super (3) ext4 1 957d 957d 0/26 auto-closed as invalid on 2021/10/17 02:37
upstream KCSAN: data-race in copy_page_to_iter / ext4_put_super (2) ext4 1 1025d 1025d 0/26 auto-closed as invalid on 2021/09/03 03:48

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

write to 0xffff888122897460 of 4 bytes by task 1772 on cpu 1:
 ext4_clear_feature_journal_needs_recovery fs/ext4/ext4.h:2049 [inline]
 ext4_put_super+0x32b/0x8e0 fs/ext4/super.c:1192
 generic_shutdown_super+0xe1/0x230 fs/super.c:465
 kill_block_super+0x4a/0x90 fs/super.c:1395
 deactivate_locked_super+0x65/0xd0 fs/super.c:335
 deactivate_super+0x85/0x90 fs/super.c:366
 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1136
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1143
 task_work_run+0xae/0x130 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x56/0x90 arch/x86/entry/common.c:57
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888122897400 of 1024 bytes by task 28707 on cpu 0:
 instrument_copy_to_user include/linux/instrumented.h:119 [inline]
 copyout lib/iov_iter.c:189 [inline]
 copy_page_to_iter_iovec lib/iov_iter.c:261 [inline]
 copy_page_to_iter+0x320/0x860 lib/iov_iter.c:973
 filemap_read+0xf06/0x1230 mm/filemap.c:2605
 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2701
 blkdev_read_iter+0xb9/0xf0 fs/block_dev.c:1732
 call_read_iter include/linux/fs.h:2108 [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+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 28707 Comm: systemd-udevd Tainted: G        W         5.13.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/17 10:43 upstream d07f6ca923ea a2eb125d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_page_to_iter / ext4_put_super
2021/05/16 20:05 upstream 63d1cb53e26a f54a5c09 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_page_to_iter / ext4_put_super
* Struck through repros no longer work on HEAD.