syzbot


general protection fault in wext_handle_ioctl

Status: fixed on 2021/03/10 01:48
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+8b2a88a09653d4084179@syzkaller.appspotmail.com
Fix commit: 5122565188ba wext: fix NULL-ptr-dereference with cfg80211's lack of commit()
First crash: 1237d, last: 1148d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: general protection fault in call_commit_handler (log)
Repro: C syz .config
  
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 5.10 000/142] 5.10.13-rc1 review 154 (154) 2021/02/03 23:03
[PATCH 4.19 00/37] 4.19.173-rc1 review 43 (43) 2021/02/03 20:42
[PATCH 5.4 00/61] 5.4.95-rc1 review 65 (65) 2021/02/03 20:42
[PATCH 4.14 00/30] 4.14.219-rc1 review 33 (33) 2021/02/03 20:41
[PATCH 4.9 00/32] 4.9.255-rc1 review 36 (36) 2021/02/03 20:41
[PATCH 4.4 00/28] 4.4.255-rc1 review 37 (37) 2021/02/03 20:40
[PATCH] wext: fix NULL-ptr-dereference with cfg80211's lack of commit() 1 (1) 2021/01/21 16:16
general protection fault in wext_handle_ioctl 0 (2) 2020/11/15 19:30
Last patch testing requests (4)
Created Duration User Patch Repo Result
2020/12/19 16:49 7m anmol.karan123@gmail.com patch upstream error OK
2020/12/19 12:53 19m anmol.karan123@gmail.com upstream error OK
2020/11/19 19:50 12m anmol.karan123@gmail.com upstream report log
2020/11/19 19:18 19m anmol.karan123@gmail.com patch upstream OK
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2021/01/25 15:00 15m bisect fix upstream job log (0) log
2020/12/26 14:45 15m bisect fix upstream job log (0) log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 8462 Comm: syz-executor301 Not tainted 5.10.0-rc3-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 net/wireless/wext-core.c:1029 [inline]
RIP: 0010:wireless_process_ioctl net/wireless/wext-core.c:954 [inline]
RIP: 0010:wext_ioctl_dispatch net/wireless/wext-core.c:987 [inline]
RIP: 0010:wext_handle_ioctl+0x974/0xb20 net/wireless/wext-core.c:1048
Code: e8 61 1d a3 f8 eb 6c 48 8b 44 24 18 42 80 3c 20 00 48 8b 5c 24 20 74 08 48 89 df e8 26 16 e5 f8 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 0d 16 e5 f8 48 8b 1b 48 89 d8 48
RSP: 0018:ffffc9000143fe00 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff88d1ed88
RDX: ffff8880290e8000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff88801b738000 R08: ffffffff88d1edaf R09: ffffed10036e7009
R10: ffffed10036e7009 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000008b04
FS:  0000000001eb8880(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd3b2be000 CR3: 0000000024723000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 sock_ioctl+0xdc/0x690 net/socket.c:1119
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0xfb/0x170 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:00007ffeab8016d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffeab801700 RCX: 0000000000441529
RDX: 00000000200000c0 RSI: 0000000000008b04 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000002000000000 R09: 0000002000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000032
R13: 0000000000000000 R14: 000000000000000c R15: 0000000000000004
Modules linked in:
---[ end trace d1b799cc496836f9 ]---
RIP: 0010:call_commit_handler net/wireless/wext-core.c:900 [inline]
RIP: 0010:ioctl_standard_call net/wireless/wext-core.c:1029 [inline]
RIP: 0010:wireless_process_ioctl net/wireless/wext-core.c:954 [inline]
RIP: 0010:wext_ioctl_dispatch net/wireless/wext-core.c:987 [inline]
RIP: 0010:wext_handle_ioctl+0x974/0xb20 net/wireless/wext-core.c:1048
Code: e8 61 1d a3 f8 eb 6c 48 8b 44 24 18 42 80 3c 20 00 48 8b 5c 24 20 74 08 48 89 df e8 26 16 e5 f8 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 0d 16 e5 f8 48 8b 1b 48 89 d8 48
RSP: 0018:ffffc9000143fe00 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff88d1ed88
RDX: ffff8880290e8000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff88801b738000 R08: ffffffff88d1edaf R09: ffffed10036e7009
R10: ffffed10036e7009 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000008b04
FS:  0000000001eb8880(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd3b2be000 CR3: 0000000024723000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/15 19:29 upstream e28c0d7c92c8 1bf9a662 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/11/26 14:45 upstream fa02fcd94b0c 1d2b823e .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/26 13:07 upstream fa02fcd94b0c 1d2b823e .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/24 06:15 upstream d5beb3140f91 1ab681a4 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/17 08:40 upstream 9c87c9f41245 1bf9a662 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/17 07:10 upstream 9c87c9f41245 1bf9a662 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/15 19:15 upstream e28c0d7c92c8 1bf9a662 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/08 06:04 upstream 4429f14aeea9 64069d48 .config console log report info ci-upstream-kasan-gce-smack-root
2020/10/28 12:27 upstream 8c2ab803e565 96e03c1c .config console log report info ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.