syzbot


general protection fault in ioctl_standard_call

Status: fixed on 2021/03/14 19:08
Reported-by: syzbot+bc15d5b675ec8a17e6d8@syzkaller.appspotmail.com
Fix commit: 3f33e522a07f wext: fix NULL-ptr-dereference with cfg80211's lack of commit()
First crash: 1272d, last: 1158d
Fix bisection: fixed by (bisect log) :
commit 3f33e522a07f5f8d399d509ff06f7fd87a46e176
Author: Johannes Berg <johannes.berg@intel.com>
Date: Thu Jan 21 16:16:22 2021 +0000

  wext: fix NULL-ptr-dereference with cfg80211's lack of commit()

  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in ioctl_standard_call C done 24 1176d 1272d 1/1 fixed on 2021/02/25 13:45
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2021/03/13 22:44 3h34m bisect fix linux-4.19.y job log (1)
2021/02/08 08:48 0m bisect fix linux-4.19.y error job log (0)
2021/01/09 08:24 23m bisect fix linux-4.19.y job log (0) log

Sample crash report:
wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
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: 8136 Comm: syz-executor615 Not tainted 4.19.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:call_commit_handler net/wireless/wext-core.c:900 [inline]
RIP: 0010:ioctl_standard_call+0x1f7/0x2c0 net/wireless/wext-core.c:1029
Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 c7 00 00 00 48 8b 9d e8 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 98 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0018:ffff888097767b08 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87b3eca4
RDX: 0000000000000000 RSI: ffffffff87b3ecad RDI: ffff888094f295e8
RBP: ffff888094f29400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff888097767bf0
R13: 0000000000008b04 R14: 0000000000000000 R15: 0000000000000004
FS:  0000000001269880(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb74dd3b000 CR3: 000000009a0a3000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 wireless_process_ioctl+0x376/0x4b0 net/wireless/wext-core.c:954
 wext_ioctl_dispatch net/wireless/wext-core.c:987 [inline]
 wext_ioctl_dispatch net/wireless/wext-core.c:975 [inline]
 wext_handle_ioctl+0x26b/0x280 net/wireless/wext-core.c:1048
 sock_ioctl+0x306/0x5d0 net/socket.c:1015
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
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:00007ffe1f787ff8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffe1f788020 RCX: 0000000000441529
RDX: 00000000200000c0 RSI: 0000000000008b04 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000001e00000000 R09: 0000001e00000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000032
R13: 0000000000000000 R14: 000000000000000c R15: 0000000000000004
Modules linked in:
---[ end trace 167ac498706af925 ]---
RIP: 0010:call_commit_handler net/wireless/wext-core.c:900 [inline]
RIP: 0010:ioctl_standard_call+0x1f7/0x2c0 net/wireless/wext-core.c:1029
Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 c7 00 00 00 48 8b 9d e8 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 98 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0018:ffff888097767b08 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87b3eca4
RDX: 0000000000000000 RSI: ffffffff87b3ecad RDI: ffff888094f295e8
RBP: ffff888094f29400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff888097767bf0
R13: 0000000000008b04 R14: 0000000000000000 R15: 0000000000000004
FS:  0000000001269880(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200000c0 CR3: 000000009a0a3000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/10 08:24 linux-4.19.y 4abf26854aad c090b4da .config console log report syz C ci2-linux-4-19
2020/11/26 01:35 linux-4.19.y 0c88e405c97e 3f581b43 .config console log report syz C ci2-linux-4-19
2020/11/17 20:25 linux-4.19.y 31acccdc8774 bd2a760b .config console log report syz C ci2-linux-4-19
2020/11/17 19:53 linux-4.19.y 31acccdc8774 bd2a760b .config console log report syz C ci2-linux-4-19
2020/11/17 19:33 linux-4.19.y 31acccdc8774 bd2a760b .config console log report syz C ci2-linux-4-19
2020/10/21 13:35 linux-4.19.y ad326970d25c 99c64d5c .config console log report syz C ci2-linux-4-19
2021/02/11 22:44 linux-4.19.y 811218eceeaa a5f86b15 .config console log report info ci2-linux-4-19 general protection fault in ioctl_standard_call
2020/11/26 03:51 linux-4.19.y 0c88e405c97e 3f581b43 .config console log report info ci2-linux-4-19
2020/11/24 05:37 linux-4.19.y 76bda503e640 1ab681a4 .config console log report info ci2-linux-4-19
2020/11/22 00:46 linux-4.19.y 2c746135a12e 0d27f508 .config console log report info ci2-linux-4-19
2020/11/19 21:47 linux-4.19.y 2c746135a12e 0767f13f .config console log report info ci2-linux-4-19
2020/11/17 08:22 linux-4.19.y 31acccdc8774 1bf9a662 .config console log report info ci2-linux-4-19
2020/11/17 07:17 linux-4.19.y 31acccdc8774 1bf9a662 .config console log report info ci2-linux-4-19
2020/11/02 21:01 linux-4.19.y f5d8eef067ac 7f344fa6 .config console log report info ci2-linux-4-19
2020/11/02 00:10 linux-4.19.y f5d8eef067ac 8bc4594f .config console log report info ci2-linux-4-19
2020/10/31 11:32 linux-4.19.y f5d8eef067ac 8bc4594f .config console log report info ci2-linux-4-19
2020/10/28 12:21 linux-4.19.y ad326970d25c 96e03c1c .config console log report info ci2-linux-4-19
2020/10/24 19:46 linux-4.19.y ad326970d25c a1839e81 .config console log report info ci2-linux-4-19
2020/10/22 00:33 linux-4.19.y ad326970d25c be6b1582 .config console log report info ci2-linux-4-19
2020/10/21 23:17 linux-4.19.y ad326970d25c be6b1582 .config console log report info ci2-linux-4-19
2020/10/21 11:40 linux-4.19.y ad326970d25c 99c64d5c .config console log report info ci2-linux-4-19
2020/10/21 09:41 linux-4.19.y ad326970d25c e761439e .config console log report info ci2-linux-4-19
2020/10/21 09:01 linux-4.19.y ad326970d25c e761439e .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.