syzbot


BUG: unable to handle kernel NULL pointer dereference in cfg80211_wext_siwrts

Status: fixed on 2020/02/18 14:31
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+34b582cf32c1db008f8e@syzkaller.appspotmail.com
Fix commit: 24953de0a5e3 cfg80211: check for set_wiphy_params
First crash: 1569d, last: 1559d
Discussions (12)
Title Replies (including bot) Last reply
[PATCH 4.14 00/65] 4.14.167-stable review 73 (73) 2020/04/20 14:15
[PATCH 5.4 000/222] 5.4.14-stable review 238 (238) 2020/01/26 16:57
[PATCH AUTOSEL 5.4 001/107] batman-adv: Fix DAT candidate selection on little endian systems 97 (97) 2020/01/24 21:08
[PATCH AUTOSEL 4.4 1/9] batman-adv: Fix DAT candidate selection on little endian systems 9 (9) 2020/01/24 14:22
[PATCH AUTOSEL 4.9 01/18] batman-adv: Fix DAT candidate selection on little endian systems 18 (18) 2020/01/24 14:21
[PATCH AUTOSEL 4.14 01/32] batman-adv: Fix DAT candidate selection on little endian systems 32 (32) 2020/01/24 14:21
[PATCH AUTOSEL 4.19 01/56] batman-adv: Fix DAT candidate selection on little endian systems 56 (56) 2020/01/24 14:20
[PATCH 4.19 000/103] 4.19.98-stable review 108 (108) 2020/01/22 20:53
[PATCH 4.4 00/76] 4.4.211-stable review 81 (81) 2020/01/22 20:52
[PATCH 4.9 00/97] 4.9.211-stable review 102 (102) 2020/01/22 20:52
[PATCH] cfg80211: check for set_wiphy_params 1 (1) 2020/01/13 11:53
BUG: unable to handle kernel NULL pointer dereference in cfg80211_wext_siwrts 4 (5) 2020/01/13 09:31

Sample crash report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 98aba067 P4D 98aba067 PUD a2965067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 11141 Comm: syz-executor.4 Not tainted 5.5.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffffc90006f8fc38 EFLAGS: 00010246
RAX: 1ffffffff10d0efe RBX: ffffffff886877f0 RCX: 0000000000040000
RDX: ffffc90012c6e000 RSI: 0000000000000008 RDI: ffff888218178540
RBP: ffffc90006f8fc88 R08: ffffffff879292df R09: ffffed1015da6fc5
R10: ffffed1015da6fc5 R11: 0000000000000000 R12: 00000000ffffffff
R13: ffff888218178540 R14: dffffc0000000000 R15: ffff888218178000
FS:  00007ff1088da700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000093e9b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rdev_set_wiphy_params net/wireless/rdev-ops.h:542 [inline]
 cfg80211_wext_siwrts+0x149/0x300 net/wireless/wext-compat.c:267
 ioctl_standard_call+0xd6/0x190 net/wireless/wext-core.c:1015
 wireless_process_ioctl net/wireless/wext-core.c:935 [inline]
 wext_ioctl_dispatch+0xec/0x320 net/wireless/wext-core.c:986
 wext_handle_ioctl+0xd3/0x1a0 net/wireless/wext-core.c:1047
 sock_ioctl+0xe0/0x690 net/socket.c:1112
 do_vfs_ioctl+0x6e2/0x19b0 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:749 [inline]
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0xe3/0x120 fs/ioctl.c:754
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45b159
Code: ad b6 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 b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ff1088d9c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ff1088da6d4 RCX: 000000000045b159
RDX: 0000000020000040 RSI: 0000000000008b22 RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000001fe R14: 00000000004c2aa8 R15: 000000000075bf2c
Modules linked in:
CR2: 0000000000000000
---[ end trace 8f8fd42f34fb5c1c ]---
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffffc90006f8fc38 EFLAGS: 00010246
RAX: 1ffffffff10d0efe RBX: ffffffff886877f0 RCX: 0000000000040000
RDX: ffffc90012c6e000 RSI: 0000000000000008 RDI: ffff888218178540
RBP: ffffc90006f8fc88 R08: ffffffff879292df R09: ffffed1015da6fc5
R10: ffffed1015da6fc5 R11: 0000000000000000 R12: 00000000ffffffff
R13: ffff888218178540 R14: dffffc0000000000 R15: ffff888218178000
FS:  00007ff1088da700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000024c97d0 CR3: 0000000093e9b000 CR4: 00000000001406e0
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/01/19 13:13 upstream 244dc2689085 bc8bc756 .config console log report ci-upstream-kasan-gce-smack-root
2020/01/14 15:38 net-old a112adafcb47 32881205 .config console log report ci-upstream-net-this-kasan-gce
2020/01/09 16:50 net-old 2f806c2a16b3 ddc3e859 .config console log report ci-upstream-net-this-kasan-gce
* Struck through repros no longer work on HEAD.