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
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 205d, last: 157d
similar bugs (6):
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) 5 391d 461d 0/24 auto-closed as invalid on 2021/10/13 19:55
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (7) 5 50d 85d 0/24 auto-closed as invalid on 2022/09/20 02:49
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (2) 11 708d 819d 0/24 auto-closed as invalid on 2020/11/30 13:39
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (3) 2 619d 652d 0/24 auto-closed as invalid on 2021/02/27 21:17
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode 1 851d 851d 0/24 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode (4) 8 498d 536d 0/24 auto-closed as invalid on 2021/06/28 13:09

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