syzbot


KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty (3)
Status: moderation: reported on 2020/12/07 11:24
Reported-by: syzbot+1580cfa2f85484a8f5b7@syzkaller.appspotmail.com
First crash: 695d, last: 2d10h
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty 3 936d 947d 0/22 closed as invalid on 2019/11/19 13:24
upstream KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty (2) 19 709d 912d 0/22 closed as invalid on 2020/06/18 14:24

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

read-write to 0xffff888129a3bce0 of 8 bytes by task 5540 on cpu 1:
 __mark_inode_dirty+0x1ed/0x5f0 fs/fs-writeback.c:2410
 mark_buffer_dirty+0x176/0x390 fs/buffer.c:1109
 __block_commit_write fs/buffer.c:2080 [inline]
 block_write_end+0x13d/0x240 fs/buffer.c:2159
 generic_write_end+0x5d/0x230 fs/buffer.c:2173
 fat_write_end+0x4a/0x150 fs/fat/inode.c:249
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3775
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3892
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3924
 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+0x46/0xb0

read to 0xffff888129a3bce0 of 8 bytes by task 5556 on cpu 0:
 __mark_inode_dirty+0x338/0x5f0 fs/fs-writeback.c:2447
 fat_update_time+0x124/0x140 fs/fat/misc.c:351
 inode_update_time fs/inode.c:1868 [inline]
 touch_atime+0x16e/0x2e0 fs/inode.c:1941
 file_accessed include/linux/fs.h:2369 [inline]
 filemap_read+0x137e/0x1400 mm/filemap.c:2747
 generic_file_read_iter+0x72/0x320 mm/filemap.c:2825
 call_read_iter include/linux/fs.h:2035 [inline]
 generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2ac/0x660 fs/splice.c:870
 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+0x46/0xb0

value changed: 0x0000000000000001 -> 0x0000000000000007

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 5556 Comm: syz-executor.4 Not tainted 5.18.0-syzkaller-02752-gfdaf9a5840ac-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (192):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/25 12:08 upstream fdaf9a5840ac 647c0e27 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/05/10 23:58 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/04/13 10:08 upstream a19944809fe9 faabdb86 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/04/12 10:22 upstream ce522ba9ef7e af01ee7d .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/04/10 17:18 upstream 1862a69c9174 e22c3da3 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/03/25 12:30 upstream 52deda9551a0 89bc8608 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/03/20 04:56 upstream 97e9c8eb4bb1 e2d91b1d .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/03/05 23:24 upstream 0014404f9c18 7bdd8b2c .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/03/03 11:47 upstream 92ebf5f91b4d 45a13a73 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/03/02 13:33 upstream fb184c4af9b9 45a13a73 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/02/14 17:07 upstream 754e0b0e3560 8b9ca619 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/02/04 08:47 upstream dcb85f85fa6f 30646bfe .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/01/10 04:30 upstream df0cc57e057f 2ca0d385 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2022/01/07 16:56 upstream ddec8ed2d490 2ca0d385 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/12/26 23:07 upstream 438645193e59 e4f103c4 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/12/09 20:26 upstream ded746bfc943 b54aa474 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/12/04 21:56 upstream bbef3c7a63d2 a617004c .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/12/03 01:07 upstream a51e3ac43ddb 61f86278 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/12/02 04:36 upstream 58e1100fdc59 61f86278 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/12/01 15:06 upstream 58e1100fdc59 5fa3eacc .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/11/30 19:24 upstream f080815fdb3e 80270552 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/11/17 21:06 upstream ee1703cda8dc cafff8b6 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/11/16 21:40 upstream 8ab774587903 600426bd .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/11/14 04:17 upstream a9b9669d9822 75b04091 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/11/10 18:49 upstream 89d714ab6043 75b04091 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/10/13 20:45 upstream 348949d9a444 5462d470 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/10/12 16:19 upstream fa5878760579 08362356 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/10/09 16:37 upstream 5d6ab0bb408f 838e7e2c .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/10/08 07:04 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/10/04 11:11 upstream 9e1ff307c779 ce697b49 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/10/02 10:30 upstream 53d5fc89d66a db0f5787 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/30 13:14 upstream 02d5e016800d 0f01403d .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/29 06:14 upstream a4e6f95a891a d82cb927 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/22 20:30 upstream cf1d2c3e7e2f 8cac236e .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/22 15:05 upstream 92477dd1faa6 8cac236e .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/20 21:21 upstream e8f71f89236e af796c18 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/17 08:01 upstream bdb575f87217 5b989942 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/16 14:07 upstream ff1ffd71d5f0 aae492f2 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/15 14:04 upstream 3ca706c189db 07e953c1 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/11 18:50 upstream 926de8c4326c 3ce60af8 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/07 19:40 upstream 0bcfe68b8767 6ca60148 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/01 18:19 upstream 835d31d319d9 7eb7e152 .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/08/24 20:33 upstream 6e764bcd1cf7 b599f2fc .config log report info KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/01/16 21:24 upstream 54c6247d06f1 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2020/12/04 21:21 upstream e87297fa080a 20366b87 .config log report info
ci2-upstream-kcsan-gce 2020/07/01 11:19 upstream 7c30b859a947 090d8f7b .config log report