syzbot


KCSAN: data-race in inode_permission / inode_permission (4)

Status: auto-closed as invalid on 2020/12/21 11:15
Reported-by: syzbot+fad9e5c1d3080bd40e81@syzkaller.appspotmail.com
First crash: 696d, last: 696d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inode_permission / inode_permission (5) 12 487d 596d 0/24 auto-closed as invalid on 2021/07/04 17:17
upstream KCSAN: data-race in inode_permission / inode_permission (2) 1 808d 808d 0/24 auto-closed as invalid on 2020/08/17 22:52
upstream KCSAN: data-race in inode_permission / inode_permission 27 911d 1071d 0/24 auto-closed as invalid on 2020/06/11 10:47
upstream KCSAN: data-race in inode_permission / inode_permission (3) 1 770d 770d 0/24 auto-closed as invalid on 2020/09/24 20:47

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

read-write to 0xffff88812735904a of 2 bytes by task 1 on cpu 1:
 do_inode_permission fs/namei.c:402 [inline]
 inode_permission+0x30c/0x320 fs/namei.c:463
 may_open+0x19f/0x2e0 fs/namei.c:2875
 do_open fs/namei.c:3250 [inline]
 path_openat+0x17ac/0x20a0 fs/namei.c:3369
 do_filp_open+0xbd/0x1d0 fs/namei.c:3396
 do_sys_openat2+0xa3/0x240 fs/open.c:1168
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_open fs/open.c:1192 [inline]
 __se_sys_open fs/open.c:1188 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1188
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812735904a of 2 bytes by task 4889 on cpu 0:
 do_inode_permission fs/namei.c:396 [inline]
 inode_permission+0x41/0x320 fs/namei.c:463
 may_open+0x19f/0x2e0 fs/namei.c:2875
 do_open fs/namei.c:3250 [inline]
 path_openat+0x17ac/0x20a0 fs/namei.c:3369
 do_filp_open+0xbd/0x1d0 fs/namei.c:3396
 do_sys_openat2+0xa3/0x240 fs/open.c:1168
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_open fs/open.c:1192 [inline]
 __se_sys_open fs/open.c:1188 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1188
 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: 0 PID: 4889 Comm: systemd-journal Not tainted 5.10.0-rc2-syzkaller #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 2020/11/02 22:30 upstream 495023e4e49e 7f344fa6 .config log report info
* Struck through repros no longer work on HEAD.