syzbot


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

Status: auto-obsoleted due to no activity on 2022/09/03 07:54
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+d2561ba2ea4910fc0260@syzkaller.appspotmail.com
First crash: 1332d, last: 913d
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 exfat 3 1661d 1668d 0/28 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 0xffff8881278a520c of 2 bytes by task 12747 on cpu 0:
 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+0x63/0xcd

read to 0xffff8881278a5000 of 1377 bytes by task 1920 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: 1920 Comm: udevd Not tainted 5.19.0-rc8-syzkaller-00146-ge65c6a46df94-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop5, logical block 0, async page read
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop5, logical block 0, async page read
 loop5: unable to read partition table
blk_print_req_error: 2 callbacks suppressed
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
buffer_io_error: 2 callbacks suppressed
Buffer I/O error on dev loop5, logical block 0, async page read
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop5, logical block 0, async page read
I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop1, logical block 0, async page read
I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop1, logical block 0, async page read
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop5, logical block 0, async page read
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0

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