syzbot


KCSAN: data-race in copy_page_to_iter / fat_set_state

Status: auto-closed as invalid on 2022/07/22 01:10
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 592d, last: 169d

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

write to 0xffff88813901c025 of 1 bytes by task 6497 on cpu 1:
 fat_set_state+0x16a/0x1d0
 fat_fill_super+0x2238/0x26c0 fs/fat/inode.c:1882
 vfat_fill_super+0x2c/0x40 fs/fat/namei_vfat.c:1047
 mount_bdev+0x1e2/0x280 fs/super.c:1367
 vfat_mount+0x2d/0x40 fs/fat/namei_vfat.c:1054
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x49/0x190 fs/super.c:1497
 do_new_mount+0x200/0x650 fs/namespace.c:3040
 path_mount+0x4b1/0xb60 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

read to 0xffff88813901c000 of 256 bytes by task 1921 on cpu 0:
 instrument_copy_to_user include/linux/instrumented.h:119 [inline]
 copyout lib/iov_iter.c:154 [inline]
 copy_page_to_iter_iovec lib/iov_iter.c:226 [inline]
 __copy_page_to_iter lib/iov_iter.c:852 [inline]
 copy_page_to_iter+0x415/0x7b0 lib/iov_iter.c:880
 copy_folio_to_iter include/linux/uio.h:153 [inline]
 filemap_read+0x10b2/0x1400 mm/filemap.c:2730
 blkdev_read_iter+0x2c6/0x370 block/fops.c:594
 call_read_iter include/linux/fs.h:2052 [inline]
 new_sync_read fs/read_write.c:401 [inline]
 vfs_read+0x5a5/0x6a0 fs/read_write.c:482
 ksys_read+0xe8/0x1a0 fs/read_write.c:620
 __do_sys_read fs/read_write.c:630 [inline]
 __se_sys_read fs/read_write.c:628 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:628
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1921 Comm: udevd Not tainted 5.19.0-rc2-syzkaller-00097-g48a23ec6ff2b-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop4, logical block 0, async page read
 loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop4, logical block 0, async page read
 loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop0, logical block 0, async page read
 loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
I/O error, dev loop4, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0

Crashes (54):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/06/17 01:08 upstream 48a23ec6ff2b 1719ee24 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/05/23 04:16 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/05/18 08:00 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/05/15 23:36 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/05/14 14:28 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/05/09 06:00 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/04/27 21:33 upstream 46cf2c613f4b 1fa34c1b .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/04/10 09:19 upstream e1f700ebd6be e22c3da3 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/03/31 14:07 upstream 787af64d05cd c4c32d8c .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/03/22 17:45 upstream b47d5a4f6b8d d88ef0c5 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/03/19 09:19 upstream 34e047aa16c0 e2d91b1d .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/03/03 17:10 upstream 5859a2b19911 45a13a73 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/02/04 23:40 upstream 86286e486cbd e13a05ed .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2022/01/21 04:04 upstream 2c271fe77d52 ab3d9f17 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/12/22 18:18 upstream 2f47a9a4dfa3 6caa12e4 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/12/16 16:49 upstream 2b14864acbaa 8dd6a5e3 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/12/09 20:58 upstream ded746bfc943 b54aa474 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/11/27 15:41 upstream c5c17547b778 63eeac02 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/11/25 17:53 upstream 5f53fa508db0 63eeac02 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/11/18 00:38 upstream ee1703cda8dc cafff8b6 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/11/09 02:40 upstream e851dfae4371 8ab17e57 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/11/04 11:31 upstream ce840177930f 4c1be0be .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/10/29 03:39 upstream 411a44c24a56 be531bb4 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/10/27 02:40 upstream 3906fe9bb7f1 d50eb50a .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/09/30 15:13 upstream 02d5e016800d 0f01403d .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/09/27 21:52 upstream 5816b3e6577e 78494d16 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/09/24 12:41 upstream f9e36107ec70 8cac236e .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/09/19 20:07 upstream d4d016caa4b8 70b76c1d .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/09/12 14:34 upstream 78e709522d2c 3ce60af8 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/09/11 11:07 upstream 926de8c4326c 3ce60af8 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/09/11 03:18 upstream e99f23c5bf59 3ce60af8 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/09/08 06:41 upstream 0bcfe68b8767 064c9eb7 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/09/03 18:54 upstream a9c9a6f741cd d236a457 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/08/29 02:28 upstream 3f5ad13cb012 be2c130d .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/08/23 06:13 upstream 1bdc3d5be7e1 b599f2fc .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/08/21 04:37 upstream fa54d366a6e4 b599f2fc .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/08/21 00:33 upstream d992fe5318d8 b599f2fc .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/08/14 20:05 upstream ba31f97d43be 2489ab88 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/08/07 07:15 upstream 894d6f401b21 6972b106 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/08/01 07:41 upstream f3438b4c4e69 6c236867 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/06/27 11:15 upstream 625acffd7ae2 9d2ab5df .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/06/24 00:29 upstream 7266f2030eb0 fe4ab389 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/06/18 02:14 upstream fd0aa1a4567d aba2b2fb .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/05/31 19:26 upstream c2131f7e73c9 032639db .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/05/29 21:02 upstream f956cb99b938 325a8dab .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/05/19 17:57 upstream c3d0e3fd41b7 a343ba6b .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/05/08 11:09 upstream dd860052c99b bc5434be .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/05/08 05:56 upstream 1ad77a05cfae bc5434be .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/05/06 13:31 upstream 8404c9fbc84b 06c27ff5 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/05/05 10:21 upstream d665ea6ea86c 06c27ff5 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/05/03 00:31 upstream 17ae69aba89d 77e2b668 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/04/26 02:51 upstream d2d09fbe33f8 2a82f1b3 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/04/24 04:00 upstream 8db5efb83fa9 17f0b706 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
ci2-upstream-kcsan-gce 2021/04/19 21:12 upstream bf05bf16c76b 4285c989 .config log report info KCSAN: data-race in copy_page_to_iter / fat_set_state
* Struck through repros no longer work on HEAD.