syzbot


KCSAN: data-race in _copy_to_iter / set_overhead (4)

Status: moderation: reported on 2026/01/30 14:58
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+74ccc7a21457e02bb945@syzkaller.appspotmail.com
First crash: 7d06h, last: 7d06h
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in _copy_to_iter / set_overhead ext4 6 1 1270d 1270d 0/29 auto-closed as invalid on 2022/09/20 11:39
upstream KCSAN: data-race in _copy_to_iter / set_overhead (3) ext4 6 1 231d 231d 0/29 auto-obsoleted due to no activity on 2025/08/15 19:22
upstream KCSAN: data-race in _copy_to_iter / set_overhead (2) ext4 6 1 413d 413d 0/29 auto-obsoleted due to no activity on 2025/02/14 15:25

Sample crash report:
==================================================================
BUG: KCSAN: data-race in _copy_to_iter / set_overhead

write to 0xffff888151cce648 of 4 bytes by task 7536 on cpu 0:
 set_overhead+0x28/0x40 fs/ext4/ioctl.c:2000
 ext4_update_primary_sb fs/ext4/ioctl.c:77 [inline]
 ext4_update_superblocks_fn+0x206/0xaa0 fs/ext4/ioctl.c:221
 ext4_update_overhead+0x135/0x160 fs/ext4/ioctl.c:2013
 ext4_fill_super+0x3002/0x3800 fs/ext4/super.c:5798
 get_tree_bdev_flags+0x291/0x300 fs/super.c:1691
 get_tree_bdev+0x1f/0x30 fs/super.c:1714
 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5809
 vfs_get_tree+0x57/0x1d0 fs/super.c:1751
 fc_mount fs/namespace.c:1199 [inline]
 do_new_mount_fc fs/namespace.c:3636 [inline]
 do_new_mount+0x288/0x700 fs/namespace.c:3712
 path_mount+0x4d0/0xbc0 fs/namespace.c:4022
 do_mount fs/namespace.c:4035 [inline]
 __do_sys_mount fs/namespace.c:4224 [inline]
 __se_sys_mount+0x28c/0x2e0 fs/namespace.c:4201
 __x64_sys_mount+0x67/0x80 fs/namespace.c:4201
 x64_sys_call+0x2cca/0x3000 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888151cce400 of 1024 bytes by task 3309 on cpu 1:
 instrument_copy_to_user include/linux/instrumented.h:113 [inline]
 copy_to_user_iter lib/iov_iter.c:24 [inline]
 iterate_ubuf include/linux/iov_iter.h:30 [inline]
 iterate_and_advance2 include/linux/iov_iter.h:302 [inline]
 iterate_and_advance include/linux/iov_iter.h:330 [inline]
 _copy_to_iter+0x130/0xea0 lib/iov_iter.c:197
 copy_page_to_iter+0x18f/0x2d0 lib/iov_iter.c:374
 copy_folio_to_iter include/linux/uio.h:204 [inline]
 filemap_read+0x407/0xa10 mm/filemap.c:2851
 blkdev_read_iter+0x22d/0x2e0 block/fops.c:856
 new_sync_read fs/read_write.c:491 [inline]
 vfs_read+0x6c0/0x7f0 fs/read_write.c:572
 ksys_read+0xdc/0x1a0 fs/read_write.c:715
 __do_sys_read fs/read_write.c:724 [inline]
 __se_sys_read fs/read_write.c:722 [inline]
 __x64_sys_read+0x40/0x50 fs/read_write.c:722
 x64_sys_call+0x2889/0x3000 arch/x86/include/generated/asm/syscalls_64.h:1
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3309 Comm: udevd Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/30 14:58 upstream 4d310797262f ae7dc18c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / set_overhead
* Struck through repros no longer work on HEAD.