syzbot


KCSAN: data-race in ext4_setattr / mpage_process_page_bufs (2)

Status: auto-closed as invalid on 2022/01/24 23:19
Reported-by: syzbot+d8c674e306c5fd82145e@syzkaller.appspotmail.com
First crash: 883d, last: 340d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_setattr / mpage_process_page_bufs (3) 1 198d 198d 0/24 closed as invalid on 2022/05/13 11:20
upstream KCSAN: data-race in ext4_setattr / mpage_process_page_bufs 35 896d 1119d 0/24 closed as invalid on 2020/06/18 14:24

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

write to 0xffff888134ba6ac8 of 8 bytes by task 30622 on cpu 1:
 i_size_write include/linux/fs.h:913 [inline]
 ext4_setattr+0xd7e/0xf20 fs/ext4/inode.c:5451
 notify_change+0x8a3/0xac0 fs/attr.c:410
 do_truncate fs/open.c:64 [inline]
 vfs_truncate+0x2f7/0x380 fs/open.c:110
 do_sys_truncate fs/open.c:133 [inline]
 __do_sys_truncate fs/open.c:145 [inline]
 __se_sys_truncate fs/open.c:143 [inline]
 __x64_sys_truncate+0xb0/0x130 fs/open.c:143
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888134ba6ac8 of 8 bytes by task 30615 on cpu 0:
 i_size_read include/linux/fs.h:891 [inline]
 mpage_process_page_bufs+0x34/0x560 fs/ext4/inode.c:2187
 mpage_prepare_extent_to_map+0x4f6/0x650 fs/ext4/inode.c:2621
 ext4_writepages+0xa78/0x1e80 fs/ext4/inode.c:2793
 do_writepages+0x1cb/0x330 mm/page-writeback.c:2364
 filemap_fdatawrite_wbc mm/filemap.c:407 [inline]
 __filemap_fdatawrite_range mm/filemap.c:440 [inline]
 file_write_and_wait_range+0x132/0x1d0 mm/filemap.c:824
 ext4_sync_file+0x105/0x6e0 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:182
 generic_write_sync include/linux/fs.h:2955 [inline]
 ext4_buffered_write_iter+0x322/0x380 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e7/0x1200
 call_write_iter include/linux/fs.h:2162 [inline]
 new_sync_write fs/read_write.c:503 [inline]
 vfs_write+0x7f5/0x950 fs/read_write.c:590
 ksys_write+0xd9/0x190 fs/read_write.c:643
 __do_sys_write fs/read_write.c:655 [inline]
 __se_sys_write fs/read_write.c:652 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:652
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000170000 -> 0x0000000000000081

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

Crashes (265):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/20 23:18 upstream 86085fe79e3c 62bd192b .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/14 07:52 upstream 5472f14a3742 5d14b1ea .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/30 15:57 upstream d58071a8a76d 80270552 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/28 08:53 upstream 3498e7f2bb41 63eeac02 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/27 22:31 upstream 741392771338 63eeac02 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/25 05:00 upstream 5f53fa508db0 545ab074 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/24 10:58 upstream 5d9f4cf36721 545ab074 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/21 08:35 upstream 61564e7b3abc 4eb20a4e .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/18 19:26 upstream 42eb8fdac2fc 31a30fc0 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/18 08:50 upstream 42eb8fdac2fc cafff8b6 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/16 20:32 upstream 8ab774587903 600426bd .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/15 17:13 upstream 8ab774587903 75b04091 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/15 05:47 upstream ce49bfc8d037 75b04091 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/11 12:22 upstream debe436e77c7 75b04091 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/09 23:09 upstream d2f38a3c6507 59bcaf9a .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/06 02:26 upstream fe91c4725aee 4c1be0be .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/03 17:05 upstream dcd68326d29b 4c1be0be .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/01 11:08 upstream 8bb7eca972ad 098b5d53 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/10/31 04:15 upstream 119c85055d86 098b5d53 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/10/24 00:04 upstream 9c0c4d24ac00 282f03fb .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/10/20 20:05 upstream d9abdee5fd5a 418a00eb .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/10/17 05:36 upstream 304040fb4909 0c5d9412 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/10/15 02:18 upstream 26d657410983 7aa5fe41 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/10/12 15:26 upstream fa5878760579 08362356 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/10/11 14:18 upstream 64570fbc14f8 838e7e2c .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/10/09 14:55 upstream 5d6ab0bb408f 838e7e2c .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/10/04 04:21 upstream 6761a0ae9895 db0f5787 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/10/03 01:48 upstream ab2a7a35c4e7 db0f5787 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/10/01 09:09 upstream 4de593fb965f 1d849ab4 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/30 03:48 upstream 02d5e016800d be530f6c .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/28 01:21 upstream 0513e464f900 78494d16 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/26 22:26 upstream 996148ee05d0 78494d16 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/26 16:10 upstream a3b397b4fffb 8cac236e .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/23 21:42 upstream f10f0481a5b5 8cac236e .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/21 21:48 upstream d9fb678414c0 169724fe .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/21 06:00 upstream e8f71f89236e af796c18 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/20 00:12 upstream 20621d2f27a0 70b76c1d .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/19 21:41 upstream d4d016caa4b8 70b76c1d .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/18 06:14 upstream 4357f03d6611 70b76c1d .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/17 17:32 upstream ddf21bd8ab98 70b76c1d .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/14 17:15 upstream 1619b69edce1 07e953c1 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/14 09:20 upstream d0ee23f9d78b 58d09404 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/14 06:55 upstream 316346243be6 58d09404 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/10 05:30 upstream bf9f243f23e6 e2776ee4 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/09 17:23 upstream a3fa7a101dcf e2776ee4 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/09/07 23:52 upstream 0bcfe68b8767 064c9eb7 .config log report info KCSAN: data-race in ext4_setattr / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/01/16 19:59 upstream 1d94330a437a 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2020/09/20 14:30 upstream 325d0eab4f31 9564d2e9 .config log report info
ci2-upstream-kcsan-gce 2020/09/18 14:08 upstream 10b82d517648 38962c8b .config log report info
ci2-upstream-kcsan-gce 2020/06/26 02:37 upstream 4a21185cda0f aea82c00 .config log report
* Struck through repros no longer work on HEAD.