syzbot


KCSAN: data-race in _copy_to_iter / fat32_ent_put (3)

Status: auto-obsoleted due to no activity on 2023/05/26 23:35
Subsystems: exfat
[Documentation on labels]
First crash: 372d, last: 372d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in _copy_to_iter / fat32_ent_put (2) exfat 1 451d 451d 0/26 auto-obsoleted due to no activity on 2023/04/12 08:12
upstream KCSAN: data-race in _copy_to_iter / fat32_ent_put exfat 1 523d 523d 0/26 auto-obsoleted due to no activity on 2023/01/02 12:34

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

read-write to 0xffff8881261b5028 of 4 bytes by task 15118 on cpu 0:
 fat32_ent_put+0x50/0x90 fs/fat/fatent.c:191
 fat_free_clusters+0x2a2/0x790 fs/fat/fatent.c:597
 fat_free fs/fat/file.c:376 [inline]
 fat_truncate_blocks+0x4a8/0x530 fs/fat/file.c:394
 fat_evict_inode+0x102/0x160 fs/fat/inode.c:653
 evict+0x1aa/0x410 fs/inode.c:665
 iput_final fs/inode.c:1748 [inline]
 iput+0x42c/0x5b0 fs/inode.c:1774
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir+0x274/0x2f0 fs/namei.c:4134
 do_rmdir+0x18e/0x300 fs/namei.c:4180
 __do_sys_rmdir fs/namei.c:4199 [inline]
 __se_sys_rmdir fs/namei.c:4197 [inline]
 __x64_sys_rmdir+0x30/0x40 fs/namei.c:4197
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881261b5000 of 512 bytes by task 7938 on cpu 1:
 instrument_copy_to_user include/linux/instrumented.h:120 [inline]
 copyout lib/iov_iter.c:169 [inline]
 _copy_to_iter+0x136/0x8f0 lib/iov_iter.c:523
 copy_page_to_iter+0x1a8/0x310 lib/iov_iter.c:721
 copy_folio_to_iter include/linux/uio.h:174 [inline]
 filemap_read+0x438/0x680 mm/filemap.c:2745
 blkdev_read_iter+0x2ca/0x370 block/fops.c:606
 call_read_iter include/linux/fs.h:1845 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x39a/0x560 fs/read_write.c:470
 ksys_read+0xeb/0x1a0 fs/read_write.c:613
 __do_sys_read fs/read_write.c:623 [inline]
 __se_sys_read fs/read_write.c:621 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:621
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7938 Comm: udevd Not tainted 6.3.0-rc7-syzkaller-00152-g2af3e53a4dc0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
==================================================================
I/O error, dev loop3, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
I/O error, dev loop3, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
I/O error, dev loop2, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/21 23:30 upstream 2af3e53a4dc0 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat32_ent_put
* Struck through repros no longer work on HEAD.