syzbot


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

Status: closed as invalid on 2020/06/18 14:13
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 795d, last: 795d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_mark_iloc_dirty / ext4_setattr 1 1010d 1010d 0/23 closed as invalid on 2019/11/19 13:24
upstream KCSAN: data-race in ext4_mark_iloc_dirty / ext4_setattr (3) 1 462d 462d 0/23 auto-closed as invalid on 2021/06/08 14:53

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

write to 0xffff8880bb4e96d0 of 8 bytes by task 12333 on cpu 0:
 ext4_setattr+0xb2b/0x1320 fs/ext4/inode.c:5355
 notify_change+0x82b/0xad0 fs/attr.c:336
 do_truncate+0xf9/0x180 fs/open.c:64
 handle_truncate fs/namei.c:2887 [inline]
 do_open fs/namei.c:3233 [inline]
 path_openat+0x1e51/0x23d0 fs/namei.c:3346
 do_filp_open+0x11e/0x1b0 fs/namei.c:3373
 do_sys_openat2+0x52e/0x680 fs/open.c:1148
 do_sys_open+0xa2/0x110 fs/open.c:1164
 ksys_open include/linux/syscalls.h:1386 [inline]
 __do_sys_creat fs/open.c:1232 [inline]
 __se_sys_creat fs/open.c:1230 [inline]
 __x64_sys_creat+0x42/0x60 fs/open.c:1230
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880bb4e96d0 of 8 bytes by task 12331 on cpu 1:
 ext4_isize fs/ext4/ext4.h:2999 [inline]
 ext4_do_update_inode fs/ext4/inode.c:4999 [inline]
 ext4_mark_iloc_dirty+0x8c1/0x1580 fs/ext4/inode.c:5603
 ext4_mark_inode_dirty+0xe6/0x420 fs/ext4/inode.c:5796
 ext4_dirty_inode+0xad/0xd0 fs/ext4/inode.c:5827
 __mark_inode_dirty+0x5b7/0x940 fs/fs-writeback.c:2258
 generic_update_time+0x184/0x270 fs/inode.c:1682
 update_time+0x7d/0x90 fs/inode.c:1695
 touch_atime+0x13f/0x150 fs/inode.c:1766
 file_accessed include/linux/fs.h:2226 [inline]
 ext4_dio_read_iter fs/ext4/file.c:81 [inline]
 ext4_file_read_iter fs/ext4/file.c:129 [inline]
 ext4_file_read_iter+0x206/0x360 fs/ext4/file.c:114
 call_read_iter include/linux/fs.h:1901 [inline]
 generic_file_splice_read+0x2df/0x470 fs/splice.c:313
 do_splice_to+0xc7/0x100 fs/splice.c:892
 splice_direct_to_actor+0x1b9/0x540 fs/splice.c:971
 do_splice_direct+0x152/0x1d0 fs/splice.c:1080
 do_sendfile+0x380/0x800 fs/read_write.c:1521
 __do_sys_sendfile64 fs/read_write.c:1582 [inline]
 __se_sys_sendfile64 fs/read_write.c:1568 [inline]
 __x64_sys_sendfile64+0x121/0x140 fs/read_write.c:1568
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/06/05 02:10 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 2420d1bc .config log report