syzbot


general protection fault in __io_sync_cancel

Status: auto-obsoleted due to no activity on 2023/04/21 05:51
Subsystems: io-uring
[Documentation on labels]
Reported-by: syzbot+bf76847df5f7359c9e09@syzkaller.appspotmail.com
First crash: 573d, last: 565d
Cause bisection: failed (error log, bisect log)
  
Fix bisection the fix commit could be any of (bisect log):
  2cacedc873ab io_uring/net: fix must_hold annotation
  5a848b7c9e5e io_uring/net: fix zc send link failing
  986e263def32 io_uring/net: fix indentation
  a9c3eda7eada io_uring: fix submission-failure handling for uring-cmd
  47abea041f89 io_uring: fix off-by-one in sync cancelation file check
  53bdc88aac9a io_uring/notif: order notif vs send CQEs
  5916943943d1 io_uring: conditional ->async_data allocation
  e1d0c6d05afd io_uring: uapi: Add `extern "C"` in io_uring.h for liburing
  581711c46612 io_uring/net: save address for sendzc async execution
  c2fa700c5f76 MAINTAINERS: Add `include/linux/io_uring_types.h`
  0b0861eb91cb Merge tag 'io_uring-6.0-2022-08-26' of git://git.kernel.dk/linux-block
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] general protection fault in __io_sync_cancel 2 (4) 2022/08/24 17:22
Last patch testing requests (4)
Created Duration User Patch Repo Result
2023/04/21 05:25 26m retest repro linux-next OK log
2022/12/09 07:31 16m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2022/12/09 07:31 5m retest repro linux-next error OK
2022/08/24 16:39 17m axboe@kernel.dk git://git.kernel.dk/linux-block io_uring-6.0 error OK

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 3614 Comm: syz-executor233 Not tainted 6.0.0-rc2-syzkaller-00044-gdf0219d11b6f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:__io_sync_cancel+0x10d/0x1c0 io_uring/cancel.c:224
Code: 48 c1 ea 03 80 3c 02 00 0f 85 aa 00 00 00 49 8b 86 f8 00 00 00 48 8d 1c d8 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 8e 00 00 00 48 8b 1b 48 8d 7d 08 48 b8 00 00 00
RSP: 0018:ffffc900038ffc20 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff83f87914 RDI: ffff888146d8a0f8
RBP: ffffc900038ffce0 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88801c9df800 R14: ffff888146d8a000 R15: 0000000000000000
FS:  0000555556c5e300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005d84c8 CR3: 0000000070564000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 io_sync_cancel+0x240/0x630 io_uring/cancel.c:265
 __io_uring_register io_uring/io_uring.c:3833 [inline]
 __do_sys_io_uring_register+0x5c9/0x1110 io_uring/io_uring.c:3878
 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:0x7f9ae908dd29
Code: 28 c3 e8 2a 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc2e5075e8 EFLAGS: 00000246 ORIG_RAX: 00000000000001ab
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9ae908dd29
RDX: 0000000020000000 RSI: 0000000000000018 RDI: 000000000000000a
RBP: 00007f9ae9051ed0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000246 R12: 00007f9ae9051f60
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__io_sync_cancel+0x10d/0x1c0 io_uring/cancel.c:224
Code: 48 c1 ea 03 80 3c 02 00 0f 85 aa 00 00 00 49 8b 86 f8 00 00 00 48 8d 1c d8 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 8e 00 00 00 48 8b 1b 48 8d 7d 08 48 b8 00 00 00
RSP: 0018:ffffc900038ffc20 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff83f87914 RDI: ffff888146d8a0f8
RBP: ffffc900038ffce0 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88801c9df800 R14: ffff888146d8a000 R15: 0000000000000000
FS:  0000555556c5e300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f622cf74268 CR3: 0000000070564000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 c1 ea 03          	shr    $0x3,%rdx
   4:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   8:	0f 85 aa 00 00 00    	jne    0xb8
   e:	49 8b 86 f8 00 00 00 	mov    0xf8(%r14),%rax
  15:	48 8d 1c d8          	lea    (%rax,%rbx,8),%rbx
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 da             	mov    %rbx,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 8e 00 00 00    	jne    0xc2
  34:	48 8b 1b             	mov    (%rbx),%rbx
  37:	48 8d 7d 08          	lea    0x8(%rbp),%rdi
  3b:	48                   	rex.W
  3c:	b8                   	.byte 0xb8
  3d:	00 00                	add    %al,(%rax)

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/24 05:00 upstream df0219d11b6f cea8b0f7 .config strace log report syz C ci-upstream-kasan-gce general protection fault in __io_sync_cancel
2022/08/24 03:55 linux-next 05477f3653b8 cea8b0f7 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root general protection fault in __io_sync_cancel
2022/08/24 04:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1c23f9e627a7 cea8b0f7 .config console log report syz C ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __io_sync_cancel
2022/08/24 13:09 upstream df0219d11b6f cea8b0f7 .config console log report info ci-upstream-kasan-gce-root general protection fault in __io_sync_cancel
2022/08/27 23:22 linux-next 8d0c42c9e807 07177916 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in __io_sync_cancel
2022/08/26 02:37 linux-next b5d939c95186 9b5bf4cd .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in __io_sync_cancel
2022/08/24 03:31 linux-next 05477f3653b8 cea8b0f7 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in __io_sync_cancel
2022/08/31 06:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 4a380809 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __io_sync_cancel
2022/08/29 20:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 5b44472d .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __io_sync_cancel
2022/08/28 11:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 07177916 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __io_sync_cancel
2022/08/28 07:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 07177916 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __io_sync_cancel
* Struck through repros no longer work on HEAD.