syzbot


general protection fault in ieee80211_debugfs_rename_netdev

Status: fixed on 2019/05/27 12:48
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+4ece1a28b8f4730547c9@syzkaller.appspotmail.com
Fix commit: 517879147493 mac80211: don't attempt to rename ERR_PTR() debugfs dirs
First crash: 1689d, last: 1675d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 3.16 000/157] 3.16.72-rc1 review 162 (162) 2019/08/11 15:25
[PATCH 5.0 000/122] 5.0.14-stable review 134 (134) 2019/05/08 06:36
[PATCH 4.19 00/99] 4.19.41-stable review 111 (111) 2019/05/08 06:35
[PATCH] mac80211: don't attempt to rename ERR_PTR() debugfs dirs 1 (1) 2019/04/15 09:39
general protection fault in ieee80211_debugfs_rename_netdev 0 (1) 2019/04/14 16:47

Sample crash report:
netlink: 5 bytes leftover after parsing attributes in process `syz-executor.1'.
mac80211_hwsim hwsim13 0-: renamed from wlan0
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: 19203 Comm: syz-executor.1 Not tainted 5.1.0-rc6+ #185
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ieee80211_debugfs_rename_netdev+0xd1/0x14d net/mac80211/debugfs_netdev.c:848
Code: 05 00 00 48 c7 c6 a0 a6 13 88 4c 89 fa 4c 89 f7 e8 d4 37 45 00 49 8d 7d 40 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 6f 49 8b 7d 40 4c 89 f1 4c 89 ee 48 89 fa e8 17 f7
RSP: 0018:ffff88805f4cedd0 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: ffff88806b3a5240 RCX: 1ffff1100be99d8c
RDX: 0000000000000005 RSI: 0000000000000000 RDI: 000000000000002f
RBP: ffff88805f4cee70 R08: ffff888069f4a440 R09: ffffed100be99dbf
R10: ffffed100be99dbe R11: ffff88805f4cedf6 R12: 1ffff1100be99dba
R13: ffffffffffffffef R14: ffff88805f4cedf0 R15: ffff88806b3a6290
FS:  00007fec44fbc700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe0720efe0 CR3: 000000008a1ec000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 netdev_notify+0x1f9/0x260 net/mac80211/iface.c:1991
 notifier_call_chain+0xc7/0x240 kernel/notifier.c:93
 __raw_notifier_call_chain kernel/notifier.c:394 [inline]
 raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:401
 call_netdevice_notifiers_info+0x3f/0x90 net/core/dev.c:1753
 call_netdevice_notifiers_extack net/core/dev.c:1765 [inline]
 call_netdevice_notifiers net/core/dev.c:1779 [inline]
 dev_change_name+0x5cc/0xa70 net/core/dev.c:1248
 do_setlink+0x2a51/0x3510 net/core/rtnetlink.c:2466
 rtnl_setlink+0x271/0x3b0 net/core/rtnetlink.c:2747
 rtnetlink_rcv_msg+0x465/0xb00 net/core/rtnetlink.c:5192
 netlink_rcv_skb+0x17a/0x460 net/netlink/af_netlink.c:2486
 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5210
 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline]
 netlink_unicast+0x536/0x720 net/netlink/af_netlink.c:1337
 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1926
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xdd/0x130 net/socket.c:661
 sock_write_iter+0x27c/0x3e0 net/socket.c:988
 call_write_iter include/linux/fs.h:1866 [inline]
 do_iter_readv_writev+0x5e1/0x8e0 fs/read_write.c:681
 do_iter_write fs/read_write.c:957 [inline]
 do_iter_write+0x184/0x610 fs/read_write.c:938
 vfs_writev+0x1b3/0x2f0 fs/read_write.c:1002
 do_writev+0x15e/0x370 fs/read_write.c:1037
 __do_sys_writev fs/read_write.c:1110 [inline]
 __se_sys_writev fs/read_write.c:1107 [inline]
 __x64_sys_writev+0x75/0xb0 fs/read_write.c:1107
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x458da9
Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fec44fbbc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458da9
RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fec44fbc6d4
R13: 00000000004c5b29 R14: 00000000004df260 R15: 00000000ffffffff
Modules linked in:
---[ end trace a61ea353d6db0e4d ]---
RIP: 0010:ieee80211_debugfs_rename_netdev+0xd1/0x14d net/mac80211/debugfs_netdev.c:848
Code: 05 00 00 48 c7 c6 a0 a6 13 88 4c 89 fa 4c 89 f7 e8 d4 37 45 00 49 8d 7d 40 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 6f 49 8b 7d 40 4c 89 f1 4c 89 ee 48 89 fa e8 17 f7
RSP: 0018:ffff88805f4cedd0 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: ffff88806b3a5240 RCX: 1ffff1100be99d8c
RDX: 0000000000000005 RSI: 0000000000000000 RDI: 000000000000002f
RBP: ffff88805f4cee70 R08: ffff888069f4a440 R09: ffffed100be99dbf
R10: ffffed100be99dbe R11: ffff88805f4cedf6 R12: 1ffff1100be99dba
R13: ffffffffffffffef R14: ffff88805f4cedf0 R15: ffff88806b3a6290
FS:  00007fec44fbc700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fec44f58db8 CR3: 000000008a1ec000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/28 12:21 net-old b2a20fd0725e b617407b .config console log report ci-upstream-net-this-kasan-gce
2019/04/20 19:59 net-old d1bcf2b65177 b0e8efcb .config console log report ci-upstream-net-this-kasan-gce
2019/04/19 08:43 net-old e0c1d14a1a32 b0e8efcb .config console log report ci-upstream-net-this-kasan-gce
2019/04/17 23:36 net-old e6986423d283 b0e8efcb .config console log report ci-upstream-net-this-kasan-gce
2019/04/14 09:52 net-old ed0de45a1008 c402d8f1 .config console log report ci-upstream-net-this-kasan-gce
2019/04/20 21:50 net-next-old 5313794b7915 b0e8efcb .config console log report ci-upstream-net-kasan-gce
2019/04/20 05:45 net-next-old d7cc399e1227 b0e8efcb .config console log report ci-upstream-net-kasan-gce
2019/04/18 05:14 net-next-old 3a6f7892acc1 b0e8efcb .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.