syzbot


BUG: unable to handle kernel NULL pointer dereference in cfg80211_wext_siwfrag

Status: fixed on 2020/02/18 14:31
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+e8a797964a4180eb57d5@syzkaller.appspotmail.com
Fix commit: 24953de0a5e3 cfg80211: check for set_wiphy_params
First crash: 1564d, last: 1552d
Cause bisection: introduced by (bisect log) :
commit c7cdba31ed8b87526db978976392802d3f93110c
Author: Cody Schuffelen <schuffelen@google.com>
Date: Wed Nov 21 03:14:49 2018 +0000

  mac80211-next: rtnetlink wifi simulation device

Crash: BUG: unable to handle kernel NULL pointer dereference in ioctl_standard_call (log)
Repro: C syz .config
  
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_siwfrag 0 (2) 2020/01/07 10:12

Sample crash report:
device veth1_vlan entered promiscuous mode
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 985cd067 P4D 985cd067 PUD a21fd067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 10697 Comm: syz-executor749 Not tainted 5.5.0-rc5-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:ffffc90001aefa78 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff888218104540 RCX: ffffffff876a0fd1
RDX: 1ffffffff114870c RSI: 0000000000000004 RDI: ffff888218104540
RBP: ffffc90001aefab8 R08: ffff8880a258a200 R09: ffffed1015d0703d
R10: ffffed1015d0703c R11: ffff8880ae8381e3 R12: ffffffff88a436e0
R13: ffff888085299000 R14: ffffc90001aefbb0 R15: 0000000000000000
FS:  0000000002395880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000000915b4000 CR4: 00000000001406f0
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_siwfrag+0x279/0x910 net/wireless/wext-compat.c:307
 ioctl_standard_call+0xca/0x1d0 net/wireless/wext-core.c:1015
 wireless_process_ioctl.constprop.0+0x236/0x2b0 net/wireless/wext-core.c:953
 wext_ioctl_dispatch net/wireless/wext-core.c:986 [inline]
 wext_ioctl_dispatch net/wireless/wext-core.c:974 [inline]
 wext_handle_ioctl+0x106/0x1c0 net/wireless/wext-core.c:1047
 sock_ioctl+0x47d/0x790 net/socket.c:1112
 vfs_ioctl fs/ioctl.c:47 [inline]
 file_ioctl fs/ioctl.c:545 [inline]
 do_vfs_ioctl+0x977/0x14e0 fs/ioctl.c:732
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:749
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:754
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4421f9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 7b 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffdd1fec338 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004421f9
RDX: 0000000020000040 RSI: 0800000000008b24 RDI: 0000000000000003
RBP: 00007ffdd1fec350 R08: 0000000001bbbbbb R09: 0000000001bbbbbb
R10: 0000000001bbbbbb R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000403790 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: 0000000000000000
---[ end trace 6a1f2e36d4f92a1a ]---
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffffc90001aefa78 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff888218104540 RCX: ffffffff876a0fd1
RDX: 1ffffffff114870c RSI: 0000000000000004 RDI: ffff888218104540
RBP: ffffc90001aefab8 R08: ffff8880a258a200 R09: ffffed1015d0703d
R10: ffffed1015d0703c R11: ffff8880ae8381e3 R12: ffffffff88a436e0
R13: ffff888085299000 R14: ffffc90001aefbb0 R15: 0000000000000000
FS:  0000000002395880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000000915b4000 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
2020/01/08 12:26 upstream ae6088216ce4 6738e0b3 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/01/07 19:51 upstream ae6088216ce4 1bcd407e .config console log report syz C ci-upstream-kasan-gce-root
2020/01/07 02:20 net-old d89091a4930e 53430d97 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/01/07 06:43 net-next-old de1b23b9b4c1 53430d97 .config console log report syz C ci-upstream-net-kasan-gce
2020/01/12 06:52 linux-next 6c09d7dbb7d3 4c04afaa .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/01/13 06:40 net-old c9f53049d4a8 53faa9fe .config console log report ci-upstream-net-this-kasan-gce
2020/01/10 13:55 net-old e267371dd376 4de4e9f0 .config console log report ci-upstream-net-this-kasan-gce
2020/01/19 10:21 net-next-old 9aaa29494030 bc8bc756 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.