syzbot


KCSAN: data-race in ext4_set_iomap / writeback_single_inode (3)

Status: auto-closed as invalid on 2021/11/13 02:31
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 631d, last: 424d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_set_iomap / writeback_single_inode (2) 76 673d 730d 0/24 auto-closed as invalid on 2021/03/08 23:38
upstream KCSAN: data-race in ext4_set_iomap / writeback_single_inode 13 907d 1078d 0/24 closed as invalid on 2020/06/18 14:24

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

write to 0xffff8881063797a0 of 8 bytes by task 6330 on cpu 0:
 writeback_single_inode+0x148/0x3e0 fs/fs-writeback.c:1726
 sync_inode_metadata+0x57/0x80 fs/fs-writeback.c:2748
 ext4_fsync_nojournal fs/ext4/fsync.c:92 [inline]
 ext4_sync_file+0x359/0x670 fs/ext4/fsync.c:170
 vfs_fsync_range+0x107/0x120 fs/sync.c:200
 generic_write_sync include/linux/fs.h:2955 [inline]
 ext4_buffered_write_iter+0x3af/0x400 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e7/0x11f0
 call_write_iter include/linux/fs.h:2163 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:729
 do_iter_write+0x192/0x5c0 fs/read_write.c:855
 vfs_iter_write+0x4c/0x70 fs/read_write.c:896
 iter_file_splice_write+0x43a/0x790 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/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x63e/0xbb0 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1314 [inline]
 __se_sys_sendfile64 fs/read_write.c:1300 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1300
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881063797a0 of 8 bytes by task 6314 on cpu 1:
 ext4_inode_datasync_dirty fs/ext4/inode.c:3272 [inline]
 ext4_set_iomap+0x17c/0x460 fs/ext4/inode.c:3287
 ext4_iomap_begin+0x5e1/0x630 fs/ext4/inode.c:3426
 iomap_iter+0x39c/0x470 fs/iomap/iter.c:74
 __iomap_dio_rw+0x698/0x1010 fs/iomap/direct-io.c:568
 iomap_dio_rw+0x30/0x70 fs/iomap/direct-io.c:649
 ext4_dio_write_iter fs/ext4/file.c:568 [inline]
 ext4_file_write_iter+0xa59/0x11f0 fs/ext4/file.c:678
 call_write_iter include/linux/fs.h:2163 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:729
 do_iter_write+0x192/0x5c0 fs/read_write.c:855
 vfs_iter_write+0x4c/0x70 fs/read_write.c:896
 iter_file_splice_write+0x43a/0x790 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/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x63e/0xbb0 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1314 [inline]
 __se_sys_sendfile64 fs/read_write.c:1300 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1300
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000005 -> 0x0000000000000080

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

Crashes (44):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/10/09 02:24 upstream 741668ef7832 efe0f24d .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/09/29 12:45 upstream a4e6f95a891a e08fe937 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/09/24 05:00 upstream f10f0481a5b5 8cac236e .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/09/21 12:26 upstream d9fb678414c0 af796c18 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/09/20 02:52 upstream 20621d2f27a0 70b76c1d .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/09/16 14:29 upstream ff1ffd71d5f0 aae492f2 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/09/13 20:41 upstream 316346243be6 58d09404 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/09/12 00:51 upstream c605c39677b9 3ce60af8 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/09/08 23:59 upstream 2d338201d531 e2776ee4 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/08/12 16:52 upstream 1746f4db5135 c551a195 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/07/30 11:40 upstream 764a5bc89b12 c585c7b0 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/07/21 05:34 upstream 8cae8cd89f05 1b201b48 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/07/18 19:47 upstream f0eb870a8422 f115ae98 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/07/18 00:44 upstream 1d67c8d993ba f115ae98 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/07/17 23:53 upstream d980cc0620ae f115ae98 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/07/09 21:53 upstream 3dbdb38e2869 8f5a7b8c .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/06/16 01:48 upstream 94f0b2d4a1d0 990d3cbe .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/06/13 15:19 upstream 8ecfa36cd4db 1ba81399 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/05/21 19:09 upstream 79a106fc6585 3c7fef33 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/05/11 19:34 upstream 88b06399c9c7 b3c3bb8e .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/05/05 10:14 upstream d665ea6ea86c 06c27ff5 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/05/03 22:11 upstream 6f8ee8d36d07 ad61f371 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/05/03 00:50 upstream 17ae69aba89d 77e2b668 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/05/01 22:58 upstream 10a3efd0fee5 77e2b668 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/29 21:02 upstream d72cd4ad4174 77e2b668 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/26 22:58 upstream 9f4ad9e425a1 8ee2dea6 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/26 09:40 upstream 9f4ad9e425a1 805b5003 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/25 20:11 upstream d2d09fbe33f8 2a82f1b3 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/24 19:23 upstream 2a1d7946fa53 17f0b706 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/21 18:14 upstream 16fc44d6387e 95777977 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/21 15:48 upstream 1fe5501ba1ab 95777977 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/21 07:25 upstream 1fe5501ba1ab c0ced557 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/20 23:04 upstream 7af08140979a c0ced557 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/19 08:31 upstream bf05bf16c76b 50f523d7 .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/18 13:31 upstream c98ff1d013d2 7e2b734b .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/17 06:59 upstream 9cdbf6467424 7e2b734b .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/14 11:41 upstream 50987beca096 3134b37f .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/14 01:06 upstream eebe426d32e1 a184b83e .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/11 22:33 upstream 7d900724913c 6a81331a .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/10 15:22 upstream d4961772226d 6a81331a .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/10 02:12 upstream 4e04e7513b0f 6a81331a .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/09 13:15 upstream 17e7124aad76 6a81331a .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/08 22:04 upstream 3fb4f979b4fa 6a81331a .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
ci2-upstream-kcsan-gce 2021/03/16 06:22 upstream 1a4431a5db2b fdb2bb2c .config log report info KCSAN: data-race in ext4_set_iomap / writeback_single_inode
* Struck through repros no longer work on HEAD.