syzbot


general protection fault in sk_diag_fill

Status: auto-closed as invalid on 2022/08/28 01:23
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 152d, last: 152d

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000008e: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000470-0x0000000000000477]
CPU: 1 PID: 4066 Comm: syz-executor.1 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:sk_user_ns include/net/sock.h:858 [inline]
RIP: 0010:sk_diag_dump_uid net/unix/diag.c:119 [inline]
RIP: 0010:sk_diag_fill+0x58a/0x10d0 net/unix/diag.c:170
Code: 48 c1 ea 03 80 3c 02 00 0f 85 c9 0a 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 6f 18 48 8d bd 70 04 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 83 0a 00 00 48 8b ad 70 04 00 00 48 b8 00 00 00
RSP: 0018:ffffc900047575c0 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88807c4b0000 RCX: 1ffffffff20db0f6
RDX: 000000000000008e RSI: 0000000000000000 RDI: 0000000000000470
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffffff906a59c7
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000040 R14: ffff88807869001c R15: ffff88807694d780
FS:  00007ff9a0d35700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 0000000078ea9000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 unix_diag_get_exact net/unix/diag.c:285 [inline]
 unix_diag_handler_dump+0x4a4/0x830 net/unix/diag.c:317
 __sock_diag_cmd net/core/sock_diag.c:235 [inline]
 sock_diag_rcv_msg+0x31a/0x440 net/core/sock_diag.c:266
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2501
 sock_diag_rcv+0x26/0x40 net/core/sock_diag.c:277
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:734
 ____sys_sendmsg+0x6eb/0x810 net/socket.c:2485
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2539
 __sys_sendmsg net/socket.c:2568 [inline]
 __do_sys_sendmsg net/socket.c:2577 [inline]
 __se_sys_sendmsg net/socket.c:2575 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2575
 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+0x46/0xb0
RIP: 0033:0x7ff99fc89109
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:00007ff9a0d35168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ff99fd9bf60 RCX: 00007ff99fc89109
RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000003
RBP: 00007ff99fce305d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff757eb28f R14: 00007ff9a0d35300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:sk_user_ns include/net/sock.h:858 [inline]
RIP: 0010:sk_diag_dump_uid net/unix/diag.c:119 [inline]
RIP: 0010:sk_diag_fill+0x58a/0x10d0 net/unix/diag.c:170
Code: 48 c1 ea 03 80 3c 02 00 0f 85 c9 0a 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 6f 18 48 8d bd 70 04 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 83 0a 00 00 48 8b ad 70 04 00 00 48 b8 00 00 00
RSP: 0018:ffffc900047575c0 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88807c4b0000 RCX: 1ffffffff20db0f6
RDX: 000000000000008e RSI: 0000000000000000 RDI: 0000000000000470
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffffff906a59c7
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000040 R14: ffff88807869001c R15: ffff88807694d780
FS:  00007ff9a0d35700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f33fc4d53a5 CR3: 0000000078ea9000 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 c9 0a 00 00    	jne    0xad7
   e:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  15:	fc ff df
  18:	49 8b 6f 18          	mov    0x18(%r15),%rbp
  1c:	48 8d bd 70 04 00 00 	lea    0x470(%rbp),%rdi
  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 83 0a 00 00    	jne    0xab7
  34:	48 8b ad 70 04 00 00 	mov    0x470(%rbp),%rbp
  3b:	48                   	rex.W
  3c:	b8                   	.byte 0xb8
  3d:	00 00                	add    %al,(%rax)

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/06/29 01:17 linux-next cb71b93c2dc3 496a8536 .config log report info general protection fault in sk_diag_fill
* Struck through repros no longer work on HEAD.