Hello,
syzbot found the following issue on:
HEAD commit: 811218ec Linux 4.19.172
git tree: linux-4.19.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=11a0a3d2d00000
kernel config:
https://syzkaller.appspot.com/x/.config?x=c1cb1d27398c8808
dashboard link:
https://syzkaller.appspot.com/bug?extid=130a4ba8c18d04c3a0a3
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=151a3c22d00000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=1644660cd00000
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+130a4b...@syzkaller.appspotmail.com
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8100 Comm: syz-executor179 Not tainted 4.19.172-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nla_len syzkaller/managers/linux-4-19/kernel/./include/net/netlink.h:706 [inline]
RIP: 0010:nla_parse_nested syzkaller/managers/linux-4-19/kernel/./include/net/netlink.h:765 [inline]
RIP: 0010:nl802154_add_llsec_key+0x1fa/0x580 syzkaller/managers/linux-4-19/kernel/net/ieee802154/nl802154.c:1565
Code: 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 3f 03 00 00 48 8b 93 28 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 d1 48 c1 e9 03 <0f> b6 0c 01 48 89 d0 83 e0 07 83 c0 01 38 c8 7c 08 84 c9 0f 85 cf
RSP: 0018:ffff8880952ef558 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88823a4b3ac0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff87c52955 RDI: ffff88823a4b3be8
RBP: 1ffff11012a5dead R08: 0000000000000001 R09: ffff8880952ef920
R10: 0000000000000005 R11: 0000000000000001 R12: ffff8880ab5e2e40
R13: ffff8880ab519050 R14: ffff88823a4b3ac0 R15: ffffffff89cf57c0
FS: 0000000001b67300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8ae9176020 CR3: 000000009e0cb000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
genl_family_rcv_msg+0x642/0xc40 syzkaller/managers/linux-4-19/kernel/net/netlink/genetlink.c:602
genl_rcv_msg+0xbf/0x160 syzkaller/managers/linux-4-19/kernel/net/netlink/genetlink.c:627
netlink_rcv_skb+0x160/0x440 syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:2455
genl_rcv+0x24/0x40 syzkaller/managers/linux-4-19/kernel/net/netlink/genetlink.c:638
netlink_unicast_kernel syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d5/0x690 syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:1344
netlink_sendmsg+0x6bb/0xc40 syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:1909
sock_sendmsg_nosec syzkaller/managers/linux-4-19/kernel/net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 syzkaller/managers/linux-4-19/kernel/net/socket.c:632
___sys_sendmsg+0x7bb/0x8e0 syzkaller/managers/linux-4-19/kernel/net/socket.c:2115
__sys_sendmsg syzkaller/managers/linux-4-19/kernel/net/socket.c:2153 [inline]
__do_sys_sendmsg syzkaller/managers/linux-4-19/kernel/net/socket.c:2162 [inline]
__se_sys_sendmsg syzkaller/managers/linux-4-19/kernel/net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x132/0x220 syzkaller/managers/linux-4-19/kernel/net/socket.c:2160
do_syscall_64+0xf9/0x620 syzkaller/managers/linux-4-19/kernel/arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x43f8a9
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:00007ffdb3e023b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 000000000043f8a9
RDX: 0000000000000000 RSI: 0000000020000a00 RDI: 0000000000000004
RBP: 0000000000403310 R08: 00000000004004a0 R09: 00000000004004a0
R10: 0000000000000003 R11: 0000000000000246 R12: 00000000004033a0
R13: 0000000000000000 R14: 00000000004ad018 R15: 00000000004004a0
Modules linked in:
---[ end trace d2b6f74ec7ed76be ]---
RIP: 0010:nla_len syzkaller/managers/linux-4-19/kernel/./include/net/netlink.h:706 [inline]
RIP: 0010:nla_parse_nested syzkaller/managers/linux-4-19/kernel/./include/net/netlink.h:765 [inline]
RIP: 0010:nl802154_add_llsec_key+0x1fa/0x580 syzkaller/managers/linux-4-19/kernel/net/ieee802154/nl802154.c:1565
Code: 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 3f 03 00 00 48 8b 93 28 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 d1 48 c1 e9 03 <0f> b6 0c 01 48 89 d0 83 e0 07 83 c0 01 38 c8 7c 08 84 c9 0f 85 cf
RSP: 0018:ffff8880952ef558 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88823a4b3ac0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff87c52955 RDI: ffff88823a4b3be8
RBP: 1ffff11012a5dead R08: 0000000000000001 R09: ffff8880952ef920
R10: 0000000000000005 R11: 0000000000000001 R12: ffff8880ab5e2e40
R13: ffff8880ab519050 R14: ffff88823a4b3ac0 R15: ffffffff89cf57c0
FS: 0000000001b67300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc584039058 CR3: 000000009e0cb000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches