syzbot


KCSAN: data-race in inode_doinit_with_dentry / inode_doinit_with_dentry

Status: auto-obsoleted due to no activity on 2023/05/28 13:10
Subsystems: selinux
[Documentation on labels]
First crash: 593d, last: 593d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inode_doinit_with_dentry / inode_doinit_with_dentry (2) selinux 1 229d 229d 0/28 auto-obsoleted due to no activity on 2024/05/26 16:52

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

write to 0xffff888139ac3dc2 of 1 bytes by task 4536 on cpu 0:
 inode_doinit_with_dentry+0x807/0x840 security/selinux/hooks.c:1526
 __inode_security_revalidate security/selinux/hooks.c:270 [inline]
 inode_security security/selinux/hooks.c:295 [inline]
 selinux_file_permission+0x179/0x350 security/selinux/hooks.c:3603
 security_file_permission+0x3f/0x70 security/security.c:1590
 vfs_fallocate+0x20a/0x3d0 fs/open.c:303
 madvise_remove mm/madvise.c:1001 [inline]
 madvise_vma_behavior mm/madvise.c:1025 [inline]
 madvise_walk_vmas mm/madvise.c:1260 [inline]
 do_madvise+0x77b/0x28a0 mm/madvise.c:1439
 __do_sys_madvise mm/madvise.c:1452 [inline]
 __se_sys_madvise mm/madvise.c:1450 [inline]
 __x64_sys_madvise+0x60/0x70 mm/madvise.c:1450
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888139ac3dc2 of 1 bytes by task 4544 on cpu 1:
 inode_doinit_with_dentry+0x77/0x840 security/selinux/hooks.c:1378
 __inode_security_revalidate security/selinux/hooks.c:270 [inline]
 inode_security security/selinux/hooks.c:295 [inline]
 selinux_file_permission+0x179/0x350 security/selinux/hooks.c:3603
 security_file_permission+0x3f/0x70 security/security.c:1590
 vfs_fallocate+0x20a/0x3d0 fs/open.c:303
 madvise_remove mm/madvise.c:1001 [inline]
 madvise_vma_behavior mm/madvise.c:1025 [inline]
 madvise_walk_vmas mm/madvise.c:1260 [inline]
 do_madvise+0x77b/0x28a0 mm/madvise.c:1439
 __do_sys_madvise mm/madvise.c:1452 [inline]
 __se_sys_madvise mm/madvise.c:1450 [inline]
 __x64_sys_madvise+0x60/0x70 mm/madvise.c:1450
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x02 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4544 Comm: syz-executor.0 Not tainted 6.3.0-rc7-syzkaller-00191-g622322f53c6d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/23 13:05 upstream 622322f53c6d 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_doinit_with_dentry / inode_doinit_with_dentry
* Struck through repros no longer work on HEAD.