syzbot


WARNING in wireless_send_event

Status: upstream: reported C repro on 2022/09/23 16:05
Reported-by: syzbot+473754e5af963cf014cf@syzkaller.appspotmail.com
Fix commit: e3e6e1d16a4c wifi: wext: use flex array destination for memcpy()
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 74d, last: 34d
Patch testing requests:
Created Duration User Patch Repo Result
2022/09/26 11:59 16m yin31149@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git aaa11ce2ffc84166d11c4d2ac88c3fcf75425fbd OK log
2022/09/24 16:14 8m yin31149@gmail.com patch linux-next error
2022/09/24 07:10 16m yin31149@gmail.com patch linux-next OK log

Sample crash report:
------------[ cut here ]------------
memcpy: detected field-spanning write (size 8) of single field "&compat_event->pointer" at net/wireless/wext-core.c:623 (size 4)
WARNING: CPU: 0 PID: 3607 at net/wireless/wext-core.c:623 wireless_send_event+0xab5/0xca0 net/wireless/wext-core.c:623
Modules linked in:
CPU: 1 PID: 3607 Comm: syz-executor659 Not tainted 6.0.0-rc6-next-20220921-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2022
RIP: 0010:wireless_send_event+0xab5/0xca0 net/wireless/wext-core.c:623
Code: fa ff ff e8 cd b9 db f8 b9 04 00 00 00 4c 89 e6 48 c7 c2 e0 56 11 8b 48 c7 c7 20 56 11 8b c6 05 94 8e 2a 05 01 e8 b8 b0 a6 00 <0f> 0b e9 9b fa ff ff e8 6f ef 27 f9 e9 a6 fd ff ff e8 c5 ef 27 f9
RSP: 0018:ffffc90003b2fbc0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888021d157c0 RSI: ffffffff81620348 RDI: fffff52000765f6a
RBP: ffff88801e15c780 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 20676e696e6e6170 R12: 0000000000000008
R13: ffff888025a72640 R14: ffff8880225d402c R15: ffff8880225d4034
FS:  0000555556bd9300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbda677dfb8 CR3: 000000007b976000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ioctl_standard_call+0x155/0x1f0 net/wireless/wext-core.c:1022
 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+0x285/0x640 net/socket.c:1220
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fbda6736af9
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd45e80138 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fbda6736af9
RDX: 0000000020000000 RSI: 0000000000008b04 RDI: 0000000000000003
RBP: 00007fbda66faca0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fbda66fad30
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (210):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/09/21 22:17 linux-next 483fed3b5dc8 380f82fb .config log report syz C WARNING in wireless_send_event
ci-upstream-kasan-gce-root 2022/10/16 20:38 upstream 55be6084c8e0 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-kasan-gce-selinux-root 2022/10/15 12:32 upstream 55be6084c8e0 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-kasan-gce-root 2022/10/15 11:57 upstream 55be6084c8e0 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-kasan-gce-selinux-root 2022/10/15 05:34 upstream 55be6084c8e0 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-kasan-gce-root 2022/10/15 02:35 upstream 55be6084c8e0 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-kasan-gce-selinux-root 2022/10/14 13:39 upstream 55be6084c8e0 4954e4b2 .config log report info WARNING in wireless_send_event
ci-upstream-kasan-gce-root 2022/10/12 21:58 upstream 55be6084c8e0 89b5a509 .config log report info WARNING in wireless_send_event
ci-upstream-kasan-gce-selinux-root 2022/10/12 20:19 upstream 55be6084c8e0 89b5a509 .config log report info WARNING in wireless_send_event
ci-upstream-kasan-gce-selinux-root 2022/10/12 14:40 upstream 55be6084c8e0 16a9c9e0 .config log report info WARNING in wireless_send_event
ci-upstream-kasan-gce-root 2022/10/09 03:32 upstream a6afa4199d3d aea5da89 .config log report info WARNING in wireless_send_event
ci-qemu-upstream 2022/10/05 03:20 upstream 0326074ff465 267e3bb1 .config log report info WARNING in wireless_send_event
ci-qemu-upstream-386 2022/10/08 12:55 upstream e8bc52cb8df8 aea5da89 .config log report info WARNING in wireless_send_event
ci-upstream-net-this-kasan-gce 2022/10/11 22:18 net 0cf3cae9697b 1353c374 .config log report info WARNING in wireless_send_event
ci-upstream-net-this-kasan-gce 2022/10/10 20:59 net af7d23f9d96a aea5da89 .config log report info WARNING in wireless_send_event
ci-upstream-net-this-kasan-gce 2022/10/10 07:36 net 557f050166e5 aea5da89 .config log report info WARNING in wireless_send_event
ci-upstream-net-this-kasan-gce 2022/10/09 16:06 net aabf6155dfb8 aea5da89 .config log report info WARNING in wireless_send_event
ci-upstream-net-this-kasan-gce 2022/10/09 14:36 net aabf6155dfb8 aea5da89 .config log report info WARNING in wireless_send_event
ci-upstream-net-this-kasan-gce 2022/10/08 18:03 net aabf6155dfb8 aea5da89 .config log report info WARNING in wireless_send_event
ci-upstream-net-this-kasan-gce 2022/10/08 15:07 net aabf6155dfb8 aea5da89 .config log report info WARNING in wireless_send_event
ci-upstream-net-this-kasan-gce 2022/10/08 02:41 net aabf6155dfb8 0de35f24 .config log report info WARNING in wireless_send_event
ci-upstream-bpf-next-kasan-gce 2022/10/31 04:39 bpf-next 79d878f7ad8e 2a71366b .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/18 14:07 net-next 0326074ff465 754863b4 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/17 12:35 net-next 0326074ff465 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/17 07:05 net-next 0326074ff465 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/17 04:34 net-next 0326074ff465 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/17 02:45 net-next 0326074ff465 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/17 01:41 net-next 0326074ff465 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/16 22:05 net-next 0326074ff465 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/16 18:06 net-next 0326074ff465 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/15 22:36 net-next 0326074ff465 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/15 10:57 net-next 0326074ff465 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/14 21:55 net-next 0326074ff465 4954e4b2 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/14 18:06 net-next 0326074ff465 4954e4b2 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/14 10:00 net-next 0326074ff465 4954e4b2 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/14 08:32 net-next 0326074ff465 4954e4b2 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/14 03:41 net-next 0326074ff465 adf90437 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/14 02:27 net-next 0326074ff465 adf90437 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/14 00:22 net-next 0326074ff465 adf90437 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/13 18:24 net-next 0326074ff465 adf90437 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/13 16:34 net-next 0326074ff465 adf90437 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/13 11:03 net-next 0326074ff465 adf90437 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/12 18:15 net-next 0326074ff465 89b5a509 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/12 16:14 net-next 0326074ff465 89b5a509 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/12 13:08 net-next 0326074ff465 16a9c9e0 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/12 11:06 net-next 0326074ff465 16a9c9e0 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/12 02:57 net-next 0326074ff465 16a9c9e0 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/12 01:03 net-next 0326074ff465 1353c374 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/11 13:18 net-next 0326074ff465 2b253ced .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/11 05:13 net-next 0326074ff465 2b253ced .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/09 02:16 net-next 0326074ff465 aea5da89 .config log report info WARNING in wireless_send_event
ci-upstream-net-kasan-gce 2022/10/08 08:57 net-next 0326074ff465 0de35f24 .config log report info WARNING in wireless_send_event
ci-upstream-bpf-next-kasan-gce 2022/10/07 18:04 bpf-next 2e30960097f6 0de35f24 .config log report info WARNING in wireless_send_event
ci-upstream-linux-next-kasan-gce-root 2022/10/15 13:39 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in wireless_send_event
ci-upstream-linux-next-kasan-gce-root 2022/10/12 07:16 linux-next aaa11ce2ffc8 16a9c9e0 .config log report info WARNING in wireless_send_event
ci-upstream-linux-next-kasan-gce-root 2022/10/09 16:25 linux-next aaa11ce2ffc8 aea5da89 .config log report info WARNING in wireless_send_event
ci-upstream-linux-next-kasan-gce-root 2022/10/08 17:01 linux-next aaa11ce2ffc8 aea5da89 .config log report info WARNING in wireless_send_event
ci-upstream-linux-next-kasan-gce-root 2022/09/21 11:19 linux-next 483fed3b5dc8 380f82fb .config log report info WARNING in wireless_send_event
* Struck through repros no longer work on HEAD.