syzbot


KCSAN: data-race in file_remove_privs / select_collect

Status: auto-closed as invalid on 2021/02/19 02:54
Subsystems: ext4
[Documentation on labels]
First crash: 1197d, last: 1197d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in file_remove_privs / select_collect

write to 0xffff88810d8aa780 of 4 bytes by task 8464 on cpu 0:
 d_lru_del fs/dcache.c:410 [inline]
 select_collect+0xaf/0x2a0 fs/dcache.c:1512
 d_walk+0x298/0x4c0 fs/dcache.c:1333
 shrink_dcache_parent+0x85/0x3c0 fs/dcache.c:1572
 vfs_rmdir+0x156/0x290 fs/namei.c:3719
 do_rmdir+0x16e/0x300 fs/namei.c:3776
 __do_sys_rmdir fs/namei.c:3794 [inline]
 __se_sys_rmdir fs/namei.c:3792 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:3792
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810d8aa780 of 4 bytes by task 10654 on cpu 1:
 d_real include/linux/dcache.h:583 [inline]
 file_dentry include/linux/fs.h:1304 [inline]
 file_remove_privs+0x39/0x370 fs/inode.c:1924
 file_modified+0x16/0x80 fs/inode.c:2007
 ext4_write_checks fs/ext4/file.c:248 [inline]
 ext4_buffered_write_iter+0x1f9/0x3d0 fs/ext4/file.c:265
 ext4_file_write_iter+0x45e/0x1090 fs/ext4/file.c:503
 call_write_iter include/linux/fs.h:1901 [inline]
 do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740
 do_iter_write+0x112/0x4b0 fs/read_write.c:866
 vfs_iter_write+0x4c/0x70 fs/read_write.c:907
 iter_file_splice_write+0x42a/0x780 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:933
 splice_direct_to_actor+0x345/0x650 fs/splice.c:888
 do_splice_direct+0xf5/0x170 fs/splice.c:976
 do_sendfile+0x5db/0xca0 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1312 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0xa9/0x130 fs/read_write.c:1304
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10654 Comm: syz-executor.5 Not tainted 5.11.0-rc3-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
2021/01/15 02:54 upstream 146620506274 468dbb55 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.