./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2508766092 <...> Warning: Permanently added '10.128.0.18' (ECDSA) to the list of known hosts. execve("./syz-executor2508766092", ["./syz-executor2508766092"], 0x7ffcca5df3a0 /* 10 vars */) = 0 brk(NULL) = 0x555556e85000 brk(0x555556e85c40) = 0x555556e85c40 arch_prctl(ARCH_SET_FS, 0x555556e85300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor2508766092", 4096) = 28 brk(0x555556ea6c40) = 0x555556ea6c40 brk(0x555556ea7000) = 0x555556ea7000 mprotect(0x7f4051b93000, 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, 0x7ffe0e7bec10) = 0 ioctl(3, UI_DEV_CREATE or USB_RAW_IOCTL_RUN, 0) = 0 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffe0e7bdc00) = 18 syzkaller login: [ 50.391648][ T26] usb 1-1: new high-speed USB device number 2 using dummy_hcd ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffe0e7bdc00) = 18 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffe0e7bdc00) = 9 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffe0e7bdc00) = 72 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffe0e7bdc00) = 4 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffe0e7bdc00) = 8 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffe0e7bdc00) = 8 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7ffe0e7bdc00) = 8 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 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, 0x7f4051b993ac) = 9 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f4051b993bc) = 10 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f4051b993cc) = 12 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f4051b993dc) = 11 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f4051b993ec) = 13 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7f4051b993fc) = 14 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 0 [ 50.911764][ T26] usb 1-1: New USB device found, idVendor=0cf3, idProduct=9271, bcdDevice= 1.08 [ 50.921209][ T26] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 50.929370][ T26] usb 1-1: Product: syz [ 50.933597][ T26] usb 1-1: Manufacturer: syz [ 50.938195][ T26] usb 1-1: SerialNumber: syz ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 4096 [ 50.983794][ T26] usb 1-1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 1856 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7ffe0e7bec10) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7ffe0e7bdc00) = 0 [ 51.601723][ T3617] usb 1-1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7ffe0e7bec50) = 36 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7ffe0e7bec50) = 36 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7ffe0e7bec50) = 36 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7ffe0e7bec50) = 36 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7ffe0e7bec50) = 36 [ 52.671638][ T3617] ath9k_htc 1-1:1.0: ath9k_htc: Target is unresponsive [ 52.678768][ T3617] ath9k_htc: Failed to initialize the device ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7ffe0e7bec50) = 36 [ 52.821589][ C1] ================================================================== [ 52.829734][ C1] BUG: KASAN: use-after-free in ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 52.837467][ C1] Read of size 4 at addr ffff88801cbdc2e8 by task swapper/1/0 [ 52.844907][ C1] [ 52.847217][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.19.0-rc8-syzkaller-00168-g334c0ef6429f #0 [ 52.856928][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 [ 52.867073][ C1] Call Trace: [ 52.870356][ C1] [ 52.873199][ C1] dump_stack_lvl+0xcd/0x134 [ 52.877815][ C1] print_address_description.constprop.0.cold+0xeb/0x495 [ 52.884866][ C1] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 52.890259][ C1] kasan_report.cold+0xf4/0x1c6 [ 52.895118][ C1] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 52.900584][ C1] ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 52.905791][ C1] ? ww_mutex_trylock+0x540/0xcb0 [ 52.910829][ C1] ? hif_usb_start+0xa0/0xa0 [ 52.915423][ C1] ? rwlock_bug.part.0+0x90/0x90 [ 52.920368][ C1] __usb_hcd_giveback_urb+0x2b0/0x5c0 [ 52.925752][ C1] usb_hcd_giveback_urb+0x367/0x410 [ 52.930955][ C1] dummy_timer+0x11f9/0x32b0 [ 52.935564][ C1] ? dummy_dequeue+0x500/0x500 [ 52.940336][ C1] ? dummy_dequeue+0x500/0x500 [ 52.945103][ C1] call_timer_fn+0x1a5/0x6b0 [ 52.949695][ C1] ? timer_fixup_activate+0x350/0x350 [ 52.955066][ C1] ? lock_downgrade+0x6e0/0x6e0 [ 52.960017][ C1] ? _raw_spin_unlock_irq+0x1f/0x40 [ 52.965215][ C1] ? _raw_spin_unlock_irq+0x1f/0x40 [ 52.970428][ C1] ? dummy_dequeue+0x500/0x500 [ 52.975211][ C1] __run_timers.part.0+0x679/0xa80 [ 52.980328][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 52.985093][ C1] ? __wake_up_locked_sync_key+0x20/0x20 [ 52.990732][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 52.995933][ C1] ? sched_clock_cpu+0x69/0x2b0 [ 53.000788][ C1] run_timer_softirq+0xb3/0x1d0 [ 53.005638][ C1] __do_softirq+0x29b/0x9c2 [ 53.010150][ C1] __irq_exit_rcu+0x123/0x180 [ 53.014830][ C1] irq_exit_rcu+0x5/0x20 [ 53.019071][ C1] sysvec_apic_timer_interrupt+0x93/0xc0 [ 53.024709][ C1] [ 53.027636][ C1] [ 53.030567][ C1] asm_sysvec_apic_timer_interrupt+0x16/0x20 [ 53.036551][ C1] RIP: 0010:acpi_idle_do_entry+0x1c9/0x240 [ 53.042359][ C1] Code: 89 de e8 7a e9 ff f7 84 db 75 98 e8 71 ed ff f7 e8 6c 3c 06 f8 66 90 e8 65 ed ff f7 0f 00 2d ce a7 b9 00 e8 59 ed ff f7 fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 a4 e9 ff f7 48 85 db [ 53.061966][ C1] RSP: 0018:ffffc90000177d20 EFLAGS: 00000293 [ 53.068029][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 53.076082][ C1] RDX: ffff888011b09d80 RSI: ffffffff897a7db7 RDI: 0000000000000000 [ 53.084048][ C1] RBP: ffff888017121064 R08: 0000000000000001 R09: 0000000000000001 [ 53.092034][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 53.100000][ C1] R13: ffff888017121000 R14: ffff888017121064 R15: ffff888011b1c004 [ 53.107982][ C1] ? acpi_idle_do_entry+0x1c7/0x240 [ 53.113190][ C1] acpi_idle_enter+0x369/0x510 [ 53.117969][ C1] cpuidle_enter_state+0x1b1/0xc80 [ 53.123097][ C1] cpuidle_enter+0x4a/0xa0 [ 53.127517][ C1] do_idle+0x3e8/0x590 [ 53.131591][ C1] ? arch_cpu_idle_exit+0x30/0x30 [ 53.136619][ C1] cpu_startup_entry+0x14/0x20 [ 53.141394][ C1] start_secondary+0x21d/0x2b0 [ 53.146164][ C1] ? set_cpu_sibling_map+0x1ef0/0x1ef0 [ 53.151632][ C1] secondary_startup_64_no_verify+0xce/0xdb [ 53.157555][ C1] [ 53.160572][ C1] [ 53.162892][ C1] The buggy address belongs to the physical page: [ 53.169293][ C1] page:ffffea000072f700 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1cbdc [ 53.179444][ C1] flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) [ 53.186730][ C1] raw: 00fff00000000000 0000000000000000 ffffea000072f708 0000000000000000 [ 53.195315][ C1] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 53.203893][ C1] page dumped because: kasan: bad access detected [ 53.210295][ C1] page_owner tracks the page as freed [ 53.215651][ C1] page last allocated via order 3, migratetype Unmovable, gfp_mask 0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), pid 3617, tgid 3617 (kworker/1:2), ts 51612867888, free_ts 52678743534 [ 53.233462][ C1] get_page_from_freelist+0x1298/0x3b80 [ 53.239010][ C1] __alloc_pages+0x1c7/0x510 [ 53.243622][ C1] alloc_pages+0x1aa/0x310 [ 53.248036][ C1] kmalloc_order+0x34/0xf0 [ 53.252453][ C1] kmalloc_order_trace+0x14/0x120 [ 53.257477][ C1] wiphy_new_nm+0x6f0/0x2080 [ 53.262086][ C1] ieee80211_alloc_hw_nm+0x373/0x2270 [ 53.267475][ C1] ath9k_htc_probe_device+0x97/0x1f00 [ 53.272864][ C1] ath9k_htc_hw_init+0x31/0x60 [ 53.277637][ C1] ath9k_hif_usb_firmware_cb+0x274/0x530 [ 53.283290][ C1] request_firmware_work_func+0x12c/0x230 [ 53.289010][ C1] process_one_work+0x996/0x1610 [ 53.293963][ C1] worker_thread+0x665/0x1080 [ 53.298639][ C1] kthread+0x2e9/0x3a0 [ 53.302707][ C1] ret_from_fork+0x1f/0x30 [ 53.307132][ C1] page last free stack trace: [ 53.311797][ C1] free_pcp_prepare+0x549/0xd20 [ 53.316650][ C1] free_unref_page+0x19/0x6a0 [ 53.321328][ C1] device_release+0x9f/0x240 [ 53.325920][ C1] kobject_put+0x1c8/0x540 [ 53.330336][ C1] put_device+0x1b/0x30 [ 53.334491][ C1] ath9k_htc_probe_device+0x1c7/0x1f00 [ 53.339950][ C1] ath9k_htc_hw_init+0x31/0x60 [ 53.344717][ C1] ath9k_hif_usb_firmware_cb+0x274/0x530 [ 53.350372][ C1] request_firmware_work_func+0x12c/0x230 [ 53.356178][ C1] process_one_work+0x996/0x1610 [ 53.361140][ C1] worker_thread+0x665/0x1080 [ 53.365824][ C1] kthread+0x2e9/0x3a0 [ 53.369895][ C1] ret_from_fork+0x1f/0x30 [ 53.374328][ C1] [ 53.376659][ C1] Memory state around the buggy address: [ 53.382292][ C1] ffff88801cbdc180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 53.390359][ C1] ffff88801cbdc200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 53.398418][ C1] >ffff88801cbdc280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 53.406473][ C1] ^ [ 53.413925][ C1] ffff88801cbdc300: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 53.421983][ C1] ffff88801cbdc380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 53.430036][ C1] ================================================================== [ 53.438087][ C1] Kernel panic - not syncing: panic_on_warn set ... [ 53.444665][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.19.0-rc8-syzkaller-00168-g334c0ef6429f #0 [ 53.454379][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 [ 53.464433][ C1] Call Trace: [ 53.467724][ C1] [ 53.470567][ C1] dump_stack_lvl+0xcd/0x134 [ 53.475165][ C1] panic+0x2d7/0x636 [ 53.479069][ C1] ? panic_print_sys_info.part.0+0x10b/0x10b [ 53.485059][ C1] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 53.490439][ C1] end_report.part.0+0x3f/0x7c [ 53.495208][ C1] kasan_report.cold+0x93/0x1c6 [ 53.500079][ C1] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 53.505457][ C1] ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 53.510663][ C1] ? ww_mutex_trylock+0x540/0xcb0 [ 53.515696][ C1] ? hif_usb_start+0xa0/0xa0 [ 53.520299][ C1] ? rwlock_bug.part.0+0x90/0x90 [ 53.525245][ C1] __usb_hcd_giveback_urb+0x2b0/0x5c0 [ 53.530624][ C1] usb_hcd_giveback_urb+0x367/0x410 [ 53.535844][ C1] dummy_timer+0x11f9/0x32b0 [ 53.540456][ C1] ? dummy_dequeue+0x500/0x500 [ 53.545234][ C1] ? dummy_dequeue+0x500/0x500 [ 53.550004][ C1] call_timer_fn+0x1a5/0x6b0 [ 53.554594][ C1] ? timer_fixup_activate+0x350/0x350 [ 53.559966][ C1] ? lock_downgrade+0x6e0/0x6e0 [ 53.564825][ C1] ? _raw_spin_unlock_irq+0x1f/0x40 [ 53.570030][ C1] ? _raw_spin_unlock_irq+0x1f/0x40 [ 53.575247][ C1] ? dummy_dequeue+0x500/0x500 [ 53.580016][ C1] __run_timers.part.0+0x679/0xa80 [ 53.585130][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 53.589896][ C1] ? __wake_up_locked_sync_key+0x20/0x20 [ 53.595535][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 53.600737][ C1] ? sched_clock_cpu+0x69/0x2b0 [ 53.605590][ C1] run_timer_softirq+0xb3/0x1d0 [ 53.610442][ C1] __do_softirq+0x29b/0x9c2 [ 53.614957][ C1] __irq_exit_rcu+0x123/0x180 [ 53.619633][ C1] irq_exit_rcu+0x5/0x20 [ 53.623877][ C1] sysvec_apic_timer_interrupt+0x93/0xc0 [ 53.629518][ C1] [ 53.632459][ C1] [ 53.635388][ C1] asm_sysvec_apic_timer_interrupt+0x16/0x20 [ 53.641381][ C1] RIP: 0010:acpi_idle_do_entry+0x1c9/0x240 [ 53.647194][ C1] Code: 89 de e8 7a e9 ff f7 84 db 75 98 e8 71 ed ff f7 e8 6c 3c 06 f8 66 90 e8 65 ed ff f7 0f 00 2d ce a7 b9 00 e8 59 ed ff f7 fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 a4 e9 ff f7 48 85 db [ 53.666801][ C1] RSP: 0018:ffffc90000177d20 EFLAGS: 00000293 [ 53.672870][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 53.680846][ C1] RDX: ffff888011b09d80 RSI: ffffffff897a7db7 RDI: 0000000000000000 [ 53.688818][ C1] RBP: ffff888017121064 R08: 0000000000000001 R09: 0000000000000001 [ 53.696790][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 53.704772][ C1] R13: ffff888017121000 R14: ffff888017121064 R15: ffff888011b1c004 [ 53.712748][ C1] ? acpi_idle_do_entry+0x1c7/0x240 [ 53.717956][ C1] acpi_idle_enter+0x369/0x510 [ 53.722726][ C1] cpuidle_enter_state+0x1b1/0xc80 [ 53.727846][ C1] cpuidle_enter+0x4a/0xa0 [ 53.732279][ C1] do_idle+0x3e8/0x590 [ 53.736352][ C1] ? arch_cpu_idle_exit+0x30/0x30 [ 53.741381][ C1] cpu_startup_entry+0x14/0x20 [ 53.746148][ C1] start_secondary+0x21d/0x2b0 [ 53.750923][ C1] ? set_cpu_sibling_map+0x1ef0/0x1ef0 [ 53.756403][ C1] secondary_startup_64_no_verify+0xce/0xdb [ 53.762310][ C1] [ 53.765501][ C1] Kernel Offset: disabled [ 53.769832][ C1] Rebooting in 86400 seconds..