./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1322635247 <...> DUID 00:04:53:46:a9:9d:03:7a:46:b2:48:ff:4a:ea:3f:46:f2:43 forked to background, child pid 3178 [ 27.566277][ T3179] 8021q: adding VLAN 0 to HW filter on device bond0 [ 27.577833][ T3179] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.10.25' (ECDSA) to the list of known hosts. execve("./syz-executor1322635247", ["./syz-executor1322635247"], 0x7fff012c5f30 /* 10 vars */) = 0 brk(NULL) = 0x555555907000 brk(0x555555907c40) = 0x555555907c40 arch_prctl(ARCH_SET_FS, 0x555555907300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1322635247", 4096) = 28 brk(0x555555928c40) = 0x555555928c40 brk(0x555555929000) = 0x555555929000 mprotect(0x7f836967f000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 openat(AT_FDCWD, "/dev/raw-gadget", O_RDWR) = 3 ioctl(3, USB_RAW_IOCTL_INIT, 0x7ffffddf41f0) = 0 ioctl(3, UI_DEV_CREATE or USB_RAW_IOCTL_RUN, 0) = 0 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffffddf31e0) = 18 syzkaller login: [ 51.715636][ T1672] usb 1-1: new high-speed USB device number 2 using dummy_hcd ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffffddf31e0) = 18 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffffddf31e0) = 9 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffffddf31e0) = 72 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffffddf31e0) = 4 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffffddf31e0) = 8 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffffddf31e0) = 8 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffffddf31e0) = 8 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_VBUS_DRAW, 0xfa) = 0 ioctl(3, USB_RAW_IOCTL_CONFIGURE, 0) = 0 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f83696853ac) = 9 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f83696853bc) = 10 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f83696853cc) = 12 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f83696853dc) = 11 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f83696853ec) = 13 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f83696853fc) = 14 [ 52.236325][ T1672] usb 1-1: New USB device found, idVendor=0cf3, idProduct=9271, bcdDevice= 1.08 [ 52.245698][ T1672] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 52.253692][ T1672] usb 1-1: Product: syz [ 52.257900][ T1672] usb 1-1: Manufacturer: syz [ 52.262508][ T1672] usb 1-1: SerialNumber: syz ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 0 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 [ 52.327444][ T1672] usb 1-1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 1856 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffffddf41f0) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffffddf31e0) = 0 [ 52.915805][ T1672] usb 1-1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7ffffddf4230) = 4 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7ffffddf4230) = 4 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7ffffddf4230) = 4 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7ffffddf4230) = 4 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7ffffddf4230) = 4 [ 53.955642][ T1672] ath9k_htc 1-1:1.0: ath9k_htc: Target is unresponsive [ 53.962759][ T1672] ath9k_htc: Failed to initialize the device ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7ffffddf4230) = 4 [ 54.135622][ C1] ================================================================== [ 54.143693][ C1] BUG: KASAN: use-after-free in ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 54.151406][ C1] Read of size 4 at addr ffff88801f624448 by task swapper/1/0 [ 54.158839][ C1] [ 54.161148][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0 [ 54.170323][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 [ 54.180358][ C1] Call Trace: [ 54.183620][ C1] [ 54.186449][ C1] dump_stack_lvl+0xcd/0x134 [ 54.191032][ C1] print_report.cold+0x2ba/0x719 [ 54.195958][ C1] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 54.201316][ C1] kasan_report+0xbe/0x1f0 [ 54.205718][ C1] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 54.211072][ C1] ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 54.216252][ C1] ? perf_trace_contention_begin+0x360/0x3a0 [ 54.222219][ C1] ? hif_usb_start+0xa0/0xa0 [ 54.226790][ C1] ? rwlock_bug.part.0+0x90/0x90 [ 54.231714][ C1] __usb_hcd_giveback_urb+0x2b0/0x5c0 [ 54.237074][ C1] usb_hcd_giveback_urb+0x367/0x410 [ 54.242259][ C1] dummy_timer+0x11ff/0x32c0 [ 54.246840][ C1] ? dummy_dequeue+0x500/0x500 [ 54.251586][ C1] ? dummy_dequeue+0x500/0x500 [ 54.256332][ C1] call_timer_fn+0x1a0/0x6b0 [ 54.260904][ C1] ? timer_fixup_activate+0x350/0x350 [ 54.266263][ C1] ? lock_downgrade+0x6e0/0x6e0 [ 54.271101][ C1] ? _raw_spin_unlock_irq+0x1f/0x40 [ 54.276289][ C1] ? _raw_spin_unlock_irq+0x1f/0x40 [ 54.281476][ C1] ? dummy_dequeue+0x500/0x500 [ 54.286224][ C1] __run_timers.part.0+0x674/0xa80 [ 54.291328][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 54.296086][ C1] ? set_next_task_stop+0x140/0x140 [ 54.301280][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 54.306470][ C1] ? sched_clock_cpu+0x69/0x2b0 [ 54.311323][ C1] run_timer_softirq+0xb3/0x1d0 [ 54.316167][ C1] __do_softirq+0x29b/0x9c2 [ 54.320672][ C1] __irq_exit_rcu+0x123/0x180 [ 54.325400][ C1] irq_exit_rcu+0x5/0x20 [ 54.329627][ C1] sysvec_apic_timer_interrupt+0x93/0xc0 [ 54.335249][ C1] [ 54.338172][ C1] [ 54.341133][ C1] asm_sysvec_apic_timer_interrupt+0x1b/0x20 [ 54.347102][ C1] RIP: 0010:acpi_idle_do_entry+0x1c9/0x240 [ 54.352909][ C1] Code: 89 de e8 9a 7a fe f7 84 db 75 98 e8 01 7e fe f7 e8 ec cc 04 f8 66 90 e8 f5 7d fe f7 0f 00 2d 7e 28 b8 00 e8 e9 7d fe f7 fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 c4 7a fe f7 48 85 db [ 54.372511][ C1] RSP: 0018:ffffc90000177d20 EFLAGS: 00000293 [ 54.378563][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 54.386514][ C1] RDX: ffff888011a69d40 RSI: ffffffff897c3927 RDI: 0000000000000000 [ 54.394477][ C1] RBP: ffff888011a8b064 R08: 0000000000000001 R09: 0000000000000001 [ 54.402432][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 54.410385][ C1] R13: ffff888011a8b000 R14: ffff888011a8b064 R15: ffff88801ba19804 [ 54.418341][ C1] ? acpi_idle_do_entry+0x1c7/0x240 [ 54.423535][ C1] acpi_idle_enter+0x364/0x500 [ 54.428288][ C1] cpuidle_enter_state+0x1b1/0xc80 [ 54.433390][ C1] cpuidle_enter+0x4a/0xa0 [ 54.437807][ C1] do_idle+0x3e8/0x590 [ 54.441897][ C1] ? arch_cpu_idle_exit+0x30/0x30 [ 54.446951][ C1] ? _raw_spin_unlock_irq+0x11/0x40 [ 54.452185][ C1] ? lockdep_hardirqs_on+0x79/0x100 [ 54.457402][ C1] cpu_startup_entry+0x14/0x20 [ 54.462154][ C1] start_secondary+0x21d/0x2b0 [ 54.466914][ C1] ? set_cpu_sibling_map+0x1ef0/0x1ef0 [ 54.472362][ C1] secondary_startup_64_no_verify+0xce/0xdb [ 54.478245][ C1] [ 54.481244][ C1] [ 54.483550][ C1] The buggy address belongs to the physical page: [ 54.489948][ C1] page:ffffea00007d8900 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1f624 [ 54.500076][ C1] flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) [ 54.507169][ C1] raw: 00fff00000000000 0000000000000000 ffffea00007d8908 0000000000000000 [ 54.515746][ C1] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 54.524320][ C1] page dumped because: kasan: bad access detected [ 54.530711][ C1] page_owner tracks the page as freed [ 54.536057][ C1] page last allocated via order 3, migratetype Unmovable, gfp_mask 0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), pid 1672, tgid 1672 (kworker/1:2), ts 52926717416, free_ts 53962731537 [ 54.553848][ C1] get_page_from_freelist+0x210d/0x3a30 [ 54.559424][ C1] __alloc_pages+0x1c7/0x510 [ 54.564017][ C1] alloc_pages+0x1aa/0x310 [ 54.568416][ C1] kmalloc_order+0x34/0xf0 [ 54.572817][ C1] kmalloc_order_trace+0x13/0x120 [ 54.577824][ C1] wiphy_new_nm+0x6fc/0x2090 [ 54.582394][ C1] ieee80211_alloc_hw_nm+0x428/0x2330 [ 54.587751][ C1] ath9k_htc_probe_device+0x97/0x1f00 [ 54.593106][ C1] ath9k_htc_hw_init+0x31/0x60 [ 54.597850][ C1] ath9k_hif_usb_firmware_cb+0x274/0x530 [ 54.603465][ C1] request_firmware_work_func+0x12c/0x230 [ 54.609170][ C1] process_one_work+0x991/0x1610 [ 54.614091][ C1] worker_thread+0x665/0x1080 [ 54.618750][ C1] kthread+0x2e9/0x3a0 [ 54.622798][ C1] ret_from_fork+0x1f/0x30 [ 54.627200][ C1] page last free stack trace: [ 54.631847][ C1] free_pcp_prepare+0x5e4/0xd20 [ 54.636681][ C1] free_unref_page+0x19/0x4d0 [ 54.641351][ C1] device_release+0x9f/0x240 [ 54.645923][ C1] kobject_put+0x1be/0x4c0 [ 54.650317][ C1] put_device+0x1b/0x30 [ 54.654453][ C1] ath9k_htc_probe_device+0x1c7/0x1f00 [ 54.659915][ C1] ath9k_htc_hw_init+0x31/0x60 [ 54.664697][ C1] ath9k_hif_usb_firmware_cb+0x274/0x530 [ 54.670315][ C1] request_firmware_work_func+0x12c/0x230 [ 54.676020][ C1] process_one_work+0x991/0x1610 [ 54.680940][ C1] worker_thread+0x665/0x1080 [ 54.685601][ C1] kthread+0x2e9/0x3a0 [ 54.689664][ C1] ret_from_fork+0x1f/0x30 [ 54.694063][ C1] [ 54.696365][ C1] Memory state around the buggy address: [ 54.701977][ C1] ffff88801f624300: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 54.710032][ C1] ffff88801f624380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 54.718085][ C1] >ffff88801f624400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 54.726120][ C1] ^ [ 54.732524][ C1] ffff88801f624480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 54.740572][ C1] ffff88801f624500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 54.748612][ C1] ================================================================== [ 54.756658][ C1] Kernel panic - not syncing: panic_on_warn set ... [ 54.763221][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0 [ 54.772402][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 [ 54.782438][ C1] Call Trace: [ 54.785699][ C1] [ 54.788529][ C1] dump_stack_lvl+0xcd/0x134 [ 54.793114][ C1] panic+0x2d7/0x636 [ 54.796999][ C1] ? panic_print_sys_info.part.0+0x10b/0x10b [ 54.802967][ C1] ? print_report.cold+0x4f6/0x719 [ 54.808067][ C1] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 54.813466][ C1] end_report.part.0+0x3f/0x7c [ 54.818220][ C1] kasan_report.cold+0x8/0x12 [ 54.822903][ C1] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 54.828258][ C1] ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 54.833439][ C1] ? perf_trace_contention_begin+0x360/0x3a0 [ 54.839410][ C1] ? hif_usb_start+0xa0/0xa0 [ 54.843982][ C1] ? rwlock_bug.part.0+0x90/0x90 [ 54.848905][ C1] __usb_hcd_giveback_urb+0x2b0/0x5c0 [ 54.854269][ C1] usb_hcd_giveback_urb+0x367/0x410 [ 54.859457][ C1] dummy_timer+0x11ff/0x32c0 [ 54.864038][ C1] ? dummy_dequeue+0x500/0x500 [ 54.868784][ C1] ? dummy_dequeue+0x500/0x500 [ 54.873528][ C1] call_timer_fn+0x1a0/0x6b0 [ 54.878142][ C1] ? timer_fixup_activate+0x350/0x350 [ 54.883495][ C1] ? lock_downgrade+0x6e0/0x6e0 [ 54.888338][ C1] ? _raw_spin_unlock_irq+0x1f/0x40 [ 54.893525][ C1] ? _raw_spin_unlock_irq+0x1f/0x40 [ 54.898712][ C1] ? dummy_dequeue+0x500/0x500 [ 54.903468][ C1] __run_timers.part.0+0x674/0xa80 [ 54.908565][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 54.913324][ C1] ? set_next_task_stop+0x140/0x140 [ 54.918512][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 54.923699][ C1] ? sched_clock_cpu+0x69/0x2b0 [ 54.928535][ C1] run_timer_softirq+0xb3/0x1d0 [ 54.933374][ C1] __do_softirq+0x29b/0x9c2 [ 54.937867][ C1] __irq_exit_rcu+0x123/0x180 [ 54.942538][ C1] irq_exit_rcu+0x5/0x20 [ 54.946768][ C1] sysvec_apic_timer_interrupt+0x93/0xc0 [ 54.952402][ C1] [ 54.955317][ C1] [ 54.958231][ C1] asm_sysvec_apic_timer_interrupt+0x1b/0x20 [ 54.964195][ C1] RIP: 0010:acpi_idle_do_entry+0x1c9/0x240 [ 54.969991][ C1] Code: 89 de e8 9a 7a fe f7 84 db 75 98 e8 01 7e fe f7 e8 ec cc 04 f8 66 90 e8 f5 7d fe f7 0f 00 2d 7e 28 b8 00 e8 e9 7d fe f7 fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 c4 7a fe f7 48 85 db [ 54.989579][ C1] RSP: 0018:ffffc90000177d20 EFLAGS: 00000293 [ 54.995629][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 55.003583][ C1] RDX: ffff888011a69d40 RSI: ffffffff897c3927 RDI: 0000000000000000 [ 55.011562][ C1] RBP: ffff888011a8b064 R08: 0000000000000001 R09: 0000000000000001 [ 55.019515][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 55.027466][ C1] R13: ffff888011a8b000 R14: ffff888011a8b064 R15: ffff88801ba19804 [ 55.035421][ C1] ? acpi_idle_do_entry+0x1c7/0x240 [ 55.040611][ C1] acpi_idle_enter+0x364/0x500 [ 55.045366][ C1] cpuidle_enter_state+0x1b1/0xc80 [ 55.050465][ C1] cpuidle_enter+0x4a/0xa0 [ 55.054866][ C1] do_idle+0x3e8/0x590 [ 55.058922][ C1] ? arch_cpu_idle_exit+0x30/0x30 [ 55.063937][ C1] ? _raw_spin_unlock_irq+0x11/0x40 [ 55.069124][ C1] ? lockdep_hardirqs_on+0x79/0x100 [ 55.074307][ C1] cpu_startup_entry+0x14/0x20 [ 55.079054][ C1] start_secondary+0x21d/0x2b0 [ 55.083806][ C1] ? set_cpu_sibling_map+0x1ef0/0x1ef0 [ 55.089254][ C1] secondary_startup_64_no_verify+0xce/0xdb [ 55.095135][ C1] [ 55.098299][ C1] Kernel Offset: disabled [ 55.102614][ C1] Rebooting in 86400 seconds..