./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor100359132 <...> Warning: Permanently added '10.128.1.111' (ECDSA) to the list of known hosts. execve("./syz-executor100359132", ["./syz-executor100359132"], 0x7ffc7fe85410 /* 10 vars */) = 0 brk(NULL) = 0x5555572df000 brk(0x5555572dfc40) = 0x5555572dfc40 arch_prctl(ARCH_SET_FS, 0x5555572df300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor100359132", 4096) = 27 brk(0x555557300c40) = 0x555557300c40 brk(0x555557301000) = 0x555557301000 mprotect(0x7f6f7a6c6000, 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, 0x7fffdb99ea10) = 0 ioctl(3, UI_DEV_CREATE or USB_RAW_IOCTL_RUN, 0) = 0 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffdb99da00) = 18 [ 49.047095][ T142] usb 1-1: new high-speed USB device number 2 using dummy_hcd ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffdb99da00) = 18 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffdb99da00) = 9 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffdb99da00) = 72 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffdb99da00) = 4 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffdb99da00) = 8 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffdb99da00) = 8 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffdb99da00) = 8 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 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, 0x7f6f7a6cc3ac) = 9 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f6f7a6cc3bc) = 10 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f6f7a6cc3cc) = 12 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f6f7a6cc3dc) = 11 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f6f7a6cc3ec) = 13 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f6f7a6cc3fc) = 14 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 0 [ 49.567701][ T142] usb 1-1: New USB device found, idVendor=0cf3, idProduct=9271, bcdDevice= 1.08 [ 49.577083][ T142] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 49.585202][ T142] usb 1-1: Product: syz [ 49.589455][ T142] usb 1-1: Manufacturer: syz [ 49.594078][ T142] usb 1-1: SerialNumber: syz ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 4096 [ 49.639739][ T142] usb 1-1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 1856 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffdb99ea10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffdb99da00) = 0 [ 50.217401][ T142] usb 1-1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7fffdb99ea50) = 20 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7fffdb99ea50) = 20 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7fffdb99ea50) = 20 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7fffdb99ea50) = 20 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7fffdb99ea50) = 20 [ 51.247076][ T142] ath9k_htc 1-1:1.0: ath9k_htc: Target is unresponsive [ 51.254204][ T142] ath9k_htc: Failed to initialize the device ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7fffdb99ea50) = 20 [ 51.437043][ C0] ================================================================== [ 51.445113][ C0] BUG: KASAN: use-after-free in ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 51.452833][ C0] Read of size 4 at addr ffff8880203742e8 by task swapper/0/0 [ 51.460268][ C0] [ 51.462586][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.19.0-rc6-syzkaller-00378-gc658cabbfd32 #0 [ 51.472542][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 [ 51.482583][ C0] Call Trace: [ 51.485848][ C0] [ 51.488707][ C0] dump_stack_lvl+0xcd/0x134 [ 51.493307][ C0] print_address_description.constprop.0.cold+0xeb/0x495 [ 51.500326][ C0] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 51.505690][ C0] kasan_report.cold+0xf4/0x1c6 [ 51.510526][ C0] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 51.515911][ C0] ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 51.521094][ C0] ? ww_mutex_trylock+0x5a0/0xcb0 [ 51.526104][ C0] ? hif_usb_start+0xa0/0xa0 [ 51.530688][ C0] ? rwlock_bug.part.0+0x90/0x90 [ 51.535655][ C0] __usb_hcd_giveback_urb+0x2b0/0x5c0 [ 51.541038][ C0] usb_hcd_giveback_urb+0x367/0x410 [ 51.546236][ C0] dummy_timer+0x11f9/0x32b0 [ 51.550842][ C0] ? dummy_dequeue+0x500/0x500 [ 51.555611][ C0] ? dummy_dequeue+0x500/0x500 [ 51.560370][ C0] call_timer_fn+0x1a5/0x6b0 [ 51.564955][ C0] ? timer_fixup_activate+0x350/0x350 [ 51.570323][ C0] ? lock_downgrade+0x6e0/0x6e0 [ 51.575178][ C0] ? _raw_spin_unlock_irq+0x1f/0x40 [ 51.580377][ C0] ? _raw_spin_unlock_irq+0x1f/0x40 [ 51.585583][ C0] ? dummy_dequeue+0x500/0x500 [ 51.590349][ C0] __run_timers.part.0+0x679/0xa80 [ 51.595459][ C0] ? call_timer_fn+0x6b0/0x6b0 [ 51.600305][ C0] ? __wake_up_locked_sync_key+0x20/0x20 [ 51.605934][ C0] ? kvm_sched_clock_read+0x14/0x40 [ 51.611132][ C0] ? sched_clock_cpu+0x69/0x2b0 [ 51.615984][ C0] run_timer_softirq+0xb3/0x1d0 [ 51.620854][ C0] __do_softirq+0x29b/0x9c2 [ 51.625372][ C0] __irq_exit_rcu+0x123/0x180 [ 51.630064][ C0] irq_exit_rcu+0x5/0x20 [ 51.634389][ C0] sysvec_apic_timer_interrupt+0x93/0xc0 [ 51.640022][ C0] [ 51.642945][ C0] [ 51.645866][ C0] asm_sysvec_apic_timer_interrupt+0x16/0x20 [ 51.651942][ C0] RIP: 0010:acpi_idle_do_entry+0x1c9/0x240 [ 51.657746][ C0] Code: 89 de e8 aa eb ff f7 84 db 75 98 e8 a1 ef ff f7 e8 9c 3e 06 f8 66 90 e8 95 ef ff f7 0f 00 2d ee a3 b9 00 e8 89 ef ff f7 fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 d4 eb ff f7 48 85 db [ 51.677365][ C0] RSP: 0018:ffffffff8ba07d38 EFLAGS: 00000293 [ 51.683434][ C0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 51.691413][ C0] RDX: ffffffff8babc940 RSI: ffffffff897a7c97 RDI: 0000000000000000 [ 51.699397][ C0] RBP: ffff888145595064 R08: 0000000000000001 R09: 0000000000000001 [ 51.707545][ C0] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 51.715522][ C0] R13: ffff888145595000 R14: ffff888145595064 R15: ffff8880180cd004 [ 51.723496][ C0] ? acpi_idle_do_entry+0x1c7/0x240 [ 51.728712][ C0] ? acpi_idle_do_entry+0x1c7/0x240 [ 51.733906][ C0] acpi_idle_enter+0x369/0x510 [ 51.738692][ C0] cpuidle_enter_state+0x1b1/0xc80 [ 51.743814][ C0] cpuidle_enter+0x4a/0xa0 [ 51.748238][ C0] do_idle+0x3e8/0x590 [ 51.752313][ C0] ? arch_cpu_idle_exit+0x30/0x30 [ 51.757338][ C0] cpu_startup_entry+0x14/0x20 [ 51.762096][ C0] rest_init+0x169/0x270 [ 51.766337][ C0] ? trace_init_perf_perm_irq_work_exit+0xe/0xe [ 51.772589][ C0] arch_call_rest_init+0xf/0x14 [ 51.777525][ C0] start_kernel+0x46e/0x48f [ 51.782041][ C0] secondary_startup_64_no_verify+0xce/0xdb [ 51.787950][ C0] [ 51.790961][ C0] [ 51.793275][ C0] The buggy address belongs to the physical page: [ 51.799673][ C0] page:ffffea000080dd00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x20374 [ 51.809824][ C0] flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) [ 51.816936][ C0] raw: 00fff00000000000 0000000000000000 ffffea000080dd08 0000000000000000 [ 51.825521][ C0] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 51.834135][ C0] page dumped because: kasan: bad access detected [ 51.840569][ C0] page_owner tracks the page as freed [ 51.845928][ C0] page last allocated via order 3, migratetype Unmovable, gfp_mask 0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), pid 142, tgid 142 (kworker/0:2), ts 50228779095, free_ts 51254175198 [ 51.863750][ C0] get_page_from_freelist+0x1290/0x3b70 [ 51.869323][ C0] __alloc_pages+0x1c7/0x510 [ 51.873927][ C0] alloc_pages+0x1aa/0x310 [ 51.878340][ C0] kmalloc_order+0x34/0xf0 [ 51.882752][ C0] kmalloc_order_trace+0x14/0x120 [ 51.887784][ C0] wiphy_new_nm+0x6f0/0x2080 [ 51.892377][ C0] ieee80211_alloc_hw_nm+0x373/0x2270 [ 51.897756][ C0] ath9k_htc_probe_device+0x97/0x1f00 [ 51.903128][ C0] ath9k_htc_hw_init+0x31/0x60 [ 51.907976][ C0] ath9k_hif_usb_firmware_cb+0x274/0x530 [ 51.913606][ C0] request_firmware_work_func+0x12c/0x230 [ 51.920547][ C0] process_one_work+0x996/0x1610 [ 51.925482][ C0] worker_thread+0x665/0x1080 [ 51.930153][ C0] kthread+0x2e9/0x3a0 [ 51.934225][ C0] ret_from_fork+0x1f/0x30 [ 51.938648][ C0] page last free stack trace: [ 51.943306][ C0] free_pcp_prepare+0x549/0xd20 [ 51.948150][ C0] free_unref_page+0x19/0x6a0 [ 51.952833][ C0] device_release+0x9f/0x240 [ 51.957415][ C0] kobject_put+0x1c8/0x540 [ 51.961830][ C0] put_device+0x1b/0x30 [ 51.965976][ C0] ath9k_htc_probe_device+0x1c7/0x1f00 [ 51.971429][ C0] ath9k_htc_hw_init+0x31/0x60 [ 51.976189][ C0] ath9k_hif_usb_firmware_cb+0x274/0x530 [ 51.981829][ C0] request_firmware_work_func+0x12c/0x230 [ 51.987547][ C0] process_one_work+0x996/0x1610 [ 51.992486][ C0] worker_thread+0x665/0x1080 [ 51.997155][ C0] kthread+0x2e9/0x3a0 [ 52.001225][ C0] ret_from_fork+0x1f/0x30 [ 52.005637][ C0] [ 52.007950][ C0] Memory state around the buggy address: [ 52.013568][ C0] ffff888020374180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 52.021618][ C0] ffff888020374200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 52.029672][ C0] >ffff888020374280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 52.037734][ C0] ^ [ 52.045190][ C0] ffff888020374300: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 52.053241][ C0] ffff888020374380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 52.061290][ C0] ================================================================== [ 52.069335][ C0] Kernel panic - not syncing: panic_on_warn set ... [ 52.075906][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.19.0-rc6-syzkaller-00378-gc658cabbfd32 #0 [ 52.085627][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 [ 52.095674][ C0] Call Trace: [ 52.099120][ C0] [ 52.101958][ C0] dump_stack_lvl+0xcd/0x134 [ 52.106553][ C0] panic+0x2d7/0x636 [ 52.110460][ C0] ? panic_print_sys_info.part.0+0x10b/0x10b [ 52.116451][ C0] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 52.121822][ C0] end_report.part.0+0x3f/0x7c [ 52.126595][ C0] kasan_report.cold+0x93/0x1c6 [ 52.131446][ C0] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 52.136830][ C0] ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 52.142026][ C0] ? ww_mutex_trylock+0x5a0/0xcb0 [ 52.147053][ C0] ? hif_usb_start+0xa0/0xa0 [ 52.151642][ C0] ? rwlock_bug.part.0+0x90/0x90 [ 52.156580][ C0] __usb_hcd_giveback_urb+0x2b0/0x5c0 [ 52.161949][ C0] usb_hcd_giveback_urb+0x367/0x410 [ 52.167144][ C0] dummy_timer+0x11f9/0x32b0 [ 52.171751][ C0] ? dummy_dequeue+0x500/0x500 [ 52.176529][ C0] ? dummy_dequeue+0x500/0x500 [ 52.181293][ C0] call_timer_fn+0x1a5/0x6b0 [ 52.185878][ C0] ? timer_fixup_activate+0x350/0x350 [ 52.191253][ C0] ? lock_downgrade+0x6e0/0x6e0 [ 52.196104][ C0] ? _raw_spin_unlock_irq+0x1f/0x40 [ 52.201313][ C0] ? _raw_spin_unlock_irq+0x1f/0x40 [ 52.206509][ C0] ? dummy_dequeue+0x500/0x500 [ 52.211282][ C0] __run_timers.part.0+0x679/0xa80 [ 52.216392][ C0] ? call_timer_fn+0x6b0/0x6b0 [ 52.221159][ C0] ? __wake_up_locked_sync_key+0x20/0x20 [ 52.226793][ C0] ? kvm_sched_clock_read+0x14/0x40 [ 52.231998][ C0] ? sched_clock_cpu+0x69/0x2b0 [ 52.236846][ C0] run_timer_softirq+0xb3/0x1d0 [ 52.241714][ C0] __do_softirq+0x29b/0x9c2 [ 52.246310][ C0] __irq_exit_rcu+0x123/0x180 [ 52.250982][ C0] irq_exit_rcu+0x5/0x20 [ 52.255222][ C0] sysvec_apic_timer_interrupt+0x93/0xc0 [ 52.260853][ C0] [ 52.263781][ C0] [ 52.266703][ C0] asm_sysvec_apic_timer_interrupt+0x16/0x20 [ 52.272690][ C0] RIP: 0010:acpi_idle_do_entry+0x1c9/0x240 [ 52.278494][ C0] Code: 89 de e8 aa eb ff f7 84 db 75 98 e8 a1 ef ff f7 e8 9c 3e 06 f8 66 90 e8 95 ef ff f7 0f 00 2d ee a3 b9 00 e8 89 ef ff f7 fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 d4 eb ff f7 48 85 db [ 52.298181][ C0] RSP: 0018:ffffffff8ba07d38 EFLAGS: 00000293 [ 52.304238][ C0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 52.312204][ C0] RDX: ffffffff8babc940 RSI: ffffffff897a7c97 RDI: 0000000000000000 [ 52.320166][ C0] RBP: ffff888145595064 R08: 0000000000000001 R09: 0000000000000001 [ 52.328231][ C0] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 52.336193][ C0] R13: ffff888145595000 R14: ffff888145595064 R15: ffff8880180cd004 [ 52.344162][ C0] ? acpi_idle_do_entry+0x1c7/0x240 [ 52.349367][ C0] ? acpi_idle_do_entry+0x1c7/0x240 [ 52.354559][ C0] acpi_idle_enter+0x369/0x510 [ 52.359334][ C0] cpuidle_enter_state+0x1b1/0xc80 [ 52.364445][ C0] cpuidle_enter+0x4a/0xa0 [ 52.368861][ C0] do_idle+0x3e8/0x590 [ 52.372925][ C0] ? arch_cpu_idle_exit+0x30/0x30 [ 52.378471][ C0] cpu_startup_entry+0x14/0x20 [ 52.383231][ C0] rest_init+0x169/0x270 [ 52.387475][ C0] ? trace_init_perf_perm_irq_work_exit+0xe/0xe [ 52.393717][ C0] arch_call_rest_init+0xf/0x14 [ 52.398570][ C0] start_kernel+0x46e/0x48f [ 52.403072][ C0] secondary_startup_64_no_verify+0xce/0xdb [ 52.408994][ C0] [ 52.412065][ C0] Kernel Offset: disabled [ 52.416381][ C0] Rebooting in 86400 seconds..