syzbot


general protection fault in __skb_try_recv_from_queue (2)

Status: closed as invalid on 2023/09/22 04:28
Subsystems: net
[Documentation on labels]
First crash: 935d, last: 928d
Cause bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in __skb_try_recv_from_queue net 2 1 1509d 1505d 0/29 auto-closed as invalid on 2021/10/08 16:47
Last patch testing requests (3)
Created Duration User Patch Repo Result
2023/07/25 22:21 19m retest repro linux-next OK log
2023/05/16 20:38 19m retest repro linux-next error
2023/05/16 20:18 22m retest repro linux-next error

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 PID: 4424 Comm: syslogd Not tainted 6.2.0-rc7-next-20230208-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
RIP: 0010:__skb_unlink include/linux/skbuff.h:2328 [inline]
RIP: 0010:__skb_try_recv_from_queue+0x667/0x820 net/core/datagram.c:197
Code: 8d 7d 08 49 8b 5c 24 08 48 b8 00 00 00 00 00 fc ff df 49 c7 44 24 08 00 00 00 00 48 89 fa 49 c7 04 24 00 00 00 00 48 c1 ea 03 <80> 3c 02 00 0f 85 f5 00 00 00 48 89 da 48 89 5d 08 48 b8 00 00 00
RSP: 0018:ffffc9000311f960 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff880e5cef RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888075467000
R13: ffff888075467000 R14: 0000000000000000 R15: 0000000000000293
FS:  00007f084d23a800(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005611b534a088 CR3: 000000002205f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __skb_try_recv_datagram+0x15d/0x4f0 net/core/datagram.c:263
 __unix_dgram_recvmsg+0x194/0xb90 net/unix/af_unix.c:2446
 unix_dgram_recvmsg+0xc4/0xf0 net/unix/af_unix.c:2543
 sock_recvmsg_nosec net/socket.c:1012 [inline]
 sock_recvmsg+0xe2/0x160 net/socket.c:1033
 sock_read_iter+0x2bd/0x3b0 net/socket.c:1111
 call_read_iter include/linux/fs.h:1845 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x7fa/0x930 fs/read_write.c:470
 ksys_read+0x1ec/0x250 fs/read_write.c:613
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f084d3c68fe
Code: c0 e9 e6 fe ff ff 50 48 8d 3d 0e c7 09 00 e8 c9 cf 01 00 66 0f 1f 84 00 00 00 00 00 64 8b 04 25 18 00 00 00 85 c0 75 14 0f 05 <48> 3d 00 f0 ff ff 77 5a c3 66 0f 1f 84 00 00 00 00 00 48 83 ec 28
RSP: 002b:00007ffe17d35408 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f084d3c68fe
RDX: 00000000000000ff RSI: 000055c3353e1950 RDI: 0000000000000000
RBP: 000055c3353e1910 R08: 00007f084d456040 R09: 00007f084d4560c0
R10: 00007f084d455fc0 R11: 0000000000000246 R12: 000055c3353e1a4f
R13: 000055c3353e1950 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__skb_unlink include/linux/skbuff.h:2328 [inline]
RIP: 0010:__skb_try_recv_from_queue+0x667/0x820 net/core/datagram.c:197
Code: 8d 7d 08 49 8b 5c 24 08 48 b8 00 00 00 00 00 fc ff df 49 c7 44 24 08 00 00 00 00 48 89 fa 49 c7 04 24 00 00 00 00 48 c1 ea 03 <80> 3c 02 00 0f 85 f5 00 00 00 48 89 da 48 89 5d 08 48 b8 00 00 00
RSP: 0018:ffffc9000311f960 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff880e5cef RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888075467000
R13: ffff888075467000 R14: 0000000000000000 R15: 0000000000000293
FS:  00007f084d23a800(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005611b534a088 CR3: 000000002205f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	8d 7d 08             	lea    0x8(%rbp),%edi
   3:	49 8b 5c 24 08       	mov    0x8(%r12),%rbx
   8:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
   f:	fc ff df
  12:	49 c7 44 24 08 00 00 	movq   $0x0,0x8(%r12)
  19:	00 00
  1b:	48 89 fa             	mov    %rdi,%rdx
  1e:	49 c7 04 24 00 00 00 	movq   $0x0,(%r12)
  25:	00
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 f5 00 00 00    	jne    0x129
  34:	48 89 da             	mov    %rbx,%rdx
  37:	48 89 5d 08          	mov    %rbx,0x8(%rbp)
  3b:	48                   	rex.W
  3c:	b8                   	.byte 0xb8
  3d:	00 00                	add    %al,(%rax)

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/11 19:38 linux-next 38d2b86a665b 93e26d60 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in __skb_try_recv_from_queue
2023/02/04 16:49 linux-next 4fafd96910ad be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in __skb_try_recv_from_queue
* Struck through repros no longer work on HEAD.