syzbot


KCSAN: data-race in copy_page_to_iter / fat12_ent_put

Status: auto-closed as invalid on 2022/08/27 13:50
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 562d, last: 126d

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

read-write to 0xffff888126c24252 of 1 bytes by task 26656 on cpu 0:
 fat12_ent_put+0x9d/0x180 fs/fat/fatent.c:169
 fat_alloc_clusters+0x47d/0xa80 fs/fat/fatent.c:503
 fat_add_cluster fs/fat/inode.c:108 [inline]
 __fat_get_block fs/fat/inode.c:155 [inline]
 fat_get_block+0x263/0x600 fs/fat/inode.c:190
 __block_write_begin_int+0x33d/0xc90 fs/buffer.c:2006
 __block_write_begin fs/buffer.c:2056 [inline]
 block_write_begin+0x73/0x170 fs/buffer.c:2117
 cont_write_begin+0x3f1/0x520 fs/buffer.c:2468
 fat_write_begin+0x5d/0xe0 fs/fat/inode.c:235
 cont_expand_zero fs/buffer.c:2395 [inline]
 cont_write_begin+0x1a0/0x520 fs/buffer.c:2458
 fat_write_begin+0x5d/0xe0 fs/fat/inode.c:235
 generic_cont_expand_simple+0xa9/0x140 fs/buffer.c:2359
 fat_cont_expand+0x3a/0x160 fs/fat/file.c:222
 fat_setattr+0x34a/0x880 fs/fat/file.c:511
 notify_change+0x8e6/0xa00 fs/attr.c:424
 do_truncate fs/open.c:65 [inline]
 do_sys_ftruncate+0x317/0x420 fs/open.c:193
 __do_sys_ftruncate fs/open.c:204 [inline]
 __se_sys_ftruncate fs/open.c:202 [inline]
 __x64_sys_ftruncate+0x2f/0x40 fs/open.c:202
 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+0x63/0xcd

read to 0xffff888126c24000 of 1377 bytes by task 4017 on cpu 1:
 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+0x117b/0x1410 mm/filemap.c:2739
 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+0x63/0xcd

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4017 Comm: udevd Not tainted 5.19.0-rc7-syzkaller-00190-g70664fc10c0d-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (38):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/07/23 13:42 upstream 70664fc10c0d 22343af4 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/07/11 20:20 upstream 32346491ddf2 f3f217ff .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/07/01 07:21 upstream a175eca0f3d7 1434eec0 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/06/24 20:10 upstream 38bc4ac43168 a371c43c .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/06/24 08:48 upstream 92f20ff72066 a5dbd430 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/06/16 10:51 upstream 30306f6194ca 1719ee24 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/05/17 21:44 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/05/12 20:26 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/04/18 09:29 upstream b2d229d4ddb1 8bcc32a6 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/04/12 18:40 upstream ce522ba9ef7e dacb3f1c .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/04/01 09:39 upstream e8b767f5e040 68fc921a .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/03/28 13:17 upstream f82da161ea75 89bc8608 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/03/08 20:34 upstream 92f90cc9fe0e 7bdd8b2c .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/02/14 22:05 upstream d567f5db412e 8b9ca619 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/01/31 01:27 upstream 26291c54e111 495e00c5 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2022/01/30 05:32 upstream f8c7e4ede46f 495e00c5 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/12/29 12:13 upstream e7c124bd0463 76c8cf06 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/12/19 21:15 upstream a76c3d035872 44068e19 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/12/19 02:21 upstream 9eaa88c7036e 44068e19 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/12/08 00:13 upstream cd8c917a56f2 0230ba3e .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/11/18 13:56 upstream 42eb8fdac2fc 31a30fc0 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/10/24 00:51 upstream 9c0c4d24ac00 282f03fb .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/10/15 15:14 upstream 8fe31e0995f0 0c5d9412 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/10/14 01:14 upstream 348949d9a444 5462d470 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/10/07 17:15 upstream 5af4055fa813 efe0f24d .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/09/09 05:55 upstream 2d338201d531 e2776ee4 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/08/19 05:53 upstream d6d09a694205 a2fe1cb5 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/07/31 09:39 upstream c7d102232649 6c236867 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/07/24 17:10 upstream f0fddcec6b62 4d1b57d4 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/07/11 20:41 upstream 98f7fdced2e0 8f5a7b8c .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/06/13 20:08 upstream 8ecfa36cd4db 1ba81399 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/06/12 16:13 upstream ad347abe4a98 1ba81399 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/06/11 12:04 upstream 06af8679449d 1ba81399 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/06/08 18:50 upstream 4c8684fe555e 5c2fe346 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/06/05 23:16 upstream 9d32fa5d74b1 500c2339 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/05/25 15:16 upstream 1434a3127887 3c7fef33 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/05/20 19:55 upstream f01da525b3de c560a65d .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
ci2-upstream-kcsan-gce 2021/05/12 19:35 upstream dbb5afad100a ed7d41c5 .config log report info KCSAN: data-race in copy_page_to_iter / fat12_ent_put
* Struck through repros no longer work on HEAD.