syzbot


KCSAN: data-race in __delete_from_page_cache / ext4_writepages (3)

Status: auto-closed as invalid on 2021/06/27 20:06
Reported-by: syzbot+de35101ef298147513d4@syzkaller.appspotmail.com
First crash: 740d, last: 452d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __delete_from_page_cache / ext4_writepages 10 840d 955d 0/23 auto-closed as invalid on 2020/06/18 13:43
upstream KCSAN: data-race in __delete_from_page_cache / ext4_writepages (4) 8 264d 322d 0/23 auto-closed as invalid on 2022/01/02 10:49
upstream KCSAN: data-race in __delete_from_page_cache / ext4_writepages (2) 3 782d 790d 0/23 auto-closed as invalid on 2020/08/01 18:05

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

write to 0xffff888106737340 of 8 bytes by task 13291 on cpu 0:
 page_cache_delete mm/filemap.c:145 [inline]
 __delete_from_page_cache+0x1c1/0x260 mm/filemap.c:230
 invalidate_complete_page2 mm/truncate.c:579 [inline]
 invalidate_inode_pages2_range+0x51a/0x780 mm/truncate.c:668
 __iomap_dio_rw+0x69a/0xad0 fs/iomap/direct-io.c:543
 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+0xa4f/0x11d0 fs/ext4/file.c:678
 call_write_iter include/linux/fs.h:2114 [inline]
 do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740
 do_iter_write+0x112/0x4c0 fs/read_write.c:866
 vfs_iter_write+0x4c/0x70 fs/read_write.c:907
 iter_file_splice_write+0x40a/0x750 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+0xf5/0x170 fs/splice.c:979
 do_sendfile+0x773/0xda0 fs/read_write.c:1260
 __do_sys_sendfile64 fs/read_write.c:1325 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1311
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888106737340 of 8 bytes by task 13279 on cpu 1:
 ext4_writepages+0x111/0x1d10 fs/ext4/inode.c:2668
 do_writepages+0x7b/0x150 mm/page-writeback.c:2352
 __filemap_fdatawrite_range mm/filemap.c:413 [inline]
 file_write_and_wait_range+0x180/0x210 mm/filemap.c:792
 ext4_sync_file+0x105/0x670 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:200
 generic_write_sync include/linux/fs.h:2982 [inline]
 ext4_buffered_write_iter+0x39c/0x3f0 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e7/0x11d0 fs/ext4/file.c:519
 call_write_iter include/linux/fs.h:2114 [inline]
 do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740
 do_iter_write+0x112/0x4c0 fs/read_write.c:866
 vfs_iter_write+0x4c/0x70 fs/read_write.c:907
 iter_file_splice_write+0x40a/0x750 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+0xf5/0x170 fs/splice.c:979
 do_sendfile+0x773/0xda0 fs/read_write.c:1260
 __do_sys_sendfile64 fs/read_write.c:1325 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1311
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 13279 Comm: syz-executor.1 Tainted: G        W         5.13.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (68):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/05/23 20:06 upstream 4d7620341eda 3c7fef33 .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/05/08 02:45 upstream 1ad77a05cfae bc5434be .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/04/24 18:54 upstream 2a1d7946fa53 17f0b706 .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/04/17 00:34 upstream 2f7b98d1e55c 7e2b734b .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/04/16 06:23 upstream 7e25f40eab52 c59079a6 .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/04/13 19:08 upstream 89698becf06d a184b83e .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/04/12 23:10 upstream 89698becf06d 6a81331a .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/04/11 20:02 upstream 7d900724913c 6a81331a .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/04/10 00:54 upstream 4e04e7513b0f 6a81331a .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/04/09 11:22 upstream 17e7124aad76 6a81331a .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/04/03 13:18 upstream d93a0d43e3d0 6a81331a .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/03/30 16:38 upstream 2bb25b3a748a 6a81331a .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/03/29 11:52 upstream a5e13c6df0e4 a8529b82 .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/03/23 16:42 upstream 84196390620a e613994b .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/03/23 10:09 upstream 84196390620a 8092f30d .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/03/19 11:26 upstream 8b12a62a4e3e 2af9d324 .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/03/15 11:57 upstream 1e28eed17697 cc1cff8f .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/03/13 07:40 upstream f296bfd5cd04 4a003785 .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/03/05 18:54 upstream 280d542f6ffa 4a024a9b .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/01/30 23:46 upstream 8c947645151c fc9fd31e .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/01/27 10:14 upstream 2ab38c17aac1 a0ebf917 .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/01/26 12:42 upstream 13391c60da33 52e37319 .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/01/25 22:45 upstream f8ad8187c3b5 52e37319 .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/01/20 09:32 upstream 45dfb8a5659a d4f4eca5 .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/01/20 05:37 upstream 45dfb8a5659a 63631df1 .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/01/18 04:16 upstream 19c329f68089 fd103621 .config log report info KCSAN: data-race in __delete_from_page_cache / ext4_writepages
ci2-upstream-kcsan-gce 2021/01/17 10:02 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2021/01/15 18:32 upstream 5ee88057889b 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2021/01/10 21:31 upstream 0653161f0fac 2c1f2513 .config log report info
ci2-upstream-kcsan-gce 2020/12/28 19:45 upstream 5c8fe583cce5 8259d56c .config log report info
ci2-upstream-kcsan-gce 2020/12/21 22:39 upstream 8653b778e454 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/18 11:40 upstream a409ed156a90 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/14 07:28 upstream 2c85ebc57b3e b22a7ec3 .config log report info
ci2-upstream-kcsan-gce 2020/12/13 20:53 upstream ec6f5e0e5ca0 8f160dd5 .config log report info
ci2-upstream-kcsan-gce 2020/12/07 20:42 upstream cd796ed33450 51a9082e .config log report info
ci2-upstream-kcsan-gce 2020/12/05 21:50 upstream 32f741b02f1a 50503117 .config log report info
ci2-upstream-kcsan-gce 2020/12/05 07:40 upstream b3298500b23f 0ef84591 .config log report info
ci2-upstream-kcsan-gce 2020/12/01 12:37 upstream b65054597872 07bfe8a5 .config log report info
ci2-upstream-kcsan-gce 2020/11/29 14:44 upstream aae5ab854e38 a0092f9d .config log report info
ci2-upstream-kcsan-gce 2020/11/27 15:46 upstream 85a2c56cb445 486f93ef .config log report info
ci2-upstream-kcsan-gce 2020/11/26 05:03 upstream fa02fcd94b0c 2f1cec62 .config log report info
ci2-upstream-kcsan-gce 2020/11/25 20:51 upstream fa02fcd94b0c 3f581b43 .config log report info
ci2-upstream-kcsan-gce 2020/11/17 01:38 upstream 9c87c9f41245 1bf9a662 .config log report info
ci2-upstream-kcsan-gce 2020/11/08 20:44 upstream 9dbc1c03eeb5 cba33199 .config log report info
ci2-upstream-kcsan-gce 2020/10/26 08:53 upstream 3650b228f83a a1839e81 .config log report info
ci2-upstream-kcsan-gce 2020/10/20 01:23 upstream bbe85027ce80 ff4a3345 .config log report info
ci2-upstream-kcsan-gce 2020/10/15 11:05 upstream 3e4fb4346c78 63869021 .config log report info
ci2-upstream-kcsan-gce 2020/10/08 13:29 upstream c85fb28b6f99 92390980 .config log report info
ci2-upstream-kcsan-gce 2020/10/01 10:04 upstream 60e720931556 4103fce0 .config log report info
ci2-upstream-kcsan-gce 2020/09/20 09:58 upstream 325d0eab4f31 53ce8104 .config log report info
ci2-upstream-kcsan-gce 2020/09/20 03:18 upstream 325d0eab4f31 53ce8104 .config log report info
ci2-upstream-kcsan-gce 2020/09/19 09:14 upstream 92ab97adeefc 53ce8104 .config log report info
ci2-upstream-kcsan-gce 2020/09/18 07:14 upstream 4cbffc461ec9 8247808b .config log report info
ci2-upstream-kcsan-gce 2020/09/16 23:38 upstream 5925fa68fe82 77507d02 .config log report info
ci2-upstream-kcsan-gce 2020/09/16 01:06 upstream fc4f28bb3daf 18d7d030 .config log report info
ci2-upstream-kcsan-gce 2020/09/15 19:22 upstream fc4f28bb3daf 9e681632 .config log report info
ci2-upstream-kcsan-gce 2020/09/08 20:33 upstream 6f6a73c8b715 abf9ba4f .config log report
ci2-upstream-kcsan-gce 2020/09/07 00:33 upstream a8205e310011 abf9ba4f .config log report
ci2-upstream-kcsan-gce 2020/09/05 18:12 upstream 9322c47b21b9 abf9ba4f .config log report
ci2-upstream-kcsan-gce 2020/08/30 22:14 upstream dcc5c6f013d8 d5a3ae1f .config log report
ci2-upstream-kcsan-gce 2020/08/28 19:16 upstream 15bc20c6af4c d5a3ae1f .config log report
ci2-upstream-kcsan-gce 2020/08/27 03:10 upstream 15bc20c6af4c 318430cb .config log report
ci2-upstream-kcsan-gce 2020/08/26 09:23 upstream 2ac69819ba9e 344da168 .config log report
ci2-upstream-kcsan-gce 2020/08/21 06:27 upstream da2968ff879b 1d75fe45 .config log report
ci2-upstream-kcsan-gce 2020/08/20 22:13 upstream da2968ff879b 70160577 .config log report
ci2-upstream-kcsan-gce 2020/08/10 16:23 upstream fc80c51fd4b2 7adc7b65 .config log report
ci2-upstream-kcsan-gce 2020/08/09 04:12 upstream 06a81c1c7db9 f721e4a0 .config log report