syzbot


general protection fault in kernel_sock_shutdown (2)

Status: auto-closed as invalid on 2022/06/13 05:28
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 282d, last: 266d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in kernel_sock_shutdown C 3329 1689d 1746d 6/24 fixed on 2018/07/05 05:52

Sample crash report:
infiniband syz0: set active
infiniband syz0: added macsec0
general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027]
CPU: 0 PID: 13824 Comm: syz-executor.3 Not tainted 5.17.0-rc8-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:kernel_sock_shutdown+0x24/0x70 net/socket.c:3533
Code: eb dd 0f 1f 40 00 41 54 41 89 f4 55 48 89 fd 53 e8 d1 33 52 fa 48 8d 7d 20 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 2f 48 b8 00 00 00 00 00 fc ff df 48 8b 5d 20 48 8d
RSP: 0018:ffffc90006d9ead8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffc90002b11000
RDX: 0000000000000004 RSI: ffffffff8725c1bf RDI: 0000000000000020
RBP: 0000000000000000 R08: 0000000000000002 R09: ffffffff8ffc9a8f
R10: ffffffff86afd5ef R11: 1ffffffff1f0ec20 R12: 0000000000000002
R13: 0000000000000000 R14: ffff88802c716008 R15: 00000000fffffffe
FS:  00007f2cdb162700(0000) GS:ffff88802ca00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4dda4321e5 CR3: 0000000079d6c000 CR4: 0000000000150ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 rxe_qp_do_cleanup+0x738/0xa60 drivers/infiniband/sw/rxe/rxe_qp.c:829
 execute_in_process_context+0x37/0x150 kernel/workqueue.c:3368
 rxe_elem_release+0x64/0x110 drivers/infiniband/sw/rxe/rxe_pool.c:402
 kref_put include/linux/kref.h:65 [inline]
 rxe_create_qp+0x32c/0x3b0 drivers/infiniband/sw/rxe/rxe_verbs.c:449
 create_qp+0x5ac/0x960 drivers/infiniband/core/verbs.c:1241
 ib_create_qp_kernel+0x9d/0x310 drivers/infiniband/core/verbs.c:1352
 ib_create_qp include/rdma/ib_verbs.h:3722 [inline]
 create_mad_qp+0x177/0x2d0 drivers/infiniband/core/mad.c:2910
 ib_mad_port_open drivers/infiniband/core/mad.c:2991 [inline]
 ib_mad_init_device+0xd51/0x13f0 drivers/infiniband/core/mad.c:3082
 add_client_context+0x405/0x5e0 drivers/infiniband/core/device.c:720
 enable_device_and_get+0x1cd/0x3b0 drivers/infiniband/core/device.c:1331
 ib_register_device drivers/infiniband/core/device.c:1419 [inline]
 ib_register_device+0x814/0xaf0 drivers/infiniband/core/device.c:1365
 rxe_register_device+0x2fe/0x3b0 drivers/infiniband/sw/rxe/rxe_verbs.c:1146
 rxe_add+0x1331/0x1710 drivers/infiniband/sw/rxe/rxe.c:246
 rxe_net_add+0x8c/0xe0 drivers/infiniband/sw/rxe/rxe_net.c:538
 rxe_newlink drivers/infiniband/sw/rxe/rxe.c:268 [inline]
 rxe_newlink+0xa9/0xd0 drivers/infiniband/sw/rxe/rxe.c:249
 nldev_newlink+0x30a/0x560 drivers/infiniband/core/nldev.c:1717
 rdma_nl_rcv_msg+0x36d/0x690 drivers/infiniband/core/netlink.c:195
 rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
 rdma_nl_rcv+0x2ee/0x430 drivers/infiniband/core/netlink.c:259
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x539/0x7e0 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x904/0xe00 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:725
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2413
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2467
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2496
 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+0x44/0xae
RIP: 0033:0x7f2cdc7ed049
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2cdb162168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f2cdc8fff60 RCX: 00007f2cdc7ed049
RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003
RBP: 00007f2cdc84708d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe6012236f R14: 00007f2cdb162300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:kernel_sock_shutdown+0x24/0x70 net/socket.c:3533
Code: eb dd 0f 1f 40 00 41 54 41 89 f4 55 48 89 fd 53 e8 d1 33 52 fa 48 8d 7d 20 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 2f 48 b8 00 00 00 00 00 fc ff df 48 8b 5d 20 48 8d
RSP: 0018:ffffc90006d9ead8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffc90002b11000
RDX: 0000000000000004 RSI: ffffffff8725c1bf RDI: 0000000000000020
RBP: 0000000000000000 R08: 0000000000000002 R09: ffffffff8ffc9a8f
R10: ffffffff86afd5ef R11: 1ffffffff1f0ec20 R12: 0000000000000002
R13: 0000000000000000 R14: ffff88802c716008 R15: 00000000fffffffe
FS:  00007f2cdb162700(0000) GS:ffff88802cc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb19abc66c8 CR3: 0000000079d6c000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	eb dd                	jmp    0xffffffdf
   2:	0f 1f 40 00          	nopl   0x0(%rax)
   6:	41 54                	push   %r12
   8:	41 89 f4             	mov    %esi,%r12d
   b:	55                   	push   %rbp
   c:	48 89 fd             	mov    %rdi,%rbp
   f:	53                   	push   %rbx
  10:	e8 d1 33 52 fa       	callq  0xfa5233e6
  15:	48 8d 7d 20          	lea    0x20(%rbp),%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:	75 2f                	jne    0x5f
  30:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  37:	fc ff df
  3a:	48 8b 5d 20          	mov    0x20(%rbp),%rbx
  3e:	48                   	rex.W
  3f:	8d                   	.byte 0x8d

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu-upstream 2022/03/15 05:25 upstream 09688c0166e7 9e8eaa75 .config log report info general protection fault in kernel_sock_shutdown
ci-upstream-kasan-gce-selinux-root 2022/02/27 14:25 upstream 2293be58d6a1 45a13a73 .config log report info general protection fault in kernel_sock_shutdown
* Struck through repros no longer work on HEAD.