syzbot


general protection fault in hwsim_set_edge_lqi

Status: fixed on 2021/11/10 00:50
Subsystems: wpan
[Documentation on labels]
Fix commit: 0303b30375df ieee802154: hwsim: avoid possible crash in hwsim_del_edge_nl()
First crash: 1272d, last: 1220d
Cause bisection: introduced by (bisect log) :
commit 997acaf6b4b59c6a9c259740312a69ea549cc684
Author: Mark Rutland <mark.rutland@arm.com>
Date: Mon Jan 11 15:37:07 2021 +0000

  lockdep: report broken irq restoration

Crash: WARNING in kvm_wait (log)
Repro: C syz .config
  

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: 8441 Comm: syz-executor107 Not tainted 5.13.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nla_len include/net/netlink.h:1148 [inline]
RIP: 0010:nla_parse_nested_deprecated include/net/netlink.h:1231 [inline]
RIP: 0010:hwsim_set_edge_lqi+0xf4/0x7d0 drivers/net/ieee802154/mac802154_hwsim.c:535
Code: 00 0f 85 9c 06 00 00 4d 85 ed 48 8b 5b 10 0f 84 6e 05 00 00 e8 dd 92 4a fc 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 14 02 48 89 d8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 c2
RSP: 0018:ffffc9000189f568 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff852a4913 RDI: ffff888027a8a390
RBP: ffffc9000189f678 R08: 0000000000000001 R09: ffffc9000189f6a8
R10: fffff52000313ed6 R11: 0000000000000000 R12: ffffc9000189f698
R13: ffff88801d199814 R14: ffff8880127a8140 R15: 0000000000000000
FS:  0000000001607300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005628469f7768 CR3: 0000000017282000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:739
 genl_family_rcv_msg net/netlink/genetlink.c:783 [inline]
 genl_rcv_msg+0x328/0x580 net/netlink/genetlink.c:800
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:811
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1929
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:674
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2337
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2391
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2420
 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43eec9
Code: 28 c3 e8 2a 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:00007fffb3ec3868 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000400488 RCX: 000000000043eec9
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 0000000000402eb0 R08: 0000000000000000 R09: 0000000000400488
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402f40
R13: 0000000000000000 R14: 00000000004ac018 R15: 0000000000400488
Modules linked in:
---[ end trace d874a40c8997745a ]---
RIP: 0010:nla_len include/net/netlink.h:1148 [inline]
RIP: 0010:nla_parse_nested_deprecated include/net/netlink.h:1231 [inline]
RIP: 0010:hwsim_set_edge_lqi+0xf4/0x7d0 drivers/net/ieee802154/mac802154_hwsim.c:535
Code: 00 0f 85 9c 06 00 00 4d 85 ed 48 8b 5b 10 0f 84 6e 05 00 00 e8 dd 92 4a fc 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 14 02 48 89 d8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 c2
RSP: 0018:ffffc9000189f568 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff852a4913 RDI: ffff888027a8a390
RBP: ffffc9000189f678 R08: 0000000000000001 R09: ffffc9000189f6a8
R10: fffff52000313ed6 R11: 0000000000000000 R12: ffffc9000189f698
R13: ffff88801d199814 R14: ffff8880127a8140 R15: 0000000000000000
FS:  0000000001607300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe281024000 CR3: 0000000017282000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/21 01:36 net-old dda2626b86c2 aba2b2fb .config console log report syz C ci-upstream-net-this-kasan-gce general protection fault in hwsim_set_edge_lqi
2021/06/21 01:55 net-next-old adc2e56ebe63 aba2b2fb .config console log report syz C ci-upstream-net-kasan-gce general protection fault in hwsim_set_edge_lqi
2021/06/21 01:21 net-old dda2626b86c2 aba2b2fb .config console log report info ci-upstream-net-this-kasan-gce general protection fault in hwsim_set_edge_lqi
2021/08/12 11:33 net-next-old 88be32634905 6972b106 .config console log report info ci-upstream-net-kasan-gce general protection fault in hwsim_set_edge_lqi
* Struck through repros no longer work on HEAD.