./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor380491002 <...> DUID 00:04:ab:86:5b:51:31:5e:ac:a3:74:55:84:ab:cd:90:ff:3d forked to background, child pid 3178 [ 27.750300][ T3179] 8021q: adding VLAN 0 to HW filter on device bond0 [ 27.760279][ T3179] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.1.12' (ECDSA) to the list of known hosts. execve("./syz-executor380491002", ["./syz-executor380491002"], 0x7ffffd6eef50 /* 10 vars */) = 0 brk(NULL) = 0x5555564f1000 brk(0x5555564f1c40) = 0x5555564f1c40 arch_prctl(ARCH_SET_FS, 0x5555564f1300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor380491002", 4096) = 27 brk(0x555556512c40) = 0x555556512c40 brk(0x555556513000) = 0x555556513000 mprotect(0x7fb70d827000, 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, 0x7fffbfda3410) = 0 ioctl(3, UI_DEV_CREATE or USB_RAW_IOCTL_RUN, 0) = 0 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffbfda2400) = 18 syzkaller login: [ 52.854086][ T146] usb 1-1: new high-speed USB device number 2 using dummy_hcd ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffbfda2400) = 18 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffbfda2400) = 9 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffbfda2400) = 72 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffbfda2400) = 4 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffbfda2400) = 8 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffbfda2400) = 8 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_WRITE, 0x7fffbfda2400) = 8 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 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, 0x7fb70d82d3ac) = 9 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7fb70d82d3bc) = 10 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7fb70d82d3cc) = 12 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7fb70d82d3dc) = 11 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7fb70d82d3ec) = 13 ioctl(3, USB_RAW_IOCTL_EP_ENABLE, 0x7fb70d82d3fc) = 14 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 0 [ 53.374738][ T146] usb 1-1: New USB device found, idVendor=0cf3, idProduct=9271, bcdDevice= 1.08 [ 53.383964][ T146] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 53.391944][ T146] usb 1-1: Product: syz [ 53.396135][ T146] usb 1-1: Manufacturer: syz [ 53.400740][ T146] usb 1-1: SerialNumber: syz ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 4096 [ 53.446579][ T146] usb 1-1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 4096 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 1856 ioctl(3, USB_RAW_IOCTL_EVENT_FETCH, 0x7fffbfda3410) = 0 ioctl(3, USB_RAW_IOCTL_EP0_READ, 0x7fffbfda2400) = 0 [ 54.024327][ T3601] usb 1-1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7fffbfda3450) = 8 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7fffbfda3450) = 8 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7fffbfda3450) = 8 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7fffbfda3450) = 8 ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7fffbfda3450) = 8 [ 55.104113][ T3601] ath9k_htc 1-1:1.0: ath9k_htc: Target is unresponsive [ 55.111295][ T3601] ath9k_htc: Failed to initialize the device ioctl(3, USB_RAW_IOCTL_EP_WRITE, 0x7fffbfda3450) = 8 [ 55.244037][ C0] ================================================================== [ 55.252128][ C0] BUG: KASAN: use-after-free in ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 55.259853][ C0] Read of size 4 at addr ffff88807dfec448 by task swapper/0/0 [ 55.267305][ C0] [ 55.269611][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0 [ 55.278784][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 [ 55.288824][ C0] Call Trace: [ 55.292106][ C0] [ 55.294938][ C0] dump_stack_lvl+0xcd/0x134 [ 55.299529][ C0] print_report.cold+0x2ba/0x719 [ 55.304457][ C0] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 55.309813][ C0] kasan_report+0xbe/0x1f0 [ 55.314219][ C0] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 55.319579][ C0] ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 55.324776][ C0] ? perf_trace_contention_begin+0x360/0x3a0 [ 55.330744][ C0] ? hif_usb_start+0xa0/0xa0 [ 55.335326][ C0] ? rwlock_bug.part.0+0x90/0x90 [ 55.340277][ C0] __usb_hcd_giveback_urb+0x2b0/0x5c0 [ 55.345667][ C0] usb_hcd_giveback_urb+0x367/0x410 [ 55.350882][ C0] dummy_timer+0x11ff/0x32c0 [ 55.355492][ C0] ? dummy_dequeue+0x500/0x500 [ 55.360257][ C0] ? dummy_dequeue+0x500/0x500 [ 55.365017][ C0] call_timer_fn+0x1a0/0x6b0 [ 55.369605][ C0] ? timer_fixup_activate+0x350/0x350 [ 55.374975][ C0] ? lock_downgrade+0x6e0/0x6e0 [ 55.379823][ C0] ? _raw_spin_unlock_irq+0x1f/0x40 [ 55.385027][ C0] ? _raw_spin_unlock_irq+0x1f/0x40 [ 55.390231][ C0] ? dummy_dequeue+0x500/0x500 [ 55.394990][ C0] __run_timers.part.0+0x674/0xa80 [ 55.400111][ C0] ? call_timer_fn+0x6b0/0x6b0 [ 55.404878][ C0] ? set_next_task_stop+0x140/0x140 [ 55.410094][ C0] ? kvm_sched_clock_read+0x14/0x40 [ 55.415323][ C0] ? sched_clock_cpu+0x69/0x2b0 [ 55.420193][ C0] run_timer_softirq+0xb3/0x1d0 [ 55.425047][ C0] __do_softirq+0x29b/0x9c2 [ 55.429579][ C0] __irq_exit_rcu+0x123/0x180 [ 55.434270][ C0] irq_exit_rcu+0x5/0x20 [ 55.438517][ C0] sysvec_apic_timer_interrupt+0x93/0xc0 [ 55.444173][ C0] [ 55.447110][ C0] [ 55.450042][ C0] asm_sysvec_apic_timer_interrupt+0x1b/0x20 [ 55.456031][ C0] RIP: 0010:acpi_idle_do_entry+0x1c9/0x240 [ 55.461882][ C0] 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 [ 55.481504][ C0] RSP: 0018:ffffffff8ba07d38 EFLAGS: 00000293 [ 55.487589][ C0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 55.495568][ C0] RDX: ffffffff8babc980 RSI: ffffffff897c3927 RDI: 0000000000000000 [ 55.503537][ C0] RBP: ffff8880174b9064 R08: 0000000000000001 R09: 0000000000000001 [ 55.511502][ C0] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 55.519466][ C0] R13: ffff8880174b9000 R14: ffff8880174b9064 R15: ffff88801bae9804 [ 55.527437][ C0] ? acpi_idle_do_entry+0x1c7/0x240 [ 55.532656][ C0] ? acpi_idle_do_entry+0x1c7/0x240 [ 55.537863][ C0] acpi_idle_enter+0x364/0x500 [ 55.542632][ C0] cpuidle_enter_state+0x1b1/0xc80 [ 55.547748][ C0] cpuidle_enter+0x4a/0xa0 [ 55.552167][ C0] do_idle+0x3e8/0x590 [ 55.556239][ C0] ? arch_cpu_idle_exit+0x30/0x30 [ 55.561265][ C0] cpu_startup_entry+0x14/0x20 [ 55.566028][ C0] rest_init+0x169/0x270 [ 55.570295][ C0] ? trace_init_perf_perm_irq_work_exit+0xe/0xe [ 55.576532][ C0] arch_call_rest_init+0xf/0x14 [ 55.581384][ C0] start_kernel+0x473/0x494 [ 55.585905][ C0] secondary_startup_64_no_verify+0xce/0xdb [ 55.591804][ C0] [ 55.594814][ C0] [ 55.597145][ C0] The buggy address belongs to the physical page: [ 55.603543][ C0] page:ffffea0001f7fb00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7dfec [ 55.613694][ C0] flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) [ 55.620824][ C0] raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 [ 55.629413][ C0] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 55.637986][ C0] page dumped because: kasan: bad access detected [ 55.644384][ C0] page_owner tracks the page as freed [ 55.649739][ C0] page last allocated via order 3, migratetype Unmovable, gfp_mask 0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), pid 3601, tgid 3601 (kworker/0:3), ts 54035914211, free_ts 55111241492 [ 55.667556][ C0] get_page_from_freelist+0x210d/0x3a30 [ 55.673119][ C0] __alloc_pages+0x1c7/0x510 [ 55.677708][ C0] alloc_pages+0x1aa/0x310 [ 55.682140][ C0] kmalloc_order+0x34/0xf0 [ 55.686576][ C0] kmalloc_order_trace+0x13/0x120 [ 55.691609][ C0] wiphy_new_nm+0x6fc/0x2090 [ 55.696196][ C0] ieee80211_alloc_hw_nm+0x428/0x2330 [ 55.701571][ C0] ath9k_htc_probe_device+0x97/0x1f00 [ 55.706941][ C0] ath9k_htc_hw_init+0x31/0x60 [ 55.711698][ C0] ath9k_hif_usb_firmware_cb+0x274/0x530 [ 55.717359][ C0] request_firmware_work_func+0x12c/0x230 [ 55.723094][ C0] process_one_work+0x991/0x1610 [ 55.728044][ C0] worker_thread+0x665/0x1080 [ 55.732727][ C0] kthread+0x2e9/0x3a0 [ 55.736803][ C0] ret_from_fork+0x1f/0x30 [ 55.741233][ C0] page last free stack trace: [ 55.745895][ C0] free_pcp_prepare+0x5e4/0xd20 [ 55.750762][ C0] free_unref_page+0x19/0x4d0 [ 55.755439][ C0] device_release+0x9f/0x240 [ 55.760028][ C0] kobject_put+0x1be/0x4c0 [ 55.764439][ C0] put_device+0x1b/0x30 [ 55.768590][ C0] ath9k_htc_probe_device+0x1c7/0x1f00 [ 55.774048][ C0] ath9k_htc_hw_init+0x31/0x60 [ 55.778806][ C0] ath9k_hif_usb_firmware_cb+0x274/0x530 [ 55.784434][ C0] request_firmware_work_func+0x12c/0x230 [ 55.790154][ C0] process_one_work+0x991/0x1610 [ 55.795091][ C0] worker_thread+0x665/0x1080 [ 55.799766][ C0] kthread+0x2e9/0x3a0 [ 55.803829][ C0] ret_from_fork+0x1f/0x30 [ 55.808260][ C0] [ 55.810579][ C0] Memory state around the buggy address: [ 55.816207][ C0] ffff88807dfec300: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 55.824262][ C0] ffff88807dfec380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 55.832313][ C0] >ffff88807dfec400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 55.840362][ C0] ^ [ 55.846762][ C0] ffff88807dfec480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 55.854818][ C0] ffff88807dfec500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 55.862882][ C0] ================================================================== [ 55.870928][ C0] Kernel panic - not syncing: panic_on_warn set ... [ 55.877499][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0 [ 55.886685][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 [ 55.896728][ C0] Call Trace: [ 55.900002][ C0] [ 55.902843][ C0] dump_stack_lvl+0xcd/0x134 [ 55.907443][ C0] panic+0x2d7/0x636 [ 55.911343][ C0] ? panic_print_sys_info.part.0+0x10b/0x10b [ 55.917330][ C0] ? print_report.cold+0x4f6/0x719 [ 55.922453][ C0] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 55.927843][ C0] end_report.part.0+0x3f/0x7c [ 55.932610][ C0] kasan_report.cold+0x8/0x12 [ 55.937290][ C0] ? ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 55.942660][ C0] ath9k_hif_usb_rx_cb+0xea7/0x10d0 [ 55.947852][ C0] ? perf_trace_contention_begin+0x360/0x3a0 [ 55.953851][ C0] ? hif_usb_start+0xa0/0xa0 [ 55.958435][ C0] ? rwlock_bug.part.0+0x90/0x90 [ 55.963377][ C0] __usb_hcd_giveback_urb+0x2b0/0x5c0 [ 55.968759][ C0] usb_hcd_giveback_urb+0x367/0x410 [ 55.973961][ C0] dummy_timer+0x11ff/0x32c0 [ 55.978560][ C0] ? dummy_dequeue+0x500/0x500 [ 55.983323][ C0] ? dummy_dequeue+0x500/0x500 [ 55.988081][ C0] call_timer_fn+0x1a0/0x6b0 [ 55.992669][ C0] ? timer_fixup_activate+0x350/0x350 [ 55.998041][ C0] ? lock_downgrade+0x6e0/0x6e0 [ 56.002887][ C0] ? _raw_spin_unlock_irq+0x1f/0x40 [ 56.008093][ C0] ? _raw_spin_unlock_irq+0x1f/0x40 [ 56.013296][ C0] ? dummy_dequeue+0x500/0x500 [ 56.018056][ C0] __run_timers.part.0+0x674/0xa80 [ 56.023169][ C0] ? call_timer_fn+0x6b0/0x6b0 [ 56.027929][ C0] ? set_next_task_stop+0x140/0x140 [ 56.033123][ C0] ? kvm_sched_clock_read+0x14/0x40 [ 56.038323][ C0] ? sched_clock_cpu+0x69/0x2b0 [ 56.043173][ C0] run_timer_softirq+0xb3/0x1d0 [ 56.048026][ C0] __do_softirq+0x29b/0x9c2 [ 56.052529][ C0] __irq_exit_rcu+0x123/0x180 [ 56.057203][ C0] irq_exit_rcu+0x5/0x20 [ 56.061440][ C0] sysvec_apic_timer_interrupt+0x93/0xc0 [ 56.067078][ C0] [ 56.070000][ C0] [ 56.072921][ C0] asm_sysvec_apic_timer_interrupt+0x1b/0x20 [ 56.078904][ C0] RIP: 0010:acpi_idle_do_entry+0x1c9/0x240 [ 56.084721][ C0] 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 [ 56.104324][ C0] RSP: 0018:ffffffff8ba07d38 EFLAGS: 00000293 [ 56.110385][ C0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 56.118352][ C0] RDX: ffffffff8babc980 RSI: ffffffff897c3927 RDI: 0000000000000000 [ 56.126316][ C0] RBP: ffff8880174b9064 R08: 0000000000000001 R09: 0000000000000001 [ 56.134278][ C0] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 56.142240][ C0] R13: ffff8880174b9000 R14: ffff8880174b9064 R15: ffff88801bae9804 [ 56.150207][ C0] ? acpi_idle_do_entry+0x1c7/0x240 [ 56.155414][ C0] ? acpi_idle_do_entry+0x1c7/0x240 [ 56.160623][ C0] acpi_idle_enter+0x364/0x500 [ 56.165397][ C0] cpuidle_enter_state+0x1b1/0xc80 [ 56.170515][ C0] cpuidle_enter+0x4a/0xa0 [ 56.174932][ C0] do_idle+0x3e8/0x590 [ 56.179002][ C0] ? arch_cpu_idle_exit+0x30/0x30 [ 56.184031][ C0] cpu_startup_entry+0x14/0x20 [ 56.188806][ C0] rest_init+0x169/0x270 [ 56.193053][ C0] ? trace_init_perf_perm_irq_work_exit+0xe/0xe [ 56.199293][ C0] arch_call_rest_init+0xf/0x14 [ 56.204147][ C0] start_kernel+0x473/0x494 [ 56.208652][ C0] secondary_startup_64_no_verify+0xce/0xdb [ 56.214552][ C0] [ 56.217742][ C0] Kernel Offset: disabled [ 56.222061][ C0] Rebooting in 86400 seconds..