syzbot


KCSAN: data-race in ext4_bio_write_page / integrity_inode_get

Status: auto-closed as invalid on 2020/04/25 03:27
Subsystems: integrity lsm
[Documentation on labels]
First crash: 1524d, last: 1524d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_bio_write_page / integrity_inode_get

write to 0xffff88812526762c of 4 bytes by task 9502 on cpu 0:
 integrity_inode_get+0x121/0x1a0 security/integrity/iint.c:124
 process_measurement+0x250/0x1190 security/integrity/ima/ima_main.c:233
 ima_file_check+0x7e/0xb0 security/integrity/ima/ima_main.c:442
 do_last fs/namei.c:3494 [inline]
 path_openat+0xe6e/0x3150 fs/namei.c:3607
 do_filp_open+0x11e/0x1b0 fs/namei.c:3637
 do_sys_openat2+0x4f5/0x620 fs/open.c:1149
 do_sys_open+0xa3/0x110 fs/open.c:1165
 ksys_open include/linux/syscalls.h:1386 [inline]
 __do_sys_open fs/open.c:1171 [inline]
 __se_sys_open fs/open.c:1169 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1169
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812526762c of 4 bytes by task 9510 on cpu 1:
 ext4_bio_write_page+0x36d/0xb79 fs/ext4/page-io.c:511
 mpage_submit_page+0xe4/0x1a0 fs/ext4/inode.c:2074
 mpage_map_and_submit_buffers+0x3c4/0x6c0 fs/ext4/inode.c:2318
 mpage_map_and_submit_extent fs/ext4/inode.c:2457 [inline]
 ext4_writepages+0x1176/0x1d40 fs/ext4/inode.c:2772
 do_writepages+0x6b/0x170 mm/page-writeback.c:2344
 __filemap_fdatawrite_range+0x1c5/0x230 mm/filemap.c:421
 file_write_and_wait_range+0xfd/0x160 mm/filemap.c:760
 ext4_sync_file+0x266/0x8c0 fs/ext4/fsync.c:153
 vfs_fsync_range+0x82/0x150 fs/sync.c:197
 generic_write_sync include/linux/fs.h:2867 [inline]
 ext4_buffered_write_iter+0x222/0x290 fs/ext4/file.c:277
 ext4_file_write_iter+0xfa/0xd70 fs/ext4/file.c:642
 call_write_iter include/linux/fs.h:1901 [inline]
 do_iter_readv_writev+0x487/0x5b0 fs/read_write.c:693
 do_iter_write fs/read_write.c:998 [inline]
 do_iter_write+0x13b/0x3c0 fs/read_write.c:979
 vfs_writev+0x118/0x1c0 fs/read_write.c:1071
 do_pwritev+0x131/0x1d0 fs/read_write.c:1168
 __do_sys_pwritev fs/read_write.c:1215 [inline]
 __se_sys_pwritev fs/read_write.c:1210 [inline]
 __x64_sys_pwritev+0x61/0x80 fs/read_write.c:1210
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/15 03:24 https://github.com/google/ktsan.git kcsan b12d66a6c34f 5d7b90f1 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.