program: socketpair(0x1, 0x1, 0x0, &(0x7f0000000100)={0x0, 0x0}) mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./sys\x00', 0x1ff) mount(&(0x7f0000000080)=@filename='none\x00', &(0x7f00000000c0)='./sys\x00', &(0x7f0000000140)='sysfs\x00', 0x0, &(0x7f0000000180)) r1 = openat(0xffffffffffffff9c, &(0x7f00000001c0)='./sys/bus/usb/drivers/usbip-host/match_busid\x00', 0x1, 0x0) write(r1, &(0x7f0000000200)='add 1-1\x00', 0x8) write(r1, &(0x7f0000000240)='add 2-1\x00', 0x8) close(r1) syz_usb_connect(0x0, 0x24, &(0x7f0000000000)={{0x12, 0x1, 0x0, 0x97, 0xff, 0x82, 0x8, 0x2058, 0x1005, 0xc19b, 0x0, 0x0, 0x0, 0x1, [{{0x9, 0x2, 0x12, 0x1, 0x0, 0x0, 0x0, 0x0, "", [{{0x9, 0x4, 0x8f, 0x0, 0x0, 0xbf, 0x57, 0x5a}}]}}]}}, 0x0) nanosleep(&(0x7f0000000300)={0x0, 0x2faf080}, 0x0) r2 = openat(0xffffffffffffff9c, &(0x7f0000000280)='./sys/bus/usb/drivers/usb/unbind\x00', 0x1, 0x0) write(r2, &(0x7f00000002c0)='1-1\x00', 0x4) write(r2, &(0x7f0000000340)='2-1\x00', 0x4) close(r2) r3 = openat(0xffffffffffffff9c, &(0x7f0000000380)='./sys/bus/usb/drivers/usbip-host/bind\x00', 0x1, 0x0) write(r3, &(0x7f00000003c0)='1-1\x00', 0x4) write(r3, &(0x7f0000000400)='2-1\x00', 0x4) close(r3) r4 = openat(0xffffffffffffff9c, &(0x7f0000000440)='./sys/bus/usb/devices/1-1/usbip_sockfd\x00', 0x1, 0x0) write(r4, &(0x7f0000000480)='3\x00', 0x2) close(r4) r5 = openat(0xffffffffffffff9c, &(0x7f00000004c0)='./sys/bus/usb/devices/2-1/usbip_sockfd\x00', 0x1, 0x0) write(r5, &(0x7f0000000500)='3\x00', 0x2) close(r5) nanosleep(&(0x7f0000000300)={0x0, 0x2faf080}, 0x0) write(r0, &(0x7f0000000540)="00000001000000010001000200"/48, 0x30) write(r0, &(0x7f0000000580)="00000002000000030001000200000000000000000000000100"/48, 0x30) write(r0, &(0x7f00000005c0)="00000001000000050001000200"/48, 0x30) [ 76.711550][ T1332] ieee802154 phy0 wpan0: encryption failed: -22 [ 76.716904][ T1332] ieee802154 phy1 wpan1: encryption failed: -22 [ 77.032790][ T5315] usb 5-1: new high-speed USB device number 2 using dummy_hcd [ 77.182775][ T5315] usb 5-1: Using ep0 maxpacket: 8 [ 77.188781][ T5315] usb 5-1: config 0 has an invalid interface number: 143 but max is 0 [ 77.192266][ T5315] usb 5-1: config 0 has no interface number 0 [ 77.195045][ T5315] usb 5-1: New USB device found, idVendor=2058, idProduct=1005, bcdDevice=c1.9b [ 77.199018][ T5315] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 77.209872][ T5315] usb 5-1: config 0 descriptor?? [ 77.334352][ T4648] Bluetooth: hci0: command tx timeout [ 77.353858][ T5315] viperboard 5-1:0.143: version 0.00 found at bus 005 address 002 [ 77.411706][ T5315] viperboard-i2c viperboard-i2c.3.auto: error -EIO: failure setting i2c_bus_freq to 100 [ 77.420985][ T5315] viperboard-i2c viperboard-i2c.3.auto: probe with driver viperboard-i2c failed with error -5 [ 77.570713][ T5318] usbip-host 1-1: usbip-host: register new device (bus 1 dev 2) [ 77.586869][ T5318] usbip-host 1-1: stub up [ 77.648526][ C0] usbip-host 1-1: endpoint 0 is stalled [ 77.664859][ T5304] usb 5-1: USB disconnect, device number 2 [ 77.669824][ T5322] ================================================================== [ 77.673111][ T5322] BUG: KASAN: slab-use-after-free in stub_rx_loop+0x2965/0x2ee0 [ 77.676351][ T5322] Read of size 4 at addr ffff88803fec6db0 by task stub_rx/5322 [ 77.679094][ T5322] [ 77.680233][ T5322] CPU: 0 UID: 0 PID: 5322 Comm: stub_rx Not tainted syzkaller #0 PREEMPT(full) [ 77.680247][ T5322] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 77.680253][ T5322] Call Trace: [ 77.680260][ T5322] [ 77.680265][ T5322] dump_stack_lvl+0xe8/0x150 [ 77.680285][ T5322] print_address_description+0x55/0x1e0 [ 77.680299][ T5322] ? stub_rx_loop+0x2965/0x2ee0 [ 77.680310][ T5322] print_report+0x58/0x70 [ 77.680323][ T5322] kasan_report+0x117/0x150 [ 77.680337][ T5322] ? stub_rx_loop+0x2965/0x2ee0 [ 77.680349][ T5322] stub_rx_loop+0x2965/0x2ee0 [ 77.680365][ T5322] ? __pfx_stub_rx_loop+0x10/0x10 [ 77.680378][ T5322] ? __kthread_parkme+0x196/0x1f0 [ 77.680392][ T5322] kthread+0x388/0x470 [ 77.680405][ T5322] ? __pfx_stub_rx_loop+0x10/0x10 [ 77.680415][ T5322] ? __pfx_kthread+0x10/0x10 [ 77.680429][ T5322] ret_from_fork+0x514/0xb70 [ 77.680443][ T5322] ? __pfx_ret_from_fork+0x10/0x10 [ 77.680456][ T5322] ? __switch_to+0xc89/0x1420 [ 77.680468][ T5322] ? __pfx_kthread+0x10/0x10 [ 77.680481][ T5322] ret_from_fork_asm+0x1a/0x30 [ 77.680494][ T5322] [ 77.680497][ T5322] [ 77.729379][ T5322] Allocated by task 5322: [ 77.731093][ T5322] kasan_save_track+0x3e/0x80 [ 77.732952][ T5322] __kasan_slab_alloc+0x6c/0x80 [ 77.734938][ T5322] kmem_cache_alloc_noprof+0x2a0/0x5f0 [ 77.737299][ T5322] stub_rx_loop+0xad9/0x2ee0 [ 77.739137][ T5322] kthread+0x388/0x470 [ 77.740807][ T5322] ret_from_fork+0x514/0xb70 [ 77.742668][ T5322] ret_from_fork_asm+0x1a/0x30 [ 77.744656][ T5322] [ 77.745663][ T5322] Freed by task 5323: [ 77.747360][ T5322] kasan_save_track+0x3e/0x80 [ 77.749369][ T5322] kasan_save_free_info+0x40/0x50 [ 77.751304][ T5322] __kasan_slab_free+0x5c/0x80 [ 77.753184][ T5322] kmem_cache_free+0x182/0x650 [ 77.755229][ T5322] stub_tx_loop+0x1b16/0x2800 [ 77.757302][ T5322] kthread+0x388/0x470 [ 77.758927][ T5322] ret_from_fork+0x514/0xb70 [ 77.760844][ T5322] ret_from_fork_asm+0x1a/0x30 [ 77.762771][ T5322] [ 77.763743][ T5322] The buggy address belongs to the object at ffff88803fec6d80 [ 77.763743][ T5322] which belongs to the cache stub_priv of size 64 [ 77.769364][ T5322] The buggy address is located 48 bytes inside of [ 77.769364][ T5322] freed 64-byte region [ffff88803fec6d80, ffff88803fec6dc0) [ 77.774788][ T5322] [ 77.775939][ T5322] The buggy address belongs to the physical page: [ 77.778549][ T5322] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803fec6e00 pfn:0x3fec6 [ 77.782740][ T5322] flags: 0x4fff00000000200(workingset|node=1|zone=1|lastcpupid=0x7ff) [ 77.786178][ T5322] page_type: f5(slab) [ 77.787914][ T5322] raw: 04fff00000000200 ffff8880366dedc0 ffff888037bcc108 ffff888037bcc108 [ 77.791214][ T5322] raw: ffff88803fec6e00 000000080020001c 00000000f5000000 0000000000000000 [ 77.794520][ T5322] page dumped because: kasan: bad access detected [ 77.797027][ T5322] page_owner tracks the page as allocated [ 77.799144][ T5322] page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5322, tgid 5322 (stub_rx), ts 77647081388, free_ts 74393088603 [ 77.807393][ T5322] post_alloc_hook+0x1f9/0x250 [ 77.809436][ T5322] get_page_from_freelist+0x21fa/0x2270 [ 77.811829][ T5322] __alloc_frozen_pages_noprof+0x18d/0x380 [ 77.814250][ T5322] allocate_slab+0x79/0x5e0 [ 77.816156][ T5322] refill_objects+0x2d5/0x350 [ 77.818095][ T5322] __pcs_replace_empty_main+0x2bf/0x6b0 [ 77.820463][ T5322] kmem_cache_alloc_noprof+0x382/0x5f0 [ 77.822707][ T5322] stub_rx_loop+0xad9/0x2ee0 [ 77.825565][ T5322] kthread+0x388/0x470 [ 77.827296][ T5322] ret_from_fork+0x514/0xb70 [ 77.829684][ T5322] ret_from_fork_asm+0x1a/0x30 [ 77.831810][ T5322] page last free pid 15 tgid 15 stack trace: [ 77.834407][ T5322] __free_frozen_pages+0xc1e/0xd10 [ 77.836565][ T5322] rcu_core+0x78b/0x10a0 [ 77.838326][ T5322] handle_softirqs+0x225/0x840 [ 77.840292][ T5322] run_ksoftirqd+0x36/0x60 [ 77.842173][ T5322] smpboot_thread_fn+0x57c/0xa80 [ 77.844286][ T5322] kthread+0x388/0x470 [ 77.846022][ T5322] ret_from_fork+0x514/0xb70 [ 77.847962][ T5322] ret_from_fork_asm+0x1a/0x30 [ 77.849963][ T5322] [ 77.851021][ T5322] Memory state around the buggy address: [ 77.853453][ T5322] ffff88803fec6c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 77.856934][ T5322] ffff88803fec6d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 77.860264][ T5322] >ffff88803fec6d80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 77.863459][ T5322] ^ [ 77.865714][ T5322] ffff88803fec6e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 77.868927][ T5322] ffff88803fec6e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 77.872323][ T5322] ================================================================== qemu-system-x86_64: ahci: PRDT length for NCQ command (0x0) is smaller than the requested size (0xbf000) [ 78.089736][ T5322] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 78.092786][ T5322] CPU: 0 UID: 0 PID: 5322 Comm: stub_rx Not tainted syzkaller #0 PREEMPT(full) [ 78.096286][ T5322] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 78.100209][ T5322] Call Trace: [ 78.101718][ T5322] [ 78.103161][ T5322] vpanic+0x56c/0xa60 [ 78.105110][ T5322] ? __pfx_vpanic+0x10/0x10 [ 78.107049][ T5322] panic+0xc5/0xd0 [ 78.108685][ T5322] ? __pfx_panic+0x10/0x10 [ 78.110871][ T5322] ? preempt_schedule_thunk+0x16/0x40 [ 78.113174][ T5322] ? stub_rx_loop+0x2965/0x2ee0 [ 78.115300][ T5322] ? preempt_schedule_thunk+0x16/0x40 [ 78.117529][ T5322] ? stub_rx_loop+0x2965/0x2ee0 [ 78.119556][ T5322] check_panic_on_warn+0x89/0xb0 [ 78.121706][ T5322] ? stub_rx_loop+0x2965/0x2ee0 [ 78.123943][ T5322] end_report+0x73/0x170 [ 78.126091][ T5322] ? stub_rx_loop+0x2965/0x2ee0 [ 78.128564][ T5322] kasan_report+0x128/0x150 [ 78.130632][ T5322] ? stub_rx_loop+0x2965/0x2ee0 [ 78.133100][ T5322] stub_rx_loop+0x2965/0x2ee0 [ 78.135147][ T5322] ? __pfx_stub_rx_loop+0x10/0x10 [ 78.137258][ T5322] ? __kthread_parkme+0x196/0x1f0 [ 78.139410][ T5322] kthread+0x388/0x470 [ 78.141058][ T5322] ? __pfx_stub_rx_loop+0x10/0x10 [ 78.143105][ T5322] ? __pfx_kthread+0x10/0x10 [ 78.145089][ T5322] ret_from_fork+0x514/0xb70 [ 78.147074][ T5322] ? __pfx_ret_from_fork+0x10/0x10 [ 78.149273][ T5322] ? __switch_to+0xc89/0x1420 [ 78.151318][ T5322] ? __pfx_kthread+0x10/0x10 [ 78.153311][ T5322] ret_from_fork_asm+0x1a/0x30 [ 78.155291][ T5322] [ 78.156963][ T5322] Kernel Offset: disabled [ 78.158682][ T5322] Rebooting in 86400 seconds..