syzbot


general protection fault in ieee80211_key_free

Status: fixed on 2020/11/16 12:12
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+847ae671fe8522d3491a@syzkaller.appspotmail.com
Fix commit: 3dc289f8f139 net: wireless: nl80211: fix out-of-bounds access in nl80211_del_key()
First crash: 1269d, last: 1264d
Cause bisection: introduced by (bisect log) [release commit]:
commit 1c163f4c7b3f621efff9b28a47abb36f7378d783
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sun Mar 3 23:21:29 2019 +0000

  Linux 5.0

Crash: general protection fault in batadv_iv_ogm_queue_add (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in ieee80211_key_free 0 (1) 2020/10/07 09:09
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 general protection fault in ieee80211_key_free C 11 1262d 1272d 0/2 auto-obsoleted due to no activity on 2023/04/17 05:59
Last patch testing requests (2)
Created Duration User Patch Repo Result
2020/10/07 14:44 16m anant.thazhemadam@gmail.com patch upstream OK
2020/10/07 13:10 9m anmol.karan123@gmail.com upstream report log

Sample crash report:
netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
general protection fault, probably for non-canonical address 0xdffffe7100000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000138800000008-0x000013880000000f]
CPU: 0 PID: 6852 Comm: syz-executor045 Not tainted 5.9.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ieee80211_key_free+0x34/0x320 net/mac80211/key.c:893
Code: 50 89 f3 49 89 fc e8 9b 44 81 f9 4d 85 e4 0f 84 ae 00 00 00 48 bd 00 00 00 00 00 fc ff df 4d 8d 7c 24 08 4d 89 fe 49 c1 ee 03 <41> 80 3c 2e 00 74 08 4c 89 ff e8 1d 2b c1 f9 4d 8b 2f 4d 85 ed 0f
RSP: 0018:ffffc90005377880 EFLAGS: 00010202
RAX: ffffffff87f3b955 RBX: 0000000000000000 RCX: ffff88808f2fa000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000138800000000
RBP: dffffc0000000000 R08: ffffffff87ece20b R09: fffffbfff135f936
R10: fffffbfff135f936 R11: 0000000000000000 R12: 0000138800000000
R13: dffffc0000000000 R14: 0000027100000001 R15: 0000138800000008
FS:  000000000155f940(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 000000009e0b0000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ieee80211_del_key+0x30c/0x360 net/mac80211/cfg.c:531
 rdev_del_key net/wireless/rdev-ops.h:107 [inline]
 nl80211_del_key+0x437/0x6f0 net/wireless/nl80211.c:4201
 genl_family_rcv_msg_doit net/netlink/genetlink.c:669 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:714 [inline]
 genl_rcv_msg+0xaf5/0xd70 net/netlink/genetlink.c:731
 netlink_rcv_skb+0x190/0x3a0 net/netlink/af_netlink.c:2470
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:742
 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline]
 netlink_unicast+0x786/0x940 net/netlink/af_netlink.c:1330
 netlink_sendmsg+0xa57/0xd70 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 ____sys_sendmsg+0x519/0x800 net/socket.c:2353
 ___sys_sendmsg net/socket.c:2407 [inline]
 __sys_sendmsg+0x2b1/0x360 net/socket.c:2440
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x44a339
Code: e8 dc 18 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 9b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffeac18b158 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ffeac18b1c0 RCX: 000000000044a339
RDX: 0000000000000000 RSI: 0000000020000380 RDI: 0000000000000003
RBP: 0000000000000032 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 0000000000000000 R14: 0000000000000048 R15: 0000000000000004
Modules linked in:
---[ end trace 1b70266a49263a4c ]---
RIP: 0010:ieee80211_key_free+0x34/0x320 net/mac80211/key.c:893
Code: 50 89 f3 49 89 fc e8 9b 44 81 f9 4d 85 e4 0f 84 ae 00 00 00 48 bd 00 00 00 00 00 fc ff df 4d 8d 7c 24 08 4d 89 fe 49 c1 ee 03 <41> 80 3c 2e 00 74 08 4c 89 ff e8 1d 2b c1 f9 4d 8b 2f 4d 85 ed 0f
RSP: 0018:ffffc90005377880 EFLAGS: 00010202
RAX: ffffffff87f3b955 RBX: 0000000000000000 RCX: ffff88808f2fa000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000138800000000
RBP: dffffc0000000000 R08: ffffffff87ece20b R09: fffffbfff135f936
R10: fffffbfff135f936 R11: 0000000000000000 R12: 0000138800000000
R13: dffffc0000000000 R14: 0000027100000001 R15: 0000138800000008
FS:  000000000155f940(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2b37de36c0 CR3: 000000009e0b0000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/07 05:29 upstream c85fb28b6f99 1880b4a9 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/10/12 04:39 upstream 3dd0130f2430 4a77ae0b .config console log report info ci-upstream-kasan-gce-smack-root
2020/10/07 00:19 upstream c85fb28b6f99 1880b4a9 .config console log report info ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.