syzbot


general protection fault in kernfs_get_inode

Status: auto-obsoleted due to no activity on 2023/04/13 07:53
Subsystems: kernfs
[Documentation on labels]
Reported-by: syzbot+534ee3d24c37c411f37f@syzkaller.appspotmail.com
First crash: 824d, last: 771d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit c6a7f445a2727a66fe68a7097f42698d8b31ea2c
Author: Yang Shi <shy828301@gmail.com>
Date: Wed Jul 6 23:59:20 2022 +0000

  mm: khugepaged: don't carry huge page to the next loop for !CONFIG_NUMA

  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] general protection fault in kernfs_get_inode 5 (9) 2022/11/17 07:26
[PATCH] cgroup: Fix crash with CLONE_INTO_CGROUP and v1 cgroups 12 (12) 2022/10/10 20:09
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/04/13 07:11 21m retest repro upstream OK log
2022/10/08 05:51 0m brauner@kernel.org patch git@gitlab.com:brauner/linux.git kernel.cgroup_may_write.fix error

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000012: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000090-0x0000000000000097]
CPU: 0 PID: 3606 Comm: syz-executor351 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:kernfs_ino include/linux/kernfs.h:360 [inline]
RIP: 0010:kernfs_get_inode+0x2e/0x520 fs/kernfs/inode.c:254
Code: 41 56 41 55 41 54 49 89 fc 53 48 89 f3 e8 da a3 7d ff 48 8d bb 90 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 3a 04 00 00 48 8b b3 90 00 00 00 4c 89 e7 e8 c9
RSP: 0018:ffffc900040ffa30 EFLAGS: 00010216
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000012 RSI: ffffffff81fda666 RDI: 0000000000000090
RBP: ffffc900040ffa50 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 000000000008c07d R12: ffff888021974000
R13: ffff888073148000 R14: ffff88807d73d880 R15: ffff888020b90000
FS:  00005555566b2300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000200 CR3: 000000007ecd3000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 cgroup_may_write+0x86/0x120 kernel/cgroup/cgroup.c:4957
 cgroup_css_set_fork kernel/cgroup/cgroup.c:6257 [inline]
 cgroup_can_fork+0x961/0xec0 kernel/cgroup/cgroup.c:6351
 copy_process+0x4335/0x7110 kernel/fork.c:2358
 kernel_clone+0xe7/0x8f0 kernel/fork.c:2672
 __do_sys_clone3+0x1cd/0x2e0 kernel/fork.c:2964
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fe6a0ae0e99
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd863c5248 EFLAGS: 00000206 ORIG_RAX: 00000000000001b3
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fe6a0ae0e99
RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00007ffd863c52c0
RBP: 0000000000000000 R08: 00007ffd863c50e0 R09: 00007ffd863c5270
R10: 00000000ffffffff R11: 0000000000000206 R12: 00007ffd863c526c
R13: 00007ffd863c5280 R14: 00007ffd863c52c0 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:kernfs_ino include/linux/kernfs.h:360 [inline]
RIP: 0010:kernfs_get_inode+0x2e/0x520 fs/kernfs/inode.c:254
Code: 41 56 41 55 41 54 49 89 fc 53 48 89 f3 e8 da a3 7d ff 48 8d bb 90 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 3a 04 00 00 48 8b b3 90 00 00 00 4c 89 e7 e8 c9
RSP: 0018:ffffc900040ffa30 EFLAGS: 00010216
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000012 RSI: ffffffff81fda666 RDI: 0000000000000090
RBP: ffffc900040ffa50 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 000000000008c07d R12: ffff888021974000
R13: ffff888073148000 R14: ffff88807d73d880 R15: ffff888020b90000
FS:  00005555566b2300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000200 CR3: 000000007ecd3000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	41 56                	push   %r14
   2:	41 55                	push   %r13
   4:	41 54                	push   %r12
   6:	49 89 fc             	mov    %rdi,%r12
   9:	53                   	push   %rbx
   a:	48 89 f3             	mov    %rsi,%rbx
   d:	e8 da a3 7d ff       	callq  0xff7da3ec
  12:	48 8d bb 90 00 00 00 	lea    0x90(%rbx),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 3a 04 00 00    	jne    0x46e
  34:	48 8b b3 90 00 00 00 	mov    0x90(%rbx),%rsi
  3b:	4c 89 e7             	mov    %r12,%rdi
  3e:	e8                   	.byte 0xe8
  3f:	c9                   	leaveq

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/12 23:26 upstream 55be6084c8e0 89b5a509 .config strace log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-root general protection fault in kernfs_get_inode
2022/10/05 02:19 upstream 0326074ff465 eab8f949 .config strace log report syz C ci-upstream-kasan-gce general protection fault in kernfs_get_inode
2022/10/05 00:58 upstream 0326074ff465 eab8f949 .config console log report info ci-upstream-kasan-gce general protection fault in kernfs_get_inode
2022/10/04 23:51 upstream 0326074ff465 eab8f949 .config console log report info ci-upstream-kasan-gce general protection fault in kernfs_get_inode
2022/10/17 11:02 upstream 55be6084c8e0 67cb024c .config console log report info ci-upstream-kasan-gce-386 general protection fault in kernfs_get_inode
2022/10/08 06:51 upstream 4c86114194e6 0de35f24 .config console log report info ci-upstream-kasan-gce-386 general protection fault in kernfs_get_inode
2022/10/07 05:18 upstream ffb39098bf87 8a212197 .config console log report info ci-upstream-kasan-gce-386 general protection fault in kernfs_get_inode
2022/09/12 12:19 linux-next e47eb90a0a9a 356d8217 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in kernfs_get_inode
2022/08/30 04:59 linux-next b27a3ca08ba7 5b44472d .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in kernfs_get_inode
2022/08/25 11:41 linux-next b5d939c95186 514514f6 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in kernfs_get_inode
* Struck through repros no longer work on HEAD.