usb 1-1: RX USB error -71.
usb 1-1: RX USB error -2.
usb 1-1: error -1 when submitting rx urb
==================================================================
BUG: KASAN: slab-out-of-bounds in ar5523_cmd_tx_cb+0x53/0x230 drivers/net/wireless/ath/ar5523/ar5523.c:228
Read of size 8 at addr ffff88801db93450 by task kworker/0:4/3347
CPU: 0 PID: 3347 Comm: kworker/0:4 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Workqueue: usb_hub_wq hub_event
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
print_address_description+0x65/0x4b0 mm/kasan/report.c:317
print_report+0x108/0x220 mm/kasan/report.c:433
kasan_report+0xfb/0x130 mm/kasan/report.c:495
ar5523_cmd_tx_cb+0x53/0x230 drivers/net/wireless/ath/ar5523/ar5523.c:228
__usb_hcd_giveback_urb+0x369/0x530 drivers/usb/core/hcd.c:1671
dummy_timer+0x86b/0x3110 drivers/usb/gadget/udc/dummy_hcd.c:1988
call_timer_fn+0xf5/0x210 kernel/time/timer.c:1474
expire_timers kernel/time/timer.c:1519 [inline]
__run_timers+0x76a/0x980 kernel/time/timer.c:1790
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1803
__do_softirq+0x277/0x75b kernel/softirq.c:571
__irq_exit_rcu+0xec/0x170 kernel/softirq.c:650
irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1107
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:console_emit_next_record+0x8b6/0xa60 kernel/printk/printk.c:2741
Code: c0 24 1c 00 48 8b 44 24 48 42 80 3c 20 00 44 8a 6c 24 17 4c 8b 74 24 28 48 8b 5c 24 38 74 08 4c 89 f7 e8 bd bc 70 00 49 ff 06 <48> c7 84 24 80 00 00 00 0e 36 e0 45 49 c7 04 1c 00 00 00 00 49 c7
RSP: 0018:ffffc900039eeee0 EFLAGS: 00000293
RAX: ffffffff816c4788 RBX: 1ffff9200073ddec RCX: ffff888074a49d80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900039ef110 R08: ffffffff816c475f R09: fffffbfff1c4dc86
R10: fffffbfff1c4dc86 R11: 1ffffffff1c4dc85 R12: dffffc0000000000
R13: 0000000000000201 R14: 0000000000000046 R15: 0000000000000200
console_unlock+0x26b/0x6f0 kernel/printk/printk.c:2861
vprintk_emit+0xd1/0x1e0 kernel/printk/printk.c:2271
dev_vprintk_emit+0x2e4/0x35d drivers/base/core.c:4736
dev_printk_emit+0xd9/0x118 drivers/base/core.c:4747
_dev_info+0x12f/0x176 drivers/base/core.c:4805
usb_disconnect+0xe3/0x890 drivers/usb/core/hub.c:2217
hub_port_connect+0x296/0x2930 drivers/usb/core/hub.c:5197
hub_port_connect_change+0x619/0xbe0 drivers/usb/core/hub.c:5497
port_event+0xec6/0x13b0 drivers/usb/core/hub.c:5653
hub_event+0x5c1/0xd80 drivers/usb/core/hub.c:5735
process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
kthread+0x266/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
Allocated by task 0:
(stack is not available)
The buggy address belongs to the object at ffff88801db93400
which belongs to the cache kmalloc-cg-512 of size 512
The buggy address is located 80 bytes inside of
512-byte region [ffff88801db93400, ffff88801db93600)
The buggy address belongs to the physical page:
page:ffffea000076e400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1db90
head:ffffea000076e400 order:2 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888012042dc0
raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3620, tgid 3620 (udevd), ts 92162958190, free_ts 90613383158
prep_new_page mm/page_alloc.c:2532 [inline]
get_page_from_freelist+0x72b/0x7a0 mm/page_alloc.c:4283
__alloc_pages+0x259/0x560 mm/page_alloc.c:5549
alloc_slab_page+0x70/0xf0 mm/slub.c:1829
allocate_slab+0x5e/0x520 mm/slub.c:1974
new_slab mm/slub.c:2034 [inline]
___slab_alloc+0x42e/0xce0 mm/slub.c:3036
__slab_alloc mm/slub.c:3123 [inline]
slab_alloc_node mm/slub.c:3214 [inline]
__kmalloc_node_track_caller+0x2c3/0x400 mm/slub.c:4964
kmalloc_reserve net/core/skbuff.c:437 [inline]
__alloc_skb+0x11d/0x620 net/core/skbuff.c:509
alloc_skb include/linux/skbuff.h:1265 [inline]
alloc_skb_with_frags+0xb4/0x780 net/core/skbuff.c:6124
sock_alloc_send_pskb+0x930/0xa70 net/core/sock.c:2719
unix_dgram_sendmsg+0x5b3/0x2050 net/unix/af_unix.c:1943
sock_sendmsg_nosec net/socket.c:714 [inline]
sock_sendmsg net/socket.c:734 [inline]
sock_write_iter+0x3d4/0x540 net/socket.c:1108
call_write_iter include/linux/fs.h:2190 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x7b5/0xbb0 fs/read_write.c:584
ksys_write+0x19b/0x2c0 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1449 [inline]
free_pcp_prepare+0x812/0x900 mm/page_alloc.c:1499
free_unref_page_prepare mm/page_alloc.c:3380 [inline]
free_unref_page+0x7d/0x630 mm/page_alloc.c:3476
__stack_depot_save+0x442/0x490 lib/stackdepot.c:489
kasan_save_stack mm/kasan/common.c:39 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:437 [inline]
__kasan_slab_alloc+0xc4/0xe0 mm/kasan/common.c:470
kasan_slab_alloc include/linux/kasan.h:224 [inline]
slab_post_alloc_hook mm/slab.h:727 [inline]
slab_alloc_node mm/slub.c:3248 [inline]
slab_alloc mm/slub.c:3256 [inline]
__kmem_cache_alloc_lru mm/slub.c:3263 [inline]
kmem_cache_alloc+0x1a6/0x310 mm/slub.c:3273
kmem_cache_zalloc include/linux/slab.h:723 [inline]
__kernfs_new_node+0xdb/0x730 fs/kernfs/dir.c:603
kernfs_new_node+0x95/0x160 fs/kernfs/dir.c:665
kernfs_create_link+0x9f/0x1f0 fs/kernfs/symlink.c:39
sysfs_do_create_link_sd+0x85/0x100 fs/sysfs/symlink.c:44
usb_new_device+0xe56/0x18b0 drivers/usb/core/hub.c:2585
hub_port_connect+0x105b/0x2930 drivers/usb/core/hub.c:5353
hub_port_connect_change+0x619/0xbe0 drivers/usb/core/hub.c:5497
port_event+0xec6/0x13b0 drivers/usb/core/hub.c:5653
hub_event+0x5c1/0xd80 drivers/usb/core/hub.c:5735
process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
Memory state around the buggy address:
ffff88801db93300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88801db93380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88801db93400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88801db93480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88801db93500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
----------------
Code disassembly (best guess):
0: c0 24 1c 00 shlb $0x0,(%rsp,%rbx,1)
4: 48 8b 44 24 48 mov 0x48(%rsp),%rax
9: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1)
e: 44 8a 6c 24 17 mov 0x17(%rsp),%r13b
13: 4c 8b 74 24 28 mov 0x28(%rsp),%r14
18: 48 8b 5c 24 38 mov 0x38(%rsp),%rbx
1d: 74 08 je 0x27
1f: 4c 89 f7 mov %r14,%rdi
22: e8 bd bc 70 00 callq 0x70bce4
27: 49 ff 06 incq (%r14)
* 2a: 48 c7 84 24 80 00 00 movq $0x45e0360e,0x80(%rsp) <-- trapping instruction
31: 00 0e 36 e0 45
36: 49 c7 04 1c 00 00 00 movq $0x0,(%r12,%rbx,1)
3d: 00
3e: 49 rex.WB
3f: c7 .byte 0xc7