syzbot


KCSAN: data-race in _copy_to_iter / fat12_ent_put (5)

Status: auto-obsoleted due to no activity on 2023/12/28 22:56
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+2d47e8fe917311881581@syzkaller.appspotmail.com
First crash: 328d, last: 188d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in _copy_to_iter / fat12_ent_put exfat 6 628d 659d 0/26 auto-obsoleted due to no activity on 2022/10/14 22:33
upstream KCSAN: data-race in _copy_to_iter / fat12_ent_put (4) exfat 5 368d 398d 0/26 auto-obsoleted due to no activity on 2023/07/02 02:14
upstream KCSAN: data-race in _copy_to_iter / fat12_ent_put (6) exfat 1 91d 91d 0/26 auto-obsoleted due to no activity on 2024/04/04 01:15
upstream KCSAN: data-race in _copy_to_iter / fat12_ent_put (3) exfat 3 442d 458d 0/26 auto-obsoleted due to no activity on 2023/04/24 07:39
upstream KCSAN: data-race in _copy_to_iter / fat12_ent_put (2) exfat 3 558d 592d 0/26 auto-obsoleted due to no activity on 2022/12/31 00:12

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

read-write to 0xffff88813fe792e5 of 1 bytes by task 4145 on cpu 1:
 fat12_ent_put+0xcc/0x180 fs/fat/fatent.c:165
 fat_alloc_clusters+0x4b5/0xa60 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+0x25c/0x5e0 fs/fat/inode.c:190
 __block_write_begin_int+0x3b7/0xf40 fs/buffer.c:2119
 __block_write_begin fs/buffer.c:2168 [inline]
 block_write_begin+0x7b/0x170 fs/buffer.c:2227
 cont_write_begin+0x479/0x690 fs/buffer.c:2582
 fat_write_begin+0x61/0xf0 fs/fat/inode.c:230
 generic_perform_write+0x1c9/0x410 mm/filemap.c:3918
 __generic_file_write_iter+0xa1/0x120 mm/filemap.c:4013
 generic_file_write_iter+0x7d/0x1c0 mm/filemap.c:4039
 call_write_iter include/linux/fs.h:2020 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x48a/0x790 fs/read_write.c:584
 ksys_write+0xeb/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88813fe79000 of 1024 bytes by task 14607 on cpu 0:
 instrument_copy_to_user include/linux/instrumented.h:113 [inline]
 copy_to_user_iter lib/iov_iter.c:24 [inline]
 iterate_ubuf include/linux/iov_iter.h:29 [inline]
 iterate_and_advance2 include/linux/iov_iter.h:245 [inline]
 iterate_and_advance include/linux/iov_iter.h:271 [inline]
 _copy_to_iter+0x126/0xb20 lib/iov_iter.c:186
 copy_page_to_iter+0x171/0x2b0 lib/iov_iter.c:381
 copy_folio_to_iter include/linux/uio.h:181 [inline]
 filemap_read+0x424/0x680 mm/filemap.c:2644
 blkdev_read_iter+0x217/0x2c0 block/fops.c:742
 call_read_iter include/linux/fs.h:2014 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x3c0/0x590 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:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14607 Comm: udevd Not tainted 6.7.0-rc2-syzkaller-00095-gd3fa86b1a7b4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================
I/O error, dev loop4, sector 8064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2

Crashes (21):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/23 22:55 upstream d3fa86b1a7b4 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/11/23 14:07 upstream 9b6de136b5f0 fc59b78e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/11/17 04:39 upstream 7475e51b8796 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/11/15 06:15 upstream c42d9eeef8e5 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/11/11 12:20 upstream 3ca112b71f35 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/11/06 07:13 upstream 77fa2fbe87fc 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/11/05 05:00 upstream aea6bf908d73 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/11/03 12:38 upstream 8f6f76a6a29f c4ac074c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/11/03 04:07 upstream 4652b8e4f3ff c4ac074c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/10/31 13:50 upstream 5a6a09e97199 58499c95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/10/30 20:08 upstream ffc253263a13 b5729d82 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/10/29 13:22 upstream 2af9b20dbb39 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/10/25 11:48 upstream 4f82870119a4 17e6d526 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/10/12 14:12 upstream 401644852d0b 1b231e3c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/10/06 09:37 upstream b78b18fb8ee1 db17ad9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/10/05 17:21 upstream 3006adf3be79 db17ad9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/09/19 07:27 upstream 2cf0f7156238 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/08/27 04:58 upstream 3b35375f19fe 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/08/13 02:11 upstream ae545c3283dc 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/07/31 00:58 upstream d31e3792919e 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2023/07/07 05:24 upstream a452483508d7 22ae5830 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
* Struck through repros no longer work on HEAD.