syzbot


general protection fault in nl802154_trigger_scan

Status: fixed on 2023/06/08 14:41
Subsystems: wpan
[Documentation on labels]
Reported-by: syzbot+bd85b31816913a32e473@syzkaller.appspotmail.com
Fix commit: 02f18662f6c6 ieee802154: Prevent user from crashing the host
First crash: 424d, last: 402d
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [wpan?] general protection fault in nl802154_trigger_scan 4 (5) 2023/03/08 09:38
[PATCH v2] net: ieee802154: fix a null pointer in nl802154_trigger_scan 2 (2) 2023/03/07 09:38
[PATCH] net: ieee802154: fix a null pointer in nl802154_trigger_scan 6 (6) 2023/03/07 09:34
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/03/07 07:01 19m mudongliangabcd@gmail.com patch upstream OK 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: 5076 Comm: syz-executor386 Not tainted 6.2.0-syzkaller-12485-gf3a2439f20d9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
RIP: 0010:nla_get_u8 include/net/netlink.h:1658 [inline]
RIP: 0010:nl802154_trigger_scan+0x132/0xc90 net/ieee802154/nl802154.c:1415
Code: 48 c1 ea 03 80 3c 02 00 0f 85 3f 0a 00 00 48 8b ad f8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7d 04 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 d0 07 00 00
RSP: 0018:ffffc90003397568 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: ffffc900033975d8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff89cec1a1 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888146fb4c90
R13: ffff888146f82000 R14: ffff888146f820a0 R15: ffffc900033975f8
FS:  0000555556c9b300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055be8d9c04f0 CR3: 0000000023513000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 genl_family_rcv_msg_doit.isra.0+0x1e6/0x2d0 net/netlink/genetlink.c:968
 genl_family_rcv_msg net/netlink/genetlink.c:1048 [inline]
 genl_rcv_msg+0x4ff/0x7e0 net/netlink/genetlink.c:1065
 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2574
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1076
 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
 netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365
 netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1942
 sock_sendmsg_nosec net/socket.c:722 [inline]
 sock_sendmsg+0xde/0x190 net/socket.c:745
 ____sys_sendmsg+0x71c/0x900 net/socket.c:2504
 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2558
 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2587
 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:0x7f416cc9ee69
Code: 28 c3 e8 5a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff243fe498 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f416cd17380 RCX: 00007f416cc9ee69
RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003
RBP: 0000000000000001 R08: 0000000000000000 R09: 001d00000000000c
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 0000000000000003 R14: 00007fff243fe4b7 R15: 00007fff243fe4ba
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:nla_get_u8 include/net/netlink.h:1658 [inline]
RIP: 0010:nl802154_trigger_scan+0x132/0xc90 net/ieee802154/nl802154.c:1415
Code: 48 c1 ea 03 80 3c 02 00 0f 85 3f 0a 00 00 48 8b ad f8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7d 04 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 d0 07 00 00
RSP: 0018:ffffc90003397568 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: ffffc900033975d8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff89cec1a1 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888146fb4c90
R13: ffff888146f82000 R14: ffff888146f820a0 R15: ffffc900033975f8
FS:  0000555556c9b300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055be8d9c04f0 CR3: 0000000023513000 CR4: 00000000003506e0
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 3f 0a 00 00    	jne    0xa4d
   e:	48 8b ad f8 00 00 00 	mov    0xf8(%rbp),%rbp
  15:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1c:	fc ff df
  1f:	48 8d 7d 04          	lea    0x4(%rbp),%rdi
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	48 89 fa             	mov    %rdi,%rdx
  31:	83 e2 07             	and    $0x7,%edx
  34:	38 d0                	cmp    %dl,%al
  36:	7f 08                	jg     0x40
  38:	84 c0                	test   %al,%al
  3a:	0f 85 d0 07 00 00    	jne    0x810

Crashes (31):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/27 16:01 upstream f3a2439f20d9 e792ae78 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in nl802154_trigger_scan
2023/02/27 15:15 upstream f3a2439f20d9 e792ae78 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in nl802154_trigger_scan
2023/02/27 16:24 net-old 724337be7f21 e792ae78 .config strace log report syz C ci-upstream-net-this-kasan-gce general protection fault in nl802154_trigger_scan
2023/02/27 16:04 net-old 724337be7f21 e792ae78 .config strace log report syz C ci-upstream-net-this-kasan-gce general protection fault in nl802154_trigger_scan
2023/02/27 15:11 net-old 724337be7f21 e792ae78 .config strace log report syz C ci-upstream-net-this-kasan-gce general protection fault in nl802154_trigger_scan
2023/02/27 14:41 net-old 724337be7f21 e792ae78 .config strace log report syz C ci-upstream-net-this-kasan-gce general protection fault in nl802154_trigger_scan
2023/02/27 16:23 net-next-old 5b7c4cabbb65 e792ae78 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in nl802154_trigger_scan
2023/02/27 16:02 net-next-old 5b7c4cabbb65 e792ae78 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in nl802154_trigger_scan
2023/02/27 15:10 net-next-old 5b7c4cabbb65 e792ae78 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in nl802154_trigger_scan
2023/02/27 14:51 net-next-old 5b7c4cabbb65 e792ae78 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in nl802154_trigger_scan
2023/03/01 20:33 upstream c0927a7a5391 f8902b57 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in nl802154_trigger_scan
2023/03/01 02:44 upstream e492250d5252 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in nl802154_trigger_scan
2023/02/27 14:58 upstream f3a2439f20d9 e792ae78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in nl802154_trigger_scan
2023/02/27 14:34 upstream f3a2439f20d9 e792ae78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in nl802154_trigger_scan
2023/02/27 14:32 upstream f3a2439f20d9 e792ae78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in nl802154_trigger_scan
2023/02/27 14:33 upstream f3a2439f20d9 95aee97a .config console log report info ci-qemu-upstream-386 general protection fault in nl802154_trigger_scan
2023/03/02 01:07 net-old fb07390463c9 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in nl802154_trigger_scan
2023/02/27 14:28 net-old 724337be7f21 e792ae78 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nl802154_trigger_scan
2023/03/09 07:03 net-next 10369080454d 4fc6d98d .config console log report info ci-upstream-net-kasan-gce general protection fault in nl802154_trigger_scan
2023/03/07 05:30 net-next-old 5b7c4cabbb65 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in nl802154_trigger_scan
2023/02/27 14:37 net-next-old 5b7c4cabbb65 e792ae78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in nl802154_trigger_scan
2023/02/27 17:18 linux-next 7f7a8831520f e792ae78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in nl802154_trigger_scan
2023/03/22 07:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 8b4eb097 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in nl802154_trigger_scan
2023/03/21 05:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in nl802154_trigger_scan
2023/03/16 08:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in nl802154_trigger_scan
2023/03/15 16:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in nl802154_trigger_scan
2023/03/15 04:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 0d5c4377 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in nl802154_trigger_scan
2023/03/10 02:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e f08b59ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in nl802154_trigger_scan
2023/03/09 07:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 4fc6d98d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in nl802154_trigger_scan
2023/03/07 05:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in nl802154_trigger_scan
2023/03/06 22:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in nl802154_trigger_scan
* Struck through repros no longer work on HEAD.