================================================================== BUG: KASAN: slab-out-of-bounds in htc_process_conn_rsp drivers/net/wireless/ath/ath9k/htc_hst.c:131 [inline] BUG: KASAN: slab-out-of-bounds in ath9k_htc_rx_msg+0xa25/0xaf0 drivers/net/wireless/ath/ath9k/htc_hst.c:443 Write of size 2 at addr ffff8881cc548a20 by task systemd-udevd/3763 CPU: 1 PID: 3763 Comm: systemd-udevd Not tainted 5.7.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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/0x415 mm/kasan/report.c:382 __kasan_report.cold+0x37/0x7d mm/kasan/report.c:511 kasan_report+0x33/0x50 mm/kasan/common.c:625 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+0x1c0/0x630 drivers/net/wireless/ath/ath9k/hif_usb.c:718 __usb_hcd_giveback_urb+0x29a/0x550 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0x368/0x420 drivers/usb/core/hcd.c:1716 dummy_timer+0x125e/0x32b4 drivers/usb/gadget/udc/dummy_hcd.c:1967 call_timer_fn+0x1ac/0x700 kernel/time/timer.c:1405 expire_timers kernel/time/timer.c:1450 [inline] __run_timers kernel/time/timer.c:1774 [inline] __run_timers kernel/time/timer.c:1741 [inline] run_timer_softirq+0x5f9/0x1500 kernel/time/timer.c:1787 __do_softirq+0x21e/0x9aa 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:1140 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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x3b/0x40 kernel/locking/spinlock.c:191 Code: e8 fa 71 90 fb 48 89 ef e8 92 6e 91 fb f6 c7 02 75 11 53 9d e8 76 15 af fb 65 ff 0d 87 86 6b 7a 5b 5d c3 e8 67 13 af fb 53 9d ed 0f 1f 00 55 48 89 fd 65 ff 05 6d 86 6b 7a 45 31 c9 41 b8 01 RSP: 0018:ffff8881c709f938 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: 0000000000000293 RCX: 1ffffffff12712b1 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881cb05087c RBP: ffff88821fffd680 R08: 0000000000000001 R09: fffffbfff126c8c9 R10: ffffffff89364647 R11: fffffbfff126c8c8 R12: ffff88821fffa000 R13: ffff8881db331c40 R14: 0000000000000000 R15: dffffc0000000000 spin_unlock_irqrestore include/linux/spinlock.h:408 [inline] pagevec_lru_move_fn+0x1a0/0x260 mm/swap.c:214 __pagevec_lru_add mm/swap.c:987 [inline] lru_add_drain_cpu+0x226/0x470 mm/swap.c:599 lru_add_drain mm/swap.c:694 [inline] __pagevec_release+0xc6/0x130 mm/swap.c:880 pagevec_release include/linux/pagevec.h:88 [inline] shmem_undo_range+0x851/0x1490 mm/shmem.c:876 shmem_truncate_range+0x27/0xa0 mm/shmem.c:980 shmem_evict_inode+0x2f5/0x9f0 mm/shmem.c:1080 evict+0x2ed/0x650 fs/inode.c:576 iput_final fs/inode.c:1572 [inline] iput+0x4f4/0x880 fs/inode.c:1598 do_unlinkat+0x3f6/0x650 fs/namei.c:3879 do_syscall_64+0xb6/0x5a0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x7f1767bfb0e7 Code: f0 ff ff 73 01 c3 48 8b 0d ae bd 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 81 bd 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007fff031a93f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1767bfb0e7 RDX: 0000000000000008 RSI: 0000558f74014990 RDI: 00007fff031a9400 RBP: 00007fff031a9450 R08: 0000558f74004230 R09: 0000000000000300 R10: 0000000000000000 R11: 0000000000000246 R12: 0000558f74014990 R13: 0000558f74002120 R14: 0000000000000003 R15: 000000000000000e Allocated by task 1: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:468 kmalloc include/linux/slab.h:560 [inline] kzalloc include/linux/slab.h:669 [inline] cgroup_create kernel/cgroup/cgroup.c:5196 [inline] cgroup_mkdir+0x263/0x10b0 kernel/cgroup/cgroup.c:5346 kernfs_iop_mkdir+0x146/0x1d0 fs/kernfs/dir.c:1127 vfs_mkdir+0x419/0x690 fs/namei.c:3625 do_mkdirat+0x145/0x250 fs/namei.c:3648 do_syscall_64+0xb6/0x5a0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8881cc548000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 544 bytes to the right of 2048-byte region [ffff8881cc548000, ffff8881cc548800) The buggy address belongs to the page: page:ffffea0007315200 refcount:1 mapcount:0 mapping:000000006814a5af index:0x0 head:ffffea0007315200 order:3 compound_mapcount:0 compound_pincount: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: ffff8881cc548900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881cc548980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881cc548a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881cc548a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881cc548b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================