syzbot


general protection fault in fire_user_return_notifiers

Status: auto-closed as invalid on 2022/05/11 12:43
Reported-by: syzbot+3ed959fdd6b9fe47ca20@syzkaller.appspotmail.com
First crash: 1046d, last: 1046d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in fire_user_return_notifiers kernel 13 1771d 1860d 0/28 auto-closed as invalid on 2020/05/17 10:13

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 296 Comm: syz-fuzzer Not tainted 5.4.147-syzkaller-00015-g5b673be0c6b0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fire_user_return_notifiers+0x90/0x110 kernel/user-return-notifier.c:42
Code: 48 85 db 74 06 48 83 c3 f8 75 14 e8 4a ec e5 ff eb 58 0f 1f 84 00 00 00 00 00 e8 3b ec e5 ff 48 8d 7b 08 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 74 05 e8 94 08 13 00 4c 8b 73 08 48 89 d8 48 c1 e8
RSP: 0018:ffff8881de977ef8 EFLAGS: 00010a02
RAX: 1bd5a00000000020 RBX: dead0000000000f8 RCX: ffff8881def22f40
RDX: 0000000000000000 RSI: 0023001000000000 RDI: dead000000000100
RBP: 1ffff1103bde45e8 R08: ffffffff81094be7 R09: ffffed103bde45e9
R10: ffffed103bde45e9 R11: 0000000000000000 R12: ffff8881def22f40
R13: dffffc0000000000 R14: dead000000000100 R15: dffffc0000000000
FS:  000000c00002e090(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001de86a000 CR4: 00000000003426f0
DR0: 0000000000003000 DR1: 0000000000001000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 exit_to_usermode_loop arch/x86/entry/common.c:168 [inline]
 prepare_exit_to_usermode+0x27f/0x310 arch/x86/entry/common.c:194
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x46e243
Code: 24 20 c3 cc cc cc cc 48 8b 7c 24 08 8b 74 24 10 8b 54 24 14 4c 8b 54 24 18 4c 8b 44 24 20 44 8b 4c 24 28 b8 ca 00 00 00 0f 05 <89> 44 24 30 c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
RSP: 002b:000000c00003de80 EFLAGS: 00000202 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffff92 RBX: 000000c00002e000 RCX: 000000000046e243
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000018705b8
RBP: 000000c00003dec8 R08: 0000000000000000 R09: 0000000000000000
R10: 000000c00003deb8 R11: 0000000000000202 R12: 000000000043b6e0
R13: 0000000000000000 R14: 00000000008dd490 R15: 0000000000000000
Modules linked in:
---[ end trace 47707b621813d621 ]---
RIP: 0010:fire_user_return_notifiers+0x90/0x110 kernel/user-return-notifier.c:42
Code: 48 85 db 74 06 48 83 c3 f8 75 14 e8 4a ec e5 ff eb 58 0f 1f 84 00 00 00 00 00 e8 3b ec e5 ff 48 8d 7b 08 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 74 05 e8 94 08 13 00 4c 8b 73 08 48 89 d8 48 c1 e8
RSP: 0018:ffff8881de977ef8 EFLAGS: 00010a02
RAX: 1bd5a00000000020 RBX: dead0000000000f8 RCX: ffff8881def22f40
RDX: 0000000000000000 RSI: 0023001000000000 RDI: dead000000000100
RBP: 1ffff1103bde45e8 R08: ffffffff81094be7 R09: ffffed103bde45e9
R10: ffffed103bde45e9 R11: 0000000000000000 R12: ffff8881def22f40
R13: dffffc0000000000 R14: dead000000000100 R15: dffffc0000000000
FS:  000000c00002e090(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001de86a000 CR4: 00000000003426f0
DR0: 0000000000003000 DR1: 0000000000001000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 85 db             	test   %rbx,%rbx
   3:	74 06                	je     0xb
   5:	48 83 c3 f8          	add    $0xfffffffffffffff8,%rbx
   9:	75 14                	jne    0x1f
   b:	e8 4a ec e5 ff       	callq  0xffe5ec5a
  10:	eb 58                	jmp    0x6a
  12:	0f 1f 84 00 00 00 00 	nopl   0x0(%rax,%rax,1)
  19:	00
  1a:	e8 3b ec e5 ff       	callq  0xffe5ec5a
  1f:	48 8d 7b 08          	lea    0x8(%rbx),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2f:	74 05                	je     0x36
  31:	e8 94 08 13 00       	callq  0x1308ca
  36:	4c 8b 73 08          	mov    0x8(%rbx),%r14
  3a:	48 89 d8             	mov    %rbx,%rax
  3d:	48                   	rex.W
  3e:	c1                   	.byte 0xc1
  3f:	e8                   	.byte 0xe8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/11 12:42 android12-5.4 5b673be0c6b0 1884f55a .config console log report info ci2-android-5-4-kasan general protection fault in fire_user_return_notifiers
* Struck through repros no longer work on HEAD.