syzbot


KCSAN: data-race in do_mmap / file_remove_privs

Status: closed as invalid on 2019/11/19 14:44
Subsystems: fs
[Documentation on labels]
First crash: 2161d, last: 2161d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_mmap / file_remove_privs (2) fs 6 1 1767d 1767d 0/29 auto-closed as invalid on 2021/01/12 21:11

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

write to 0xffff8880a3f117fc of 4 bytes by task 23627 on cpu 1:
 inode_has_no_xattr include/linux/fs.h:3530 [inline]
 file_remove_privs+0x1cf/0x2b0 fs/inode.c:1851
 __generic_file_write_iter+0xd2/0x380 mm/filemap.c:3380
 generic_file_write_iter+0x28c/0x390 mm/filemap.c:3466
 call_write_iter include/linux/fs.h:1895 [inline]
 new_sync_write+0x388/0x4a0 fs/read_write.c:483
 __vfs_write+0xb1/0xc0 fs/read_write.c:496
 vfs_write fs/read_write.c:558 [inline]
 vfs_write+0x18a/0x390 fs/read_write.c:542
 ksys_write+0xd5/0x1b0 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x4c/0x60 fs/read_write.c:620
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880a3f117fc of 4 bytes by task 23630 on cpu 0:
 do_mmap+0xaaa/0xba0 mm/mmap.c:1509
 do_mmap_pgoff include/linux/mm.h:2353 [inline]
 vm_mmap_pgoff+0x12d/0x190 mm/util.c:496
 ksys_mmap_pgoff+0x2d8/0x420 mm/mmap.c:1629
 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline]
 __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline]
 __x64_sys_mmap+0x91/0xc0 arch/x86/kernel/sys_x86_64.c:91
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 23630 Comm: syz-executor.5 Not tainted 5.4.0-rc6+ #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
2019/11/10 10:37 https://github.com/google/ktsan.git kcsan 94c006602e13 dc438b91 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.