haley: dev 0xffff8881d6cb1000, urb 0xffff8881d211ad00. ath9k_hif_usb_reg_in_cb, 701 ================================================================== BUG: KASAN: use-after-free in htc_process_conn_rsp drivers/net/wireless/ath/ath9k/htc_hst.c:131 [inline] BUG: KASAN: use-after-free in ath9k_htc_rx_msg+0xa25/0xaf0 drivers/net/wireless/ath/ath9k/htc_hst.c:443 Write of size 2 at addr ffff8881d886f1b0 by task kworker/1:0/17 CPU: 1 PID: 17 Comm: kworker/1:0 Not tainted 5.6.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events request_firmware_work_func Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xef/0x16e lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x314 mm/kasan/report.c:374 __kasan_report.cold+0x37/0x77 mm/kasan/report.c:506 kasan_report+0xe/0x20 mm/kasan/common.c:641 htc_process_conn_rsp drivers/net/wireless/ath/ath9k/htc_hst.c:131 [inline] ath9k_htc_rx_msg+0xa25/0xaf0 drivers/net/wireless/ath/ath9k/htc_hst.c:443 ath9k_hif_usb_reg_in_cb+0x1d6/0x650 drivers/net/wireless/ath/ath9k/hif_usb.c:728 __usb_hcd_giveback_urb+0x1f2/0x470 drivers/usb/core/hcd.c:1648 usb_hcd_giveback_urb+0x368/0x420 drivers/usb/core/hcd.c:1713 dummy_timer+0x1258/0x32ae drivers/usb/gadget/udc/dummy_hcd.c:1966 call_timer_fn+0x195/0x6f0 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0x5f9/0x1500 kernel/time/timer.c:1786 __do_softirq+0x21e/0x950 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x178/0x1a0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x141/0x540 arch/x86/kernel/apic/apic.c:1146 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/irqflags.h:85 [inline] RIP: 0010:console_unlock+0xa6b/0xca0 kernel/printk/printk.c:2481 Code: 00 89 ee 48 c7 c7 60 43 14 87 e8 10 c3 03 00 65 ff 0d c1 ed d8 7e e9 b5 f9 ff ff e8 0f 37 16 00 e8 0a 7f 1b 00 ff 74 24 30 9d fd fd ff ff e8 fb 36 16 00 48 8d 7d 08 48 89 f8 48 c1 e8 03 42 RSP: 0018:ffff8881da267a38 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: 0000000000000200 RCX: 0000000000000006 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8881da24b94c RBP: 0000000000000000 R08: ffff8881da24b100 R09: fffffbfff1267085 R10: fffffbfff1267084 R11: ffffffff89338427 R12: ffffffff82a092f0 R13: ffffffff874d4830 R14: 0000000000000073 R15: dffffc0000000000 vprintk_emit+0x171/0x3d0 kernel/printk/printk.c:1996 vprintk_func+0x75/0x113 kernel/printk/printk_safe.c:386 printk+0xba/0xed kernel/printk/printk.c:2056 ath9k_hif_usb_alloc_reg_in_urbs drivers/net/wireless/ath/ath9k/hif_usb.c:947 [inline] ath9k_hif_usb_alloc_urbs+0x764/0xa57 drivers/net/wireless/ath/ath9k/hif_usb.c:982 ath9k_hif_usb_dev_init drivers/net/wireless/ath/ath9k/hif_usb.c:1069 [inline] ath9k_hif_usb_firmware_cb+0x224/0x51c drivers/net/wireless/ath/ath9k/hif_usb.c:1207 request_firmware_work_func+0x126/0x242 drivers/base/firmware_loader/main.c:976 process_one_work+0x94b/0x1620 kernel/workqueue.c:2266 worker_thread+0x96/0xe20 kernel/workqueue.c:2412 kthread+0x318/0x420 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 152: save_stack+0x1b/0x80 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc mm/kasan/common.c:515 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:488 kmalloc include/linux/slab.h:560 [inline] sk_prot_alloc+0x1f6/0x2c0 net/core/sock.c:1603 sk_alloc+0x36/0x710 net/core/sock.c:1657 __netlink_create+0x63/0x280 net/netlink/af_netlink.c:629 netlink_create+0x3a1/0x5d0 net/netlink/af_netlink.c:692 __sock_create+0x3d1/0x740 net/socket.c:1433 sock_create net/socket.c:1484 [inline] __sys_socket+0xef/0x200 net/socket.c:1526 __do_sys_socket net/socket.c:1535 [inline] __se_sys_socket net/socket.c:1533 [inline] __x64_sys_socket+0x6f/0xb0 net/socket.c:1533 do_syscall_64+0xb6/0x5a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: save_stack+0x1b/0x80 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:337 [inline] __kasan_slab_free+0x117/0x160 mm/kasan/common.c:476 slab_free_hook mm/slub.c:1444 [inline] slab_free_freelist_hook mm/slub.c:1477 [inline] slab_free mm/slub.c:3034 [inline] kfree+0xd5/0x300 mm/slub.c:3995 sk_prot_free net/core/sock.c:1640 [inline] __sk_destruct+0x545/0x740 net/core/sock.c:1724 sk_destruct+0xc6/0x100 net/core/sock.c:1739 __sk_free+0xef/0x3d0 net/core/sock.c:1750 sk_free+0x78/0xa0 net/core/sock.c:1761 deferred_put_nlk_sk+0x151/0x2e0 net/netlink/af_netlink.c:729 rcu_do_batch kernel/rcu/tree.c:2186 [inline] rcu_core+0x5ae/0x1b00 kernel/rcu/tree.c:2410 __do_softirq+0x21e/0x950 kernel/softirq.c:292 The buggy address belongs to the object at ffff8881d886f000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 432 bytes inside of 2048-byte region [ffff8881d886f000, ffff8881d886f800) The buggy address belongs to the page: page:ffffea0007621a00 refcount:1 mapcount:0 mapping:ffff8881da00c000 index:0x0 compound_mapcount: 0 flags: 0x200000000010200(slab|head) raw: 0200000000010200 dead000000000100 dead000000000122 ffff8881da00c000 raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d886f080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d886f100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881d886f180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881d886f200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d886f280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================