syzbot


WARNING in cfg80211_change_iface

Status: fixed on 2021/04/09 19:46
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+d2d412349f88521938aa@syzkaller.appspotmail.com
Fix commit: bae173563cbf wext: call cfg80211_change_iface() with wiphy lock held
First crash: 1409d, last: 1404d
Cause bisection: the cause commit could be any of (bisect log):
  2fe8ef106238 cfg80211: change netdev registration/unregistration semantics
  a05829a7222e cfg80211: avoid holding the RTNL when calling the driver
  38ec7c6b6bd6 virt_wifi: fix deadlock on RTNL
  
Discussions (2)
Title Replies (including bot) Last reply
WARNING in cfg80211_change_iface 0 (2) 2021/01/29 04:56
[PATCH 0/4] rtnl-locking fixes 5 (5) 2021/01/28 17:35

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8420 at net/wireless/util.c:1013 cfg80211_change_iface+0xa10/0xf30 net/wireless/util.c:1013
Modules linked in:
CPU: 1 PID: 8420 Comm: syz-executor656 Not tainted 5.11.0-rc5-next-20210128-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:cfg80211_change_iface+0xa10/0xf30 net/wireless/util.c:1013
Code: 8d bd e8 05 00 00 be ff ff ff ff e8 fa 22 c6 00 31 ff 41 89 c6 89 c6 e8 be bd 37 f9 45 85 f6 0f 85 b4 f6 ff ff e8 30 b6 37 f9 <0f> 0b e9 a8 f6 ff ff e8 24 b6 37 f9 65 ff 05 8d 90 c6 77 48 c7 c0
RSP: 0018:ffffc900017bfbb8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880178ac000 RCX: 0000000000000000
RDX: ffff88801fa53800 RSI: ffffffff883b5f20 RDI: 0000000000000003
RBP: ffff888021c50000 R08: 0000000000000000 R09: ffffc900017bfc30
R10: ffffffff883b5f12 R11: 0000000000000002 R12: 0000000000000002
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000002295880(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcbcf59000 CR3: 0000000011147000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 cfg80211_wext_siwmode net/wireless/wext-compat.c:64 [inline]
 __cfg80211_wext_siwmode+0x1bb/0x200 net/wireless/wext-compat.c:1559
 ioctl_standard_call+0xcd/0x1f0 net/wireless/wext-core.c:1017
 wireless_process_ioctl+0xc8/0x4c0 net/wireless/wext-core.c:955
 wext_ioctl_dispatch net/wireless/wext-core.c:988 [inline]
 wext_ioctl_dispatch net/wireless/wext-core.c:976 [inline]
 wext_handle_ioctl+0x26b/0x280 net/wireless/wext-core.c:1049
 sock_ioctl+0x410/0x6a0 net/socket.c:1111
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl fs/ioctl.c:739 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:739
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x441529
Code: e8 ec 05 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 8b 0d fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd97527908 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffd97527930 RCX: 0000000000441529
RDX: 0000000020000000 RSI: 0000000000008b06 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000002200000000 R09: 0000002200000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000032
R13: 0000000000000000 R14: 000000000000000c R15: 0000000000000004

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/29 04:55 linux-next d03154e8bb6a 7df34f59 .config console log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in cfg80211_change_iface
2021/02/02 09:01 net-next-old 1a2b60f6f165 19e09687 .config console log report info ci-upstream-net-kasan-gce WARNING in cfg80211_change_iface
2021/01/28 11:00 net-next-old d1f3bdd4eaae eefc07f2 .config console log report info ci-upstream-net-kasan-gce WARNING in cfg80211_change_iface
2021/01/29 04:12 linux-next d03154e8bb6a 7df34f59 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in cfg80211_change_iface
* Struck through repros no longer work on HEAD.