syzbot


KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (6)

Status: auto-closed as invalid on 2022/06/04 23:25
Subsystems: exfat
[Documentation on labels]
First crash: 1005d, last: 957d
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (5) exfat 5 1191d 1261d 0/28 auto-closed as invalid on 2021/10/13 19:55
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (7) exfat 5 850d 885d 0/28 auto-closed as invalid on 2022/09/20 02:49
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (2) exfat 11 1508d 1619d 0/28 auto-closed as invalid on 2020/11/30 13:39
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (8) exfat 101 352d 371d 0/28 auto-obsoleted due to no activity on 2024/01/31 07:12
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (3) exfat 2 1419d 1452d 0/28 auto-closed as invalid on 2021/02/27 21:17
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (11) exfat 38 58d 187d 0/28 auto-obsoleted due to no activity on 2024/11/20 06:37
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (10) exfat 1 243d 243d 0/28 auto-obsoleted due to no activity on 2024/05/18 09:53
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (9) exfat 2 282d 298d 0/28 auto-obsoleted due to no activity on 2024/04/09 13:34
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode exfat 1 1651d 1651d 0/28 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (4) exfat 8 1298d 1336d 0/28 auto-closed as invalid on 2021/06/28 13:09
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (12) exfat 1 20d 20d 0/28 moderation: reported on 2024/11/23 03:23

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

write to 0xffff888120744740 of 8 bytes by task 11885 on cpu 1:
 mark_buffer_dirty_inode+0x18c/0x1b0 fs/buffer.c:585
 fat16_ent_put+0x4b/0x50 fs/fat/fatent.c:183
 fat_alloc_clusters+0x47d/0xa80 fs/fat/fatent.c:502
 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+0x77/0x170 fs/buffer.c:2117
 cont_write_begin+0x3cf/0x500 fs/buffer.c:2463
 fat_write_begin+0x61/0xf0 fs/fat/inode.c:235
 generic_perform_write+0x1d6/0x3f0 mm/filemap.c:3787
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3915
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3947
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:852
 vfs_iter_write+0x4c/0x70 fs/read_write.c:893
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x660 fs/splice.c:891
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1305 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1297
 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+0x44/0xae

read to 0xffff888120744740 of 8 bytes by task 11889 on cpu 0:
 mark_buffer_dirty_inode+0x92/0x1b0 fs/buffer.c:581
 fat16_ent_put+0x4b/0x50 fs/fat/fatent.c:183
 fat_ent_write+0x5e/0xd0 fs/fat/fatent.c:416
 fat_chain_add+0x15b/0x410 fs/fat/misc.c:130
 fat_add_cluster fs/fat/inode.c:113 [inline]
 __fat_get_block fs/fat/inode.c:155 [inline]
 fat_get_block+0x486/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+0x77/0x170 fs/buffer.c:2117
 cont_write_begin+0x3cf/0x500 fs/buffer.c:2463
 fat_write_begin+0x61/0xf0 fs/fat/inode.c:235
 generic_perform_write+0x1d6/0x3f0 mm/filemap.c:3787
 __generic_file_write_iter+0x172/0x280 mm/filemap.c:3883
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3947
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:852
 vfs_iter_write+0x4c/0x70 fs/read_write.c:893
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x660 fs/splice.c:891
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1297
 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+0x44/0xae

value changed: 0x0000000000000000 -> 0xffff8881205c0530

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11889 Comm: syz-executor.3 Not tainted 5.18.0-rc4-syzkaller-00396-g57ae8a492116-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/30 23:19 upstream 57ae8a492116 2df221f6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode
2022/04/23 19:03 upstream 13bc32bad705 131df97d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode
2022/04/21 16:37 upstream b253435746d9 2738b391 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode
2022/04/19 19:06 upstream b7f73403a3e9 33fc6ed6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode
2022/04/06 09:57 upstream 3e732ebf7316 86b4b7f8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode
2022/03/13 07:42 upstream aad611a868d1 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode
* Struck through repros no longer work on HEAD.