syzbot


general protection fault in tipc_crypto_key_distr

Status: auto-closed as invalid on 2022/03/16 05:19
Subsystems: tipc
[Documentation on labels]
Reported-by: syzbot+fff41d21ca02315bd004@syzkaller.appspotmail.com
First crash: 1187d, last: 853d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in tipc_crypto_key_distr 0 (1) 2020/12/23 11:13
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in tipc_crypto_key_distr 1 863d 863d 1/2 fixed on 2022/02/03 18:42

Sample crash report:
RAX: ffffffffffffffda RBX: 00007f9384895f60 RCX: 00007f9384782ae9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00007f9381cf81d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffc004d525f R14: 00007f9381cf8300 R15: 0000000000022000
 </TASK>
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: 23868 Comm: syz-executor.4 Not tainted 5.16.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:tipc_aead_key_size include/uapi/linux/tipc.h:254 [inline]
RIP: 0010:tipc_crypto_key_xmit net/tipc/crypto.c:2242 [inline]
RIP: 0010:tipc_crypto_key_distr+0x25d/0x8e0 net/tipc/crypto.c:2208
Code: 8a 04 28 84 c0 0f 85 f5 04 00 00 66 c7 84 24 00 01 00 00 00 00 48 8b 44 24 18 48 8d 58 20 48 89 d8 48 c1 e8 03 48 89 44 24 50 <42> 8a 04 28 84 c0 0f 85 e7 04 00 00 8b 03 83 c0 24 44 0f b7 f0 41
RSP: 0018:ffffc9000b3bf260 EFLAGS: 00010202
RAX: 0000000000000004 RBX: 0000000000000020 RCX: 000000000b3bf301
RDX: 0000000000000058 RSI: 0000000000000000 RDI: ffffc9000b3bf338
RBP: ffffc9000b3bf3d0 R08: dffffc0000000000 R09: ffffc9000b3bf2e0
R10: fffff52001677e67 R11: 0000000000000000 R12: 0000000000000001
R13: dffffc0000000000 R14: ffffc9000b3bf2e0 R15: ffffc9000b3bf360
FS:  00007f9381cf8700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8a39173000 CR3: 000000018105a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __tipc_nl_node_set_key net/tipc/node.c:3018 [inline]
 tipc_nl_node_set_key+0x83d/0xa60 net/tipc/node.c:3033
 genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
 genl_rcv_msg+0x1032/0x1480 net/netlink/genetlink.c:792
 netlink_rcv_skb+0x200/0x470 net/netlink/af_netlink.c:2491
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:803
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x814/0x9f0 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0xa20/0xe40 net/netlink/af_netlink.c:1916
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x5b9/0x910 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmsg+0x280/0x370 net/socket.c:2492
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f9384782ae9
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:00007f9381cf8188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f9384895f60 RCX: 00007f9384782ae9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00007f9381cf81d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffc004d525f R14: 00007f9381cf8300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 84783aa2ba0fa5df ]---
RIP: 0010:tipc_aead_key_size include/uapi/linux/tipc.h:254 [inline]
RIP: 0010:tipc_crypto_key_xmit net/tipc/crypto.c:2242 [inline]
RIP: 0010:tipc_crypto_key_distr+0x25d/0x8e0 net/tipc/crypto.c:2208
Code: 8a 04 28 84 c0 0f 85 f5 04 00 00 66 c7 84 24 00 01 00 00 00 00 48 8b 44 24 18 48 8d 58 20 48 89 d8 48 c1 e8 03 48 89 44 24 50 <42> 8a 04 28 84 c0 0f 85 e7 04 00 00 8b 03 83 c0 24 44 0f b7 f0 41
RSP: 0018:ffffc9000b3bf260 EFLAGS: 00010202
RAX: 0000000000000004 RBX: 0000000000000020 RCX: 000000000b3bf301
RDX: 0000000000000058 RSI: 0000000000000000 RDI: ffffc9000b3bf338
RBP: ffffc9000b3bf3d0 R08: dffffc0000000000 R09: ffffc9000b3bf2e0
R10: fffff52001677e67 R11: 0000000000000000 R12: 0000000000000001
R13: dffffc0000000000 R14: ffffc9000b3bf2e0 R15: ffffc9000b3bf360
FS:  00007f9381cf8700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8a3917b000 CR3: 000000018105a000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	8a 04 28             	mov    (%rax,%rbp,1),%al
   3:	84 c0                	test   %al,%al
   5:	0f 85 f5 04 00 00    	jne    0x500
   b:	66 c7 84 24 00 01 00 	movw   $0x0,0x100(%rsp)
  12:	00 00 00
  15:	48 8b 44 24 18       	mov    0x18(%rsp),%rax
  1a:	48 8d 58 20          	lea    0x20(%rax),%rbx
  1e:	48 89 d8             	mov    %rbx,%rax
  21:	48 c1 e8 03          	shr    $0x3,%rax
  25:	48 89 44 24 50       	mov    %rax,0x50(%rsp)
* 2a:	42 8a 04 28          	mov    (%rax,%r13,1),%al <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 e7 04 00 00    	jne    0x51d
  36:	8b 03                	mov    (%rbx),%eax
  38:	83 c0 24             	add    $0x24,%eax
  3b:	44 0f b7 f0          	movzwl %ax,%r14d
  3f:	41                   	rex.B

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/16 05:18 upstream 8ab774587903 83f5c9b5 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in tipc_crypto_key_distr
2021/11/03 19:23 upstream dcd68326d29b 4c1be0be .config console log report info ci-upstream-kasan-gce general protection fault in tipc_crypto_key_distr
2021/10/27 23:55 upstream d25f27432f80 373bf66b .config console log report info ci-upstream-kasan-gce general protection fault in tipc_crypto_key_distr
2021/10/16 10:59 upstream 8fe31e0995f0 0c5d9412 .config console log report info ci-upstream-kasan-gce general protection fault in tipc_crypto_key_distr
2021/09/29 13:19 upstream a4e6f95a891a d82cb927 .config console log report info ci-upstream-kasan-gce general protection fault in tipc_crypto_key_distr
2021/09/02 04:03 upstream 835d31d319d9 7eb7e152 .config console log report info ci-upstream-kasan-gce general protection fault in tipc_crypto_key_distr
2021/08/12 19:22 upstream 1746f4db5135 6972b106 .config console log report info ci-upstream-kasan-gce general protection fault in tipc_crypto_key_distr
2021/07/25 16:17 upstream 6498f6151825 4d1b57d4 .config console log report info ci-upstream-kasan-gce-root general protection fault in tipc_crypto_key_distr
2021/07/06 10:46 upstream 3dbdb38e2869 6c4484eb .config console log report info ci-upstream-kasan-gce-root general protection fault in tipc_crypto_key_distr
2021/11/13 20:45 upstream 66f4beaa6c1d 83f5c9b5 .config console log report info ci-qemu-upstream-386 general protection fault in tipc_crypto_key_distr
2021/10/17 02:41 net-old fac3cb82a54a 0c5d9412 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in tipc_crypto_key_distr
2021/06/05 06:06 net-old 3822d0670c9d 500c2339 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in tipc_crypto_key_distr
2021/02/06 01:23 net-old b3d2c7b876d4 23a562df .config console log report info ci-upstream-net-this-kasan-gce general protection fault in tipc_crypto_key_distr
2021/10/02 13:46 net-next-old 20ab39d13e2e db0f5787 .config console log report info ci-upstream-net-kasan-gce general protection fault in tipc_crypto_key_distr
2020/12/17 04:39 net-next-old 3db1a3fa9880 04201c06 .config console log report info ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.