general protection fault in ieee80211_key_free

8 views
Skip to first unread message

syzbot

unread,
Oct 4, 2020, 2:49:22 AM10/4/20
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 9d0d6300 ANDROID: use arm-linux-androidkernel- for CROSS_C..
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=102efc3f900000
kernel config: https://syzkaller.appspot.com/x/.config?x=889e2c88a7f30f62
dashboard link: https://syzkaller.appspot.com/bug?extid=d791609081ac065590c8
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d79160...@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: 1 PID: 20338 Comm: syz-executor.5 Not tainted 5.4.69-syzkaller-00867-g9d0d630081ae #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ieee80211_key_free+0x33/0x390 net/mac80211/key.c:843
Code: 53 50 89 f5 49 89 fe e8 ab 00 8d fd 4d 85 f6 0f 84 b0 00 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8d 7e 08 4c 89 fb 48 c1 eb 03 <80> 3c 03 00 74 08 4c 89 ff e8 9f ba ba fd 4d 8b 2f 4d 85 ed 0f 84
RSP: 0018:ffff8881cccd73a8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0fffffffe000098a RCX: 0000000000040000
RDX: ffffc900024a7000 RSI: 00000000000001c7 RDI: 00000000000001c8
RBP: 0000000000000000 R08: ffffffff83aea4e8 R09: ffffffff81f75c9b
R10: ffff8881cbb9dd00 R11: 000000000000000c R12: ffff8881c4d31a68
R13: ffff8881c4d30ed8 R14: 7fffffff00004c4b R15: 7fffffff00004c53
FS: 00007f7183fb0700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f55cea48f8 CR3: 00000001c7791005 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ieee80211_del_key+0x139/0x180 net/mac80211/cfg.c:532
rdev_del_key+0x1cf/0x330 net/wireless/rdev-ops.h:107
nl80211_del_key+0x410/0x550 net/wireless/nl80211.c:4015
genl_family_rcv_msg net/netlink/genetlink.c:629 [inline]
genl_rcv_msg+0xe76/0x1330 net/netlink/genetlink.c:654
netlink_rcv_skb+0x1f0/0x460 net/netlink/af_netlink.c:2478
genl_rcv+0x24/0x40 net/netlink/genetlink.c:665
netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
netlink_unicast+0x87c/0xa20 net/netlink/af_netlink.c:1329
netlink_sendmsg+0x9a7/0xd40 net/netlink/af_netlink.c:1918
sock_sendmsg_nosec net/socket.c:638 [inline]
sock_sendmsg net/socket.c:658 [inline]
____sys_sendmsg+0x56f/0x860 net/socket.c:2298
___sys_sendmsg net/socket.c:2352 [inline]
__sys_sendmsg+0x26a/0x350 net/socket.c:2398
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45de89
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f7183fafc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002b140 RCX: 000000000045de89
RDX: 0000000000000000 RSI: 0000000020001100 RDI: 0000000000000004
RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c
R13: 00007ffeff9022af R14: 00007f7183fb09c0 R15: 000000000118bf2c
Modules linked in:
---[ end trace 95089134e6a1e3c7 ]---
RIP: 0010:ieee80211_key_free+0x33/0x390 net/mac80211/key.c:843
Code: 53 50 89 f5 49 89 fe e8 ab 00 8d fd 4d 85 f6 0f 84 b0 00 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8d 7e 08 4c 89 fb 48 c1 eb 03 <80> 3c 03 00 74 08 4c 89 ff e8 9f ba ba fd 4d 8b 2f 4d 85 ed 0f 84
RSP: 0018:ffff8881cccd73a8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0fffffffe000098a RCX: 0000000000040000
RDX: ffffc900024a7000 RSI: 00000000000001c7 RDI: 00000000000001c8
RBP: 0000000000000000 R08: ffffffff83aea4e8 R09: ffffffff81f75c9b
R10: ffff8881cbb9dd00 R11: 000000000000000c R12: ffff8881c4d31a68
R13: ffff8881c4d30ed8 R14: 7fffffff00004c4b R15: 7fffffff00004c53
FS: 00007f7183fb0700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000021f3978 CR3: 00000001c7791004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Oct 4, 2020, 3:06:17 AM10/4/20
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 9d0d6300 ANDROID: use arm-linux-androidkernel- for CROSS_C..
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=15f5ac3f900000
kernel config: https://syzkaller.appspot.com/x/.config?x=889e2c88a7f30f62
dashboard link: https://syzkaller.appspot.com/bug?extid=d791609081ac065590c8
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=145921b3900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16fccdff900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d79160...@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: 1 PID: 358 Comm: syz-executor951 Not tainted 5.4.69-syzkaller-00867-g9d0d630081ae #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ieee80211_key_free+0x33/0x390 net/mac80211/key.c:843
Code: 53 50 89 f5 49 89 fe e8 ab 00 8d fd 4d 85 f6 0f 84 b0 00 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8d 7e 08 4c 89 fb 48 c1 eb 03 <80> 3c 03 00 74 08 4c 89 ff e8 9f ba ba fd 4d 8b 2f 4d 85 ed 0f 84
RSP: 0018:ffff8881ceb2f3a8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0fffffffe000098a RCX: ffff8881ceb26c80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 7fffffff00004c4b
RBP: 0000000000000000 R08: ffffffff83aea4e8 R09: ffffffff81f75c9b
R10: ffff8881ceb26c80 R11: 000000000000000c R12: ffff8881cded1a68
R13: ffff8881cded0ed8 R14: 7fffffff00004c4b R15: 7fffffff00004c53
FS: 000000000210c880(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 00000001ce174003 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ieee80211_del_key+0x139/0x180 net/mac80211/cfg.c:532
rdev_del_key+0x1cf/0x330 net/wireless/rdev-ops.h:107
nl80211_del_key+0x410/0x550 net/wireless/nl80211.c:4015
genl_family_rcv_msg net/netlink/genetlink.c:629 [inline]
genl_rcv_msg+0xe76/0x1330 net/netlink/genetlink.c:654
netlink_rcv_skb+0x1f0/0x460 net/netlink/af_netlink.c:2478
genl_rcv+0x24/0x40 net/netlink/genetlink.c:665
netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
netlink_unicast+0x87c/0xa20 net/netlink/af_netlink.c:1329
netlink_sendmsg+0x9a7/0xd40 net/netlink/af_netlink.c:1918
sock_sendmsg_nosec net/socket.c:638 [inline]
sock_sendmsg net/socket.c:658 [inline]
____sys_sendmsg+0x56f/0x860 net/socket.c:2298
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x441fd9
Code: e8 ac 00 03 00 48 83 c4 18 c3 0f 1f 80 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 0f 83 7b 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd1dee5028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000441fd9
RDX: 0000000000000000 RSI: 0000000020001100 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000001600000000 R09: 0000001600000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000004ca9
R13: 0000000000000000 R14: 0000000000000007 R15: 0000000000000004
Modules linked in:
---[ end trace 9055032374a97021 ]---
RIP: 0010:ieee80211_key_free+0x33/0x390 net/mac80211/key.c:843
Code: 53 50 89 f5 49 89 fe e8 ab 00 8d fd 4d 85 f6 0f 84 b0 00 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8d 7e 08 4c 89 fb 48 c1 eb 03 <80> 3c 03 00 74 08 4c 89 ff e8 9f ba ba fd 4d 8b 2f 4d 85 ed 0f 84
RSP: 0018:ffff8881ceb2f3a8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0fffffffe000098a RCX: ffff8881ceb26c80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 7fffffff00004c4b
RBP: 0000000000000000 R08: ffffffff83aea4e8 R09: ffffffff81f75c9b
R10: ffff8881ceb26c80 R11: 000000000000000c R12: ffff8881cded1a68
R13: ffff8881cded0ed8 R14: 7fffffff00004c4b R15: 7fffffff00004c53
FS: 000000000210c880(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 00000001ce174003 CR4: 00000000001606e0

syzbot

unread,
Apr 17, 2023, 1:59:28 AM4/17/23
to syzkaller-a...@googlegroups.com
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.
Reply all
Reply to author
Forward
0 new messages