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) [ 94.859333][ T4649] Bluetooth: hci0: command tx timeout [ 95.237998][ T48] usb 5-1: new high-speed USB device number 2 using dummy_hcd [ 95.388093][ T48] usb 5-1: Using ep0 maxpacket: 8 [ 95.393060][ T48] usb 5-1: config 0 has an invalid interface number: 143 but max is 0 [ 95.396474][ T48] usb 5-1: config 0 has no interface number 0 [ 95.401166][ T48] usb 5-1: New USB device found, idVendor=2058, idProduct=1005, bcdDevice=c1.9b [ 95.404633][ T48] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 95.412753][ T48] usb 5-1: config 0 descriptor?? [ 95.539814][ T48] viperboard 5-1:0.143: version 0.00 found at bus 005 address 002 [ 95.583853][ T48] viperboard-i2c viperboard-i2c.3.auto: error -EIO: failure setting i2c_bus_freq to 100 [ 95.591594][ T48] viperboard-i2c viperboard-i2c.3.auto: probe with driver viperboard-i2c failed with error -5 [ 95.771397][ T5323] usbip-host 1-1: usbip-host: register new device (bus 1 dev 2) [ 95.789475][ T5323] usbip-host 1-1: stub up [ 95.864387][ C0] usbip-host 1-1: endpoint 0 is stalled [ 95.871771][ T48] usb 5-1: USB disconnect, device number 2 [ 95.877610][ T5331] ================================================================== [ 95.880994][ T5331] BUG: KASAN: slab-use-after-free in stub_rx_loop+0x2965/0x2ee0 [ 95.884285][ T5331] Read of size 4 at addr ffff88801f870db0 by task stub_rx/5331 [ 95.887255][ T5331] [ 95.888224][ T5331] CPU: 0 UID: 0 PID: 5331 Comm: stub_rx Not tainted syzkaller #0 PREEMPT(full) [ 95.888237][ T5331] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 95.888243][ T5331] Call Trace: [ 95.888250][ T5331] [ 95.888255][ T5331] dump_stack_lvl+0xe8/0x150 [ 95.888273][ T5331] print_address_description+0x55/0x1e0 [ 95.888287][ T5331] ? stub_rx_loop+0x2965/0x2ee0 [ 95.888299][ T5331] print_report+0x58/0x70 [ 95.888311][ T5331] kasan_report+0x117/0x150 [ 95.888331][ T5331] ? stub_rx_loop+0x2965/0x2ee0 [ 95.888344][ T5331] stub_rx_loop+0x2965/0x2ee0 [ 95.888360][ T5331] ? __pfx_stub_rx_loop+0x10/0x10 [ 95.888372][ T5331] ? __kthread_parkme+0x196/0x1f0 [ 95.888385][ T5331] kthread+0x388/0x470 [ 95.888397][ T5331] ? __pfx_stub_rx_loop+0x10/0x10 [ 95.888407][ T5331] ? __pfx_kthread+0x10/0x10 [ 95.888421][ T5331] ret_from_fork+0x514/0xb70 [ 95.888436][ T5331] ? __pfx_ret_from_fork+0x10/0x10 [ 95.888449][ T5331] ? __switch_to+0xc89/0x1420 [ 95.888461][ T5331] ? __pfx_kthread+0x10/0x10 [ 95.888473][ T5331] ret_from_fork_asm+0x1a/0x30 [ 95.888487][ T5331] [ 95.888490][ T5331] [ 95.935155][ T5331] Allocated by task 5331: [ 95.936996][ T5331] kasan_save_track+0x3e/0x80 [ 95.938981][ T5331] __kasan_slab_alloc+0x6c/0x80 [ 95.941033][ T5331] kmem_cache_alloc_noprof+0x2a0/0x5f0 [ 95.943475][ T5331] stub_rx_loop+0xad9/0x2ee0 [ 95.945414][ T5331] kthread+0x388/0x470 [ 95.947133][ T5331] ret_from_fork+0x514/0xb70 [ 95.949056][ T5331] ret_from_fork_asm+0x1a/0x30 [ 95.950991][ T5331] [ 95.952008][ T5331] Freed by task 5332: [ 95.953656][ T5331] kasan_save_track+0x3e/0x80 [ 95.955665][ T5331] kasan_save_free_info+0x40/0x50 [ 95.957629][ T5331] __kasan_slab_free+0x5c/0x80 [ 95.959546][ T5331] kmem_cache_free+0x182/0x650 [ 95.961498][ T5331] stub_tx_loop+0x1b16/0x2800 [ 95.963438][ T5331] kthread+0x388/0x470 [ 95.965117][ T5331] ret_from_fork+0x514/0xb70 [ 95.966990][ T5331] ret_from_fork_asm+0x1a/0x30 [ 95.969000][ T5331] [ 95.970053][ T5331] The buggy address belongs to the object at ffff88801f870d80 [ 95.970053][ T5331] which belongs to the cache stub_priv of size 64 [ 95.975884][ T5331] The buggy address is located 48 bytes inside of [ 95.975884][ T5331] freed 64-byte region [ffff88801f870d80, ffff88801f870dc0) [ 95.981328][ T5331] [ 95.982379][ T5331] The buggy address belongs to the physical page: [ 95.985145][ T5331] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88801f870e00 pfn:0x1f870 [ 95.989235][ T5331] flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) [ 95.992650][ T5331] page_type: f5(slab) [ 95.994331][ T5331] raw: 00fff00000000200 ffff888033f0e280 ffff888037dd7048 ffff888037dd7048 [ 95.997910][ T5331] raw: ffff88801f870e00 000000080020001c 00000000f5000000 0000000000000000 [ 96.001357][ T5331] page dumped because: kasan: bad access detected [ 96.004051][ T5331] page_owner tracks the page as allocated [ 96.006432][ T5331] page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5331, tgid 5331 (stub_rx), ts 95863112897, free_ts 95794416546 [ 96.013821][ T5331] post_alloc_hook+0x1f9/0x250 [ 96.015687][ T5331] get_page_from_freelist+0x21fa/0x2270 [ 96.018328][ T5331] __alloc_frozen_pages_noprof+0x18d/0x380 [ 96.021088][ T5331] allocate_slab+0x79/0x5e0 [ 96.023056][ T5331] refill_objects+0x2d5/0x350 [ 96.025536][ T5331] __pcs_replace_empty_main+0x2bf/0x6b0 [ 96.028275][ T5331] kmem_cache_alloc_noprof+0x382/0x5f0 [ 96.030627][ T5331] stub_rx_loop+0xad9/0x2ee0 [ 96.032636][ T5331] kthread+0x388/0x470 [ 96.034398][ T5331] ret_from_fork+0x514/0xb70 [ 96.036489][ T5331] ret_from_fork_asm+0x1a/0x30 [ 96.038790][ T5331] page last free pid 5284 tgid 5284 stack trace: [ 96.042129][ T5331] __free_frozen_pages+0xc1e/0xd10 [ 96.044535][ T5331] __slab_free+0x274/0x2c0 [ 96.046286][ T5331] qlist_free_all+0x99/0x100 [ 96.048103][ T5331] kasan_quarantine_reduce+0x148/0x160 [ 96.050222][ T5331] __kasan_slab_alloc+0x22/0x80 [ 96.052240][ T5331] kmem_cache_alloc_noprof+0x2a0/0x5f0 [ 96.054470][ T5331] do_getname+0x2e/0x250 [ 96.056174][ T5331] do_sys_openat2+0xcc/0x200 [ 96.058008][ T5331] __x64_sys_openat+0x138/0x170 [ 96.059952][ T5331] do_syscall_64+0x174/0x580 [ 96.061823][ T5331] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 96.064201][ T5331] [ 96.065195][ T5331] Memory state around the buggy address: [ 96.067395][ T5331] ffff88801f870c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 96.070496][ T5331] ffff88801f870d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 96.073954][ T5331] >ffff88801f870d80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 96.077741][ T5331] ^ [ 96.080299][ T5331] ffff88801f870e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 96.083967][ T5331] ffff88801f870e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 96.087294][ T5331] ================================================================== [ 96.230118][ T5331] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 96.233191][ T5331] CPU: 0 UID: 0 PID: 5331 Comm: stub_rx Not tainted syzkaller #0 PREEMPT(full) [ 96.236915][ T5331] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 96.241132][ T5331] Call Trace: [ 96.242629][ T5331] [ 96.243929][ T5331] vpanic+0x56c/0xa60 [ 96.245632][ T5331] ? __pfx_vpanic+0x10/0x10 [ 96.247607][ T5331] panic+0xc5/0xd0 [ 96.249261][ T5331] ? __pfx_panic+0x10/0x10 [ 96.251195][ T5331] ? preempt_schedule_thunk+0x16/0x40 [ 96.253493][ T5331] ? stub_rx_loop+0x2965/0x2ee0 [ 96.255553][ T5331] ? preempt_schedule_thunk+0x16/0x40 [ 96.257508][ T5331] ? stub_rx_loop+0x2965/0x2ee0 [ 96.259466][ T5331] check_panic_on_warn+0x89/0xb0 [ 96.261743][ T5331] ? stub_rx_loop+0x2965/0x2ee0 [ 96.263725][ T5331] end_report+0x73/0x170 [ 96.265418][ T5331] ? stub_rx_loop+0x2965/0x2ee0 [ 96.267370][ T5331] kasan_report+0x128/0x150 [ 96.269227][ T5331] ? stub_rx_loop+0x2965/0x2ee0 [ 96.271120][ T5331] stub_rx_loop+0x2965/0x2ee0 [ 96.272951][ T5331] ? __pfx_stub_rx_loop+0x10/0x10 [ 96.275077][ T5331] ? __kthread_parkme+0x196/0x1f0 [ 96.277046][ T5331] kthread+0x388/0x470 [ 96.278643][ T5331] ? __pfx_stub_rx_loop+0x10/0x10 [ 96.280672][ T5331] ? __pfx_kthread+0x10/0x10 [ 96.282645][ T5331] ret_from_fork+0x514/0xb70 [ 96.284651][ T5331] ? __pfx_ret_from_fork+0x10/0x10 [ 96.286798][ T5331] ? __switch_to+0xc89/0x1420 [ 96.288807][ T5331] ? __pfx_kthread+0x10/0x10 [ 96.290689][ T5331] ret_from_fork_asm+0x1a/0x30 [ 96.292617][ T5331] [ 96.294299][ T5331] Kernel Offset: disabled [ 96.296086][ T5331] Rebooting in 86400 seconds..