syzbot


general protection fault in connect_file

Status: auto-closed as invalid on 2021/12/06 02:17
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+dd1266d1c3291940234d@syzkaller.appspotmail.com
First crash: 1244d, last: 1239d

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 0 PID: 10880 Comm: syz-executor.5 Not tainted 5.14.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:sock_from_file net/socket.c:505 [inline]
RIP: 0010:__sys_connect_file+0x2f/0x1a0 net/socket.c:1885
Code: 89 d6 41 55 49 89 f5 41 54 55 89 cd 53 48 89 fb e8 c6 fc 5f fa 48 8d 7b 28 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 2b 01 00 00 48 81 7b 28 80 f5 8a 8a 74 19 41 bc
RSP: 0018:ffffc90001bf79e0 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90014323000
RDX: 0000000000000005 RSI: ffffffff8716247a RDI: 0000000000000028
RBP: 0000000000000800 R08: 0000000000000000 R09: ffff88807a6cbdd0
R10: ffffffff81e35db2 R11: 0000000000000010 R12: 0000000000000003
R13: ffffc90001bf7a50 R14: 0000000000000000 R15: 0000000000000000
FS:  00007fa4aca32700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c029014000 CR3: 0000000074aad000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 io_connect+0x10d/0x6a0 fs/io_uring.c:5114
 io_issue_sqe+0xf4e/0x6ba0 fs/io_uring.c:6599
 __io_queue_sqe+0x90/0xb50 fs/io_uring.c:6864
 io_req_task_submit+0xbf/0x1b0 fs/io_uring.c:2218
 tctx_task_work+0x166/0x610 fs/io_uring.c:2143
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 tracehook_notify_signal include/linux/tracehook.h:212 [inline]
 handle_signal_work kernel/entry/common.c:146 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x256/0x290 kernel/entry/common.c:209
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa4aca32188 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa
RAX: 0000000000007fbb RBX: 000000000056c038 RCX: 00000000004665f9
RDX: 0000000000000000 RSI: 0000000000007fbb RDI: 0000000000000003
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038
R13: 0000000000a9fb1f R14: 00007fa4aca32300 R15: 0000000000022000
Modules linked in:
---[ end trace 665dbbdd8c8a7da0 ]---
RIP: 0010:sock_from_file net/socket.c:505 [inline]
RIP: 0010:__sys_connect_file+0x2f/0x1a0 net/socket.c:1885
Code: 89 d6 41 55 49 89 f5 41 54 55 89 cd 53 48 89 fb e8 c6 fc 5f fa 48 8d 7b 28 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 2b 01 00 00 48 81 7b 28 80 f5 8a 8a 74 19 41 bc
RSP: 0018:ffffc90001bf79e0 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90014323000
RDX: 0000000000000005 RSI: ffffffff8716247a RDI: 0000000000000028
RBP: 0000000000000800 R08: 0000000000000000 R09: ffff88807a6cbdd0
R10: ffffffff81e35db2 R11: 0000000000000010 R12: 0000000000000003
R13: ffffc90001bf7a50 R14: 0000000000000000 R15: 0000000000000000
FS:  00007fa4aca32700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f530003c048 CR3: 0000000074aad000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 d6                	mov    %edx,%esi
   2:	41 55                	push   %r13
   4:	49 89 f5             	mov    %rsi,%r13
   7:	41 54                	push   %r12
   9:	55                   	push   %rbp
   a:	89 cd                	mov    %ecx,%ebp
   c:	53                   	push   %rbx
   d:	48 89 fb             	mov    %rdi,%rbx
  10:	e8 c6 fc 5f fa       	callq  0xfa5ffcdb
  15:	48 8d 7b 28          	lea    0x28(%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 2b 01 00 00    	jne    0x15f
  34:	48 81 7b 28 80 f5 8a 	cmpq   $0xffffffff8a8af580,0x28(%rbx)
  3b:	8a
  3c:	74 19                	je     0x57
  3e:	41                   	rex.B
  3f:	bc                   	.byte 0xbc

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/07 02:16 upstream 27151f177827 6ca60148 .config console log report info ci-upstream-kasan-gce general protection fault in connect_file
2021/09/02 11:07 upstream 835d31d319d9 7eb7e152 .config console log report info ci-upstream-kasan-gce-root general protection fault in connect_file
* Struck through repros no longer work on HEAD.