syzbot


KCSAN: data-race in copy_page_to_iter / fat16_ent_put (2)

Status: moderation: reported on 2021/12/29 17:34
Reported-by: syzbot+d2561ba2ea4910fc0260@syzkaller.appspotmail.com
First crash: 395d, last: 8d12h
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in copy_page_to_iter / fat16_ent_put 3 724d 731d 0/22 auto-closed as invalid on 2020/08/16 01:51

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

write to 0xffff888140c76286 of 2 bytes by task 2994 on cpu 1:
 fat16_ent_put+0x24/0x50 fs/fat/fatent.c:183
 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+0x46/0xb0

read to 0xffff888140c76000 of 1024 bytes by task 2095 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+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+0x46/0xb0

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2095 Comm: udevd Not tainted 5.19.0-rc4-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
I/O error, dev loop3, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop3, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop3, logical block 0, async page read
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
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
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
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
I/O error, dev loop2, sector 3968 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop3, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop3, logical block 0, async page read

Crashes (81):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/06/27 21:13 upstream 03c765b0e3b4 a371c43c .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/06/07 22:16 upstream e71e60cd74df b2706118 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/06/02 03:01 upstream 8eca6b0a647a b4bc6a3d .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/06/01 01:45 upstream e1cbc3b96a99 3666edfe .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/05/15 06:26 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/05/08 11:29 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/05/06 07:22 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/05/03 04:59 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/04/25 22:02 upstream af2d861d4cd2 152baedd .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/04/16 11:48 upstream 59250f8a7f3a 8bcc32a6 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/04/15 02:51 upstream a19944809fe9 b17b2923 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/04/07 12:41 upstream 3e732ebf7316 53c67432 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/03/22 12:29 upstream b47d5a4f6b8d e2d91b1d .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/03/21 19:47 upstream f443e374ae13 e2d91b1d .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/03/15 11:12 upstream 09688c0166e7 9e8eaa75 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/03/12 01:41 upstream 79b00034e9dc 9e8eaa75 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/03/09 15:47 upstream 330f4c53d3c2 9e8eaa75 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/03/04 05:56 upstream 38f80f42147f 45a13a73 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/02/28 12:06 upstream 7e57714cd0ad 45a13a73 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/02/28 08:46 upstream 52a025546731 45a13a73 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/02/17 16:05 upstream f71077a4d84b 2bea8a27 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/02/15 20:14 upstream 705d84a366cf 8b9ca619 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/02/13 22:26 upstream 42964a18f81c 8b9ca619 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/02/04 18:04 upstream dcb85f85fa6f a3e470b2 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/01/18 01:16 upstream 0c947b893d69 731a2d23 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/01/16 01:57 upstream a33f5c380c4b 723cfaf0 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/01/15 07:43 upstream 112450df61b7 723cfaf0 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/01/11 13:47 upstream fe8152b38d3a 1884f55a .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/01/10 23:13 upstream 133d9c53c9dc ddb0ab8c .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2022/01/04 23:37 upstream c9e6606c7fe9 0a2584dd .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/12/27 06:25 upstream fc74e0a40e4f e4f103c4 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/12/25 17:16 upstream b927dfc67d05 6caa12e4 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/12/22 03:22 upstream 1c3e979bf3e2 6caa12e4 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/12/14 10:47 upstream 5472f14a3742 5d14b1ea .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/12/09 00:56 upstream 2a987e65025e a4a2a501 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/12/03 08:48 upstream a51e3ac43ddb 61f86278 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/12/01 06:06 upstream f080815fdb3e 80270552 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/11/28 15:40 upstream 3498e7f2bb41 63eeac02 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/11/27 14:54 upstream c5c17547b778 63eeac02 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/11/17 15:34 upstream 8ab774587903 cafff8b6 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/11/01 01:17 upstream 8bb7eca972ad 098b5d53 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/10/31 02:45 upstream 119c85055d86 098b5d53 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/10/27 21:34 upstream d25f27432f80 be531bb4 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/10/26 01:59 upstream 87066fdd2e30 c1132b49 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/09/01 09:16 upstream b91db6a0b52e 7eb7e152 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/08/31 04:19 upstream 8596e589b787 8f58a0ef .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/08/28 00:36 upstream 1a6436f37512 57b01c6e .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/08/22 11:20 upstream 9ff50bf2f2ff b599f2fc .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/08/20 08:17 upstream f87d64319e6f b599f2fc .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/08/12 21:32 upstream f8fbb47c6e86 c551a195 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/08/07 23:37 upstream 85a90500f9a1 6972b106 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/08/02 03:33 upstream d4affd6b6e81 6c236867 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/07/26 18:38 upstream ff1176468d36 fd511809 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/07/25 15:46 upstream d8079fac1681 4d1b57d4 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/07/19 03:52 upstream f0eb870a8422 f115ae98 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/07/17 14:13 upstream d980cc0620ae f115ae98 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/07/14 06:46 upstream 40226a3d96ef 484502bd .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/07/10 16:08 upstream 3dbdb38e2869 8f5a7b8c .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/07/02 09:53 upstream e058a84bfddc 658ebc66 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/06/21 22:31 upstream 13311e74253f aba2b2fb .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put
ci2-upstream-kcsan-gce 2021/06/06 00:58 upstream f5b6eb1e0182 500c2339 .config log report info KCSAN: data-race in copy_page_to_iter / fat16_ent_put