syzbot


general protection fault in udpv6_sendmsg

Status: fixed on 2023/02/24 13:50
Subsystems: net
[Documentation on labels]
Fix commit: 6423ac2eb31e rxrpc: Fix oops from calling udpv6_sendmsg() on AF_INET socket
First crash: 762d, last: 752d
Cause bisection: failed (error log, bisect log)
  

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: 3604 Comm: syz-executor259 Not tainted 6.1.0-rc3-syzkaller-00887-g0c9ef08a4d0f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:ipv6_addr_v4mapped include/net/ipv6.h:749 [inline]
RIP: 0010:udpv6_sendmsg+0xd0a/0x2c70 net/ipv6/udp.c:1361
Code: 48 8b 85 98 fd ff ff 48 85 c0 0f 85 2a f8 ff ff e8 5b 46 5a f9 48 8b 95 c0 fd ff ff 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 40 1e 00 00 48 8b 85 c0 fd ff ff 48 8d 78 08 48
RSP: 0018:ffffc900039cf7f0 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 000000000000001c RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff88226bc5 RDI: 0000000000000007
RBP: ffffc900039cfa90 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 1ffffffff20252f2 R12: ffff888017b65e40
R13: ffff88802523793c R14: ffff888017b65e52 R15: ffffc900039cfb20
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f43201f5a70 CR3: 000000000bc8e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_udp_sendmsg net/rxrpc/output.c:27 [inline]
 do_udp_sendmsg net/rxrpc/output.c:21 [inline]
 rxrpc_send_abort_packet+0x73b/0x860 net/rxrpc/output.c:367
 rxrpc_release_calls_on_socket+0x211/0x300 net/rxrpc/call_object.c:595
 rxrpc_release_sock net/rxrpc/af_rxrpc.c:886 [inline]
 rxrpc_release+0x263/0x5a0 net/rxrpc/af_rxrpc.c:917
 __sock_release+0xcd/0x280 net/socket.c:650
 sock_close+0x18/0x20 net/socket.c:1365
 __fput+0x27c/0xa90 fs/file_table.c:320
 task_work_run+0x16b/0x270 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xb35/0x2a20 kernel/exit.c:820
 do_group_exit+0xd0/0x2a0 kernel/exit.c:950
 __do_sys_exit_group kernel/exit.c:961 [inline]
 __se_sys_exit_group kernel/exit.c:959 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:959
 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:0x7f75a996d749
Code: Unable to access opcode bytes at 0x7f75a996d71f.
RSP: 002b:00007ffe9d8ec9e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f75a99e1270 RCX: 00007f75a996d749
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000000
R10: 000000000000c000 R11: 0000000000000246 R12: 00007f75a99e1270
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ipv6_addr_v4mapped include/net/ipv6.h:749 [inline]
RIP: 0010:udpv6_sendmsg+0xd0a/0x2c70 net/ipv6/udp.c:1361
Code: 48 8b 85 98 fd ff ff 48 85 c0 0f 85 2a f8 ff ff e8 5b 46 5a f9 48 8b 95 c0 fd ff ff 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 40 1e 00 00 48 8b 85 c0 fd ff ff 48 8d 78 08 48
RSP: 0018:ffffc900039cf7f0 EFLAGS: 00010246

RAX: dffffc0000000000 RBX: 000000000000001c RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff88226bc5 RDI: 0000000000000007
RBP: ffffc900039cfa90 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 1ffffffff20252f2 R12: ffff888017b65e40
R13: ffff88802523793c R14: ffff888017b65e52 R15: ffffc900039cfb20
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e3f57d0028 CR3: 000000002747f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 8b 85 98 fd ff ff 	mov    -0x268(%rbp),%rax
   7:	48 85 c0             	test   %rax,%rax
   a:	0f 85 2a f8 ff ff    	jne    0xfffff83a
  10:	e8 5b 46 5a f9       	callq  0xf95a4670
  15:	48 8b 95 c0 fd ff ff 	mov    -0x240(%rbp),%rdx
  1c:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  23:	fc ff df
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 40 1e 00 00    	jne    0x1e74
  34:	48 8b 85 c0 fd ff ff 	mov    -0x240(%rbp),%rax
  3b:	48 8d 78 08          	lea    0x8(%rax),%rdi
  3f:	48                   	rex.W

Crashes (69):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/10 15:45 net-next-old 0c9ef08a4d0f b2488a87 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/18 23:49 net-next-old a452d30f3f17 5bb70014 .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/18 10:47 net-next-old b4b221bd79a1 4ba8ab94 .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/14 08:16 bpf-next b548b17a93fd 3ead01ad .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in udpv6_sendmsg
2022/11/14 07:07 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/14 05:47 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/14 04:04 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/14 02:32 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/13 22:05 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/13 20:15 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/13 18:27 bpf-next b548b17a93fd 3ead01ad .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in udpv6_sendmsg
2022/11/13 15:35 bpf-next b548b17a93fd 3ead01ad .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in udpv6_sendmsg
2022/11/13 12:54 bpf-next b548b17a93fd 3ead01ad .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in udpv6_sendmsg
2022/11/13 08:34 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/13 06:53 bpf-next b548b17a93fd 3ead01ad .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in udpv6_sendmsg
2022/11/13 05:35 bpf-next b548b17a93fd 3ead01ad .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in udpv6_sendmsg
2022/11/13 04:51 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/13 04:26 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/13 01:47 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/12 22:39 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/12 19:57 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/12 18:46 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/12 17:28 net-next-old b548b17a93fd 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/12 10:07 net-next-old 2cf7e87fc459 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/12 09:21 net-next-old 2cf7e87fc459 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/12 09:10 net-next-old 2cf7e87fc459 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/12 05:49 net-next-old 2cf7e87fc459 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/12 04:53 net-next-old 2cf7e87fc459 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/12 04:28 net-next-old 2cf7e87fc459 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/12 03:49 net-next-old 2cf7e87fc459 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/11 10:56 net-next-old c1b05105573b 3ead01ad .config console log report info ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/11 02:43 net-next-old 0c9ef08a4d0f 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/11 02:35 net-next-old 0c9ef08a4d0f 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/11 00:14 net-next-old 0c9ef08a4d0f 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/11 00:09 net-next-old 0c9ef08a4d0f 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/10 19:45 net-next-old 0c9ef08a4d0f 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/10 14:20 net-next-old 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/10 14:15 net-next-old 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/10 14:08 net-next-old 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/10 14:06 net-next-old 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/10 13:19 net-next-old 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/10 13:06 net-next-old 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/10 12:40 net-next-old 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/10 12:30 net-next-old 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in udpv6_sendmsg
2022/11/20 08:44 linux-next 15f3bff12cf6 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/20 06:38 linux-next 15f3bff12cf6 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/17 13:09 linux-next 15f3bff12cf6 3a127a31 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/15 18:14 linux-next 5c92ddca1053 97de9cfc .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/14 00:26 linux-next f8f60f322f06 3ead01ad .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/13 11:53 linux-next f8f60f322f06 3ead01ad .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/12 04:59 linux-next f8f60f322f06 3ead01ad .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/12 04:18 linux-next f8f60f322f06 3ead01ad .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/11 12:09 linux-next f8f60f322f06 3ead01ad .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/11 12:06 linux-next f8f60f322f06 3ead01ad .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/11 10:39 linux-next f8f60f322f06 3ead01ad .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/11 08:20 linux-next f8f60f322f06 3ead01ad .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/11 08:13 linux-next f8f60f322f06 3ead01ad .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
2022/11/11 07:50 linux-next f8f60f322f06 3ead01ad .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in udpv6_sendmsg
* Struck through repros no longer work on HEAD.