syzbot


KCSAN: data-race in mark_buffer_dirty_inode / sync_mapping_buffers (2)
Status: closed as invalid on 2020/06/18 14:13
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 739d, last: 739d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in mark_buffer_dirty_inode / sync_mapping_buffers (4) 5 524d 536d 0/22 auto-closed as invalid on 2021/01/23 11:44
upstream KCSAN: data-race in mark_buffer_dirty_inode / sync_mapping_buffers 8 848d 917d 0/22 auto-closed as invalid on 2020/04/08 22:27
upstream KCSAN: data-race in mark_buffer_dirty_inode / sync_mapping_buffers (3) 10 609d 701d 0/22 auto-closed as invalid on 2020/10/29 18:32
upstream KCSAN: data-race in mark_buffer_dirty_inode / sync_mapping_buffers (5) 32 214d 441d 0/22 auto-closed as invalid on 2021/11/29 11:14

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

write to 0xffff8880b7e71128 of 8 bytes by task 23777 on cpu 1:
 fsync_buffers_list fs/buffer.c:768 [inline]
 sync_mapping_buffers+0x529/0x720 fs/buffer.c:557
 fat_file_fsync+0xc8/0x120 fs/fat/file.c:194
 vfs_fsync_range+0x7c/0x150 fs/sync.c:197
 generic_write_sync include/linux/fs.h:2872 [inline]
 generic_file_write_iter+0x31c/0x38e mm/filemap.c:3467
 call_write_iter include/linux/fs.h:1907 [inline]
 do_iter_readv_writev+0x4a7/0x5d0 fs/read_write.c:694
 do_iter_write fs/read_write.c:999 [inline]
 do_iter_write+0x137/0x3a0 fs/read_write.c:980
 vfs_iter_write+0x56/0x80 fs/read_write.c:1040
 iter_file_splice_write+0x530/0x830 fs/splice.c:760
 do_splice_from fs/splice.c:863 [inline]
 direct_splice_actor+0x97/0xb0 fs/splice.c:1037
 splice_direct_to_actor+0x22f/0x540 fs/splice.c:992
 do_splice_direct+0x152/0x1d0 fs/splice.c:1080
 do_sendfile+0x380/0x800 fs/read_write.c:1521
 __do_sys_sendfile64 fs/read_write.c:1576 [inline]
 __se_sys_sendfile64 fs/read_write.c:1568 [inline]
 __x64_sys_sendfile64+0xb8/0x140 fs/read_write.c:1568
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b7e71128 of 8 bytes by task 23773 on cpu 0:
 mark_buffer_dirty_inode+0x9e/0x240 fs/buffer.c:590
 fat16_ent_put+0x7b/0x90 fs/fat/fatent.c:182
 fat_ent_write+0x69/0xf0 fs/fat/fatent.c:415
 fat_chain_add+0x356/0x410 fs/fat/misc.c:130
 fat_add_cluster+0x91/0xd0 fs/fat/inode.c:113
 __fat_get_block fs/fat/inode.c:155 [inline]
 fat_get_block+0x3c6/0x4f0 fs/fat/inode.c:190
 __block_write_begin_int+0x306/0xf80 fs/buffer.c:2002
 __block_write_begin fs/buffer.c:2052 [inline]
 block_write_begin+0x76/0x200 fs/buffer.c:2111
 cont_write_begin+0x3bd/0x660 fs/buffer.c:2460
 fat_write_begin+0x69/0xc0 fs/fat/inode.c:236
 pagecache_write_begin+0x67/0x90 mm/filemap.c:3121
 cont_expand_zero fs/buffer.c:2387 [inline]
 cont_write_begin+0x176/0x660 fs/buffer.c:2450
 fat_write_begin+0x69/0xc0 fs/fat/inode.c:236
 pagecache_write_begin+0x67/0x90 mm/filemap.c:3121
 generic_cont_expand_simple+0xae/0x120 fs/buffer.c:2351
 fat_cont_expand+0x44/0x190 fs/fat/file.c:222
 fat_fallocate+0x195/0x1d0 fs/fat/file.c:300
 vfs_fallocate+0x3b1/0x640 fs/open.c:309
 ksys_fallocate+0x5b/0xa0 fs/open.c:332
 __do_sys_fallocate fs/open.c:340 [inline]
 __se_sys_fallocate fs/open.c:338 [inline]
 __x64_sys_fallocate+0x59/0x70 fs/open.c:338
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 23773 Comm: syz-executor.1 Not tainted 5.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/05/18 15:23 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 24d91142 .config log report