syzbot


general protection fault in pending_reads_dispatch_ioctl

Status: upstream: reported C repro on 2021/02/12 03:08
Reported-by: syzbot+eb653645362b461ad3ab@syzkaller.appspotmail.com
First crash: 656d, last: 310d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in pending_reads_dispatch_ioctl C error 4 302d 334d 2/2 fixed on 2022/02/25 18:09

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 299 Comm: syz-executor879 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:ioctl_permit_fill fs/incfs/pseudo_files.c:153 [inline]
RIP: 0010:pending_reads_dispatch_ioctl+0x855/0x29e0 fs/incfs/pseudo_files.c:1026
Code: 21 a0 85 ff 49 c7 c7 f9 ff ff ff 48 8b 5c 24 38 e9 e7 07 00 00 49 8d 5e 28 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 5d bc b2 ff 48 c7 c0 40 35 dd 84 48
RSP: 0018:ffff8881debf7cf8 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 0000000000000028 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000069662f2e RDI: 0000000000000040
RBP: 0000000000000000 R08: ffffffff8198edf6 R09: ffffed103bd7efb3
R10: ffffed103bd7efb3 R11: 0000000000000000 R12: 0000000040046721
R13: ffff8881de4b13a0 R14: 0000000000000000 R15: 1ffff1103bc96274
FS:  0000555556cf63c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001de422000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 do_vfs_ioctl+0x6fb/0x15b0 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:742 [inline]
 __do_sys_ioctl fs/ioctl.c:749 [inline]
 __se_sys_ioctl fs/ioctl.c:747 [inline]
 __x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f61793b5c49
Code: 28 c3 e8 5a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 c4 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffca757baa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffca757bab8 RCX: 00007f61793b5c49
RDX: 0000000020000000 RSI: 0000000040046721 RDI: 0000000000000004
RBP: 00007ffca757bab0 R08: 00007f61793741b0 R09: 00007f61793741b0
R10: 00007f61793741b0 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace fff0b5be98934c0e ]---
RIP: 0010:ioctl_permit_fill fs/incfs/pseudo_files.c:153 [inline]
RIP: 0010:pending_reads_dispatch_ioctl+0x855/0x29e0 fs/incfs/pseudo_files.c:1026
Code: 21 a0 85 ff 49 c7 c7 f9 ff ff ff 48 8b 5c 24 38 e9 e7 07 00 00 49 8d 5e 28 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 5d bc b2 ff 48 c7 c0 40 35 dd 84 48
RSP: 0018:ffff8881debf7cf8 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 0000000000000028 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000069662f2e RDI: 0000000000000040
RBP: 0000000000000000 R08: ffffffff8198edf6 R09: ffffed103bd7efb3
R10: ffffed103bd7efb3 R11: 0000000000000000 R12: 0000000040046721
R13: ffff8881de4b13a0 R14: 0000000000000000 R15: 1ffff1103bc96274
FS:  0000555556cf63c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001de422000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	a0 85 ff 49 c7 c7 f9 	movabs 0xfffff9c7c749ff85,%al
   7:	ff ff
   9:	ff 48 8b             	decl   -0x75(%rax)
   c:	5c                   	pop    %rsp
   d:	24 38                	and    $0x38,%al
   f:	e9 e7 07 00 00       	jmpq   0x7fb
  14:	49 8d 5e 28          	lea    0x28(%r14),%rbx
  18:	48 89 d8             	mov    %rbx,%rax
  1b:	48 c1 e8 03          	shr    $0x3,%rax
  1f:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  26:	fc ff df
* 29:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2d:	74 08                	je     0x37
  2f:	48 89 df             	mov    %rbx,%rdi
  32:	e8 5d bc b2 ff       	callq  0xffb2bc94
  37:	48 c7 c0 40 35 dd 84 	mov    $0xffffffff84dd3540,%rax
  3e:	48                   	rex.W

Crashes (10):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-kasan 2021/12/31 18:18 android12-5.4 5b673be0c6b0 36bd2e48 .config log report syz C general protection fault in pending_reads_dispatch_ioctl
ci2-android-5-4-kasan 2021/02/12 03:20 android12-5.4 489e9c226bb5 a5f86b15 .config log report syz C general protection fault in pending_reads_dispatch_ioctl
ci2-android-5-4-kasan 2022/01/24 16:27 android12-5.4 3307e1a05838 214351e1 .config log report info general protection fault in pending_reads_dispatch_ioctl
ci2-android-5-4-kasan 2022/01/16 14:19 android12-5.4 bdf17ba62809 723cfaf0 .config log report info general protection fault in pending_reads_dispatch_ioctl
ci2-android-5-4-kasan 2022/01/06 20:23 android12-5.4 5b673be0c6b0 6acc789a .config log report info general protection fault in pending_reads_dispatch_ioctl
ci2-android-5-4-kasan 2021/12/28 11:08 android12-5.4 5b673be0c6b0 6b3c5e64 .config log report info general protection fault in pending_reads_dispatch_ioctl
ci2-android-5-4-kasan 2021/11/15 23:21 android12-5.4 b9c4f1b9b54a 75b04091 .config log report info general protection fault in pending_reads_dispatch_ioctl
ci2-android-5-4-kasan 2021/11/04 11:38 android12-5.4 2138e7367558 4c1be0be .config log report info general protection fault in pending_reads_dispatch_ioctl
ci2-android-5-4-kasan 2021/06/01 15:26 android12-5.4 114add618c71 032639db .config log report info general protection fault in pending_reads_dispatch_ioctl
ci2-android-5-4-kasan 2021/02/12 03:07 android12-5.4 489e9c226bb5 a5f86b15 .config log report info general protection fault in pending_reads_dispatch_ioctl
* Struck through repros no longer work on HEAD.