syzbot


general protection fault in cfg80211_dev_rename

Status: fixed on 2020/07/17 17:58
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+fd5332e429401bf42d18@syzkaller.appspotmail.com
Fix commit: 0bbab5f03015 cfg80211: fix debugfs rename crash
First crash: 1447d, last: 1447d
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 5.4 000/142] 5.4.44-rc1 review 153 (153) 2021/02/04 15:04
[PATCH 5.6 000/177] 5.6.16-rc1 review 179 (179) 2020/06/02 06:47
[PATCH] cfg80211: fix debugfs rename crash 2 (2) 2020/05/25 11:10
general protection fault in cfg80211_dev_rename 0 (1) 2020/05/13 07:08

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]
CPU: 1 PID: 17548 Comm: syz-executor.2 Not tainted 5.7.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:cfg80211_dev_rename+0x12b/0x210 net/wireless/core.c:146
Code: ef 00 00 00 4c 8b b5 10 0c 00 00 4d 85 f6 74 36 e8 0a 6f 20 fa 49 8d 7e 48 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 c9 00 00 00 49 8b 7e 48 4c 89 e9 4c 89 f6 48 89
RSP: 0018:ffffc900055774e0 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: ffffc90005577748 RCX: ffffc90010d1f000
RDX: 0000000000000006 RSI: ffffffff8752bd86 RDI: 0000000000000037
RBP: ffff888088b40000 R08: ffff8880624a85c0 R09: fffffbfff185d748
R10: ffffffff8c2eba3f R11: fffffbfff185d747 R12: 0000000000000000
R13: ffffc90005e19018 R14: ffffffffffffffef R15: ffff888088b40000
FS:  00007fce5b9b5700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000048a140 CR3: 0000000097525000 CR4: 00000000001406e0
DR0: 0000000020000900 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 nl80211_set_wiphy+0x29d/0x2b70 net/wireless/nl80211.c:3009
 genl_family_rcv_msg_doit net/netlink/genetlink.c:673 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:718 [inline]
 genl_rcv_msg+0x627/0xdf0 net/netlink/genetlink.c:735
 netlink_rcv_skb+0x15a/0x410 net/netlink/af_netlink.c:2469
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:746
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x537/0x740 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x882/0xe10 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:672
 ____sys_sendmsg+0x6bf/0x7e0 net/socket.c:2362
 ___sys_sendmsg+0x100/0x170 net/socket.c:2416
 __sys_sendmsg+0xec/0x1b0 net/socket.c:2449
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45c829
Code: 0d b7 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 b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fce5b9b4c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000500b20 RCX: 000000000045c829
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000009fd R14: 00000000004ccb59 R15: 00007fce5b9b56d4
Modules linked in:
---[ end trace 90c3adb6c5fb6794 ]---
RIP: 0010:cfg80211_dev_rename+0x12b/0x210 net/wireless/core.c:146
Code: ef 00 00 00 4c 8b b5 10 0c 00 00 4d 85 f6 74 36 e8 0a 6f 20 fa 49 8d 7e 48 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 c9 00 00 00 49 8b 7e 48 4c 89 e9 4c 89 f6 48 89
RSP: 0018:ffffc900055774e0 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: ffffc90005577748 RCX: ffffc90010d1f000
RDX: 0000000000000006 RSI: ffffffff8752bd86 RDI: 0000000000000037
RBP: ffff888088b40000 R08: ffff8880624a85c0 R09: fffffbfff185d748
R10: ffffffff8c2eba3f R11: fffffbfff185d747 R12: 0000000000000000
R13: ffffc90005e19018 R14: ffffffffffffffef R15: ffff888088b40000
FS:  00007fce5b9b5700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3103e000 CR3: 0000000097525000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/08 18:05 bpf-next 2b6c6f071632 2b98fdbc .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.