syzbot


KCSAN: data-race in ext4_setattr / filemap_read

Status: auto-closed as invalid on 2022/01/23 19:53
Reported-by: syzbot+b2d3f646575c298b4d51@syzkaller.appspotmail.com
First crash: 618d, last: 343d

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

write to 0xffff88815025dac8 of 8 bytes by task 304 on cpu 0:
 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+0xf7/0x140 fs/open.c:64
 handle_truncate fs/namei.c:3082 [inline]
 do_open fs/namei.c:3430 [inline]
 path_openat+0x191f/0x1eb0 fs/namei.c:3559
 do_filp_open+0x105/0x220 fs/namei.c:3586
 do_sys_openat2+0xb5/0x2b0 fs/open.c:1212
 do_sys_open fs/open.c:1228 [inline]
 __do_sys_creat fs/open.c:1304 [inline]
 __se_sys_creat fs/open.c:1298 [inline]
 __x64_sys_creat+0x62/0x80 fs/open.c:1298
 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 0xffff88815025dac8 of 8 bytes by task 303 on cpu 1:
 i_size_read include/linux/fs.h:891 [inline]
 filemap_read+0x1208/0x16d0 mm/filemap.c:2654
 generic_file_read_iter+0x72/0x2a0 mm/filemap.c:2792
 ext4_file_read_iter+0x1db/0x290
 call_read_iter include/linux/fs.h:2156 [inline]
 generic_file_splice_read+0x24f/0x330 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 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: 0x000000000046a401 -> 0x0000000000000000

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

Crashes (50):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/19 19:52 upstream 3f667b5d4053 44068e19 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/12/15 23:25 upstream 2b14864acbaa 572bcb40 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/12/13 20:01 upstream 2585cf9dfaad 0304899b .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/12/06 02:30 upstream 944207047ca4 a617004c .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/12/04 03:53 upstream 12119cfa1052 a617004c .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/11/29 20:02 upstream d58071a8a76d d0830353 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/11/25 18:08 upstream 5f53fa508db0 63eeac02 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/11/13 23:30 upstream a9b9669d9822 75b04091 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/11/12 19:26 upstream 5833291ab6de 75b04091 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/11/04 04:22 upstream ce840177930f 4c1be0be .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/10/25 02:05 upstream 6c62666d8879 4f0000ee .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/10/22 14:50 upstream 64222515138e 55f90bc6 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/10/22 00:05 upstream 2f111a6fd5b5 55f90bc6 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/10/11 04:10 upstream efb52a7d9511 838e7e2c .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/10/02 07:42 upstream 53d5fc89d66a db0f5787 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/09/20 09:47 upstream e4e737bb5c17 3d9c9a2a .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/09/19 04:42 upstream 93ff9f13be91 70b76c1d .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/09/13 07:12 upstream 6880fa6c5660 3ce60af8 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/09/12 03:47 upstream c605c39677b9 3ce60af8 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/09/02 10:01 upstream 4ac6d90867a4 d0f0970b .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/08/30 18:10 upstream 7d2a07b76933 8f58a0ef .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/08/28 18:36 upstream 64b4fc45bea6 be2c130d .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/08/28 04:14 upstream 1a6436f37512 57b01c6e .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/08/22 04:19 upstream 002c0aef1090 b599f2fc .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/08/18 20:31 upstream d6d09a694205 a2fe1cb5 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/08/07 22:13 upstream 85a90500f9a1 6972b106 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/08/05 21:22 upstream e04480920d1e d2d6e680 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/07/24 23:55 upstream 7ffca2bb9d8b 4d1b57d4 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/07/18 20:33 upstream f0eb870a8422 f115ae98 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/07/14 17:05 upstream 8096acd7442e 94e0b707 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/07/12 22:56 upstream 7fef2edf7cc7 f415556d .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/07/10 00:45 upstream 3dbdb38e2869 8f5a7b8c .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/07/08 09:22 upstream 3dbdb38e2869 1aade754 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/07/03 20:55 upstream 3dbdb38e2869 55aa55c2 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/07/01 16:17 upstream dbe69e433722 658ebc66 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/06/27 07:45 upstream 625acffd7ae2 9d2ab5df .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/06/24 08:52 upstream 7426cedc7dad ec865f6a .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/05/27 13:29 upstream d7c5303fbc8a 858ea628 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/05/26 23:41 upstream 7ac3a1c1ae51 858ea628 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/05/12 19:14 upstream dbb5afad100a ed7d41c5 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/05/12 06:35 upstream 88b06399c9c7 b3c3bb8e .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/05/09 05:21 upstream b741596468b0 bc5434be .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/05/06 01:08 upstream a79cdfba68a1 06c27ff5 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/04/30 18:03 upstream 8ca5297e7e38 77e2b668 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/04/25 16:42 upstream 2a1d7946fa53 36c88236 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/04/22 19:08 upstream 16fc44d6387e 33c28d03 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/04/19 18:57 upstream bf05bf16c76b 50f523d7 .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/04/12 02:59 upstream 7d900724913c 6a81331a .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/04/03 13:07 upstream d93a0d43e3d0 6a81331a .config log report info KCSAN: data-race in ext4_setattr / filemap_read
ci2-upstream-kcsan-gce 2021/03/19 22:11 upstream 8b12a62a4e3e 3d01c4de .config log report info KCSAN: data-race in ext4_setattr / filemap_read
* Struck through repros no longer work on HEAD.