syzbot


KCSAN: data-race in ext4_mark_iloc_dirty / ext4_setattr

Status: closed as invalid on 2019/11/19 13:24
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1008d, last: 1008d
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 (2) 1 793d 793d 0/23 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in ext4_mark_iloc_dirty / ext4_setattr (3) 1 460d 460d 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 0xffff888125ad2680 of 8 bytes by task 15959 on cpu 0:
 ext4_setattr+0xa13/0x1620 fs/ext4/inode.c:5632
 notify_change+0x7e1/0xaa0 fs/attr.c:337
 do_truncate+0xfb/0x180 fs/open.c:64
 handle_truncate fs/namei.c:2998 [inline]
 do_last fs/namei.c:3414 [inline]
 path_openat+0x2f4a/0x36e0 fs/namei.c:3525
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 ksys_open include/linux/syscalls.h:1385 [inline]
 __do_sys_creat fs/open.c:1155 [inline]
 __se_sys_creat fs/open.c:1153 [inline]
 __x64_sys_creat+0x45/0x60 fs/open.c:1153
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888125ad2680 of 8 bytes by task 15964 on cpu 1:
 ext4_do_update_inode fs/ext4/inode.c:5280 [inline]
 ext4_mark_iloc_dirty+0x810/0x1580 fs/ext4/inode.c:5876
 ext4_mark_inode_dirty+0xe9/0x420 fs/ext4/inode.c:6055
 ext4_dirty_inode+0x86/0xb0 fs/ext4/inode.c:6086
 __mark_inode_dirty+0x5d4/0x940 fs/fs-writeback.c:2255
 generic_update_time+0x184/0x270 fs/inode.c:1667
 update_time fs/inode.c:1683 [inline]
 touch_atime+0x172/0x190 fs/inode.c:1754
 file_accessed include/linux/fs.h:2202 [inline]
 generic_file_buffered_read mm/filemap.c:2257 [inline]
 generic_file_read_iter+0x116e/0x1440 mm/filemap.c:2323
 ext4_file_read_iter fs/ext4/file.c:77 [inline]
 ext4_file_read_iter+0xfa/0x240 fs/ext4/file.c:65
 call_read_iter include/linux/fs.h:1889 [inline]
 generic_file_splice_read+0x35c/0x500 fs/splice.c:307
 do_splice_to+0xf2/0x130 fs/splice.c:877
 splice_direct_to_actor+0x1a1/0x510 fs/splice.c:954
 do_splice_direct+0x161/0x1e0 fs/splice.c:1063
 do_sendfile+0x384/0x7f0 fs/read_write.c:1464

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 15964 Comm: syz-executor.4 Not tainted 5.4.0-rc3+ #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 2019/11/03 10:52 https://github.com/google/ktsan.git kcsan 05f2236801fe c9610487 .config log report