syzbot


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

Status: auto-obsoleted due to no activity on 2023/04/29 03:39
Subsystems: exfat
[Documentation on labels]
First crash: 636d, last: 636d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (6) exfat 4 420d 441d 0/28 auto-obsoleted due to no activity on 2023/11/24 07:27
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (5) exfat 1 486d 486d 0/28 auto-obsoleted due to no activity on 2023/09/19 09:04
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (4) exfat 1 543d 543d 0/28 auto-obsoleted due to no activity on 2023/07/24 15:00
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (9) exfat 1 81d 81d 0/28 auto-obsoleted due to no activity on 2024/10/27 23:03
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (7) exfat 6 287d 346d 0/28 auto-obsoleted due to no activity on 2024/04/05 03:03
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (10) exfat 1 21d 21d 0/28 moderation: reported on 2024/11/21 22:32
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (8) exfat 2 159d 193d 0/28 auto-obsoleted due to no activity on 2024/08/11 01:41
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (2) exfat 2 764d 791d 0/28 auto-obsoleted due to no activity on 2022/12/15 10:49
upstream KCSAN: data-race in _copy_to_iter / fat_set_state exfat 1 862d 862d 0/28 auto-closed as invalid on 2022/09/08 00:15

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

write to 0xffff88811eb19025 of 1 bytes by task 17388 on cpu 1:
 fat_set_state+0x16e/0x1d0
 fat_put_super+0x2e/0x80 fs/fat/inode.c:732
 generic_shutdown_super+0xd9/0x260 fs/super.c:491
 kill_block_super+0x4e/0xa0 fs/super.c:1398
 deactivate_locked_super+0x6b/0xd0 fs/super.c:331
 deactivate_super+0x9b/0xb0 fs/super.c:362
 cleanup_mnt+0x272/0x2e0 fs/namespace.c:1177
 __cleanup_mnt+0x19/0x20 fs/namespace.c:1184
 task_work_run+0x123/0x160 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xcf/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6a/0xa0 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88811eb19000 of 1377 bytes by task 30729 on cpu 0:
 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: 0 PID: 30729 Comm: udevd Tainted: G        W          6.3.0-rc2-syzkaller-00077-g38e04b3e4240 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/18 03:01 upstream 38e04b3e4240 7939252e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat_set_state
* Struck through repros no longer work on HEAD.