usbtmc 4-1:16.0: usbtmc_read_bulk_cb - nonzero read bulk status received: -71 usbtmc 4-1:16.0: usbtmc_read_bulk_cb - nonzero read bulk status received: -71 usbtmc 4-1:16.0: usbtmc_read_bulk_cb - nonzero read bulk status received: -71 ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: slab-use-after-free in atomic_inc include/linux/atomic/atomic-instrumented.h:435 [inline] BUG: KASAN: slab-use-after-free in usb_anchor_suspend_wakeups drivers/usb/core/urb.c:910 [inline] BUG: KASAN: slab-use-after-free in usb_anchor_suspend_wakeups+0x28/0x40 drivers/usb/core/urb.c:907 Write of size 4 at addr ffff888034cfa110 by task syz.1.50/6856 CPU: 1 UID: 0 PID: 6856 Comm: syz.1.50 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:194 [inline] kasan_check_range+0x100/0x1b0 mm/kasan/generic.c:200 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_inc include/linux/atomic/atomic-instrumented.h:435 [inline] usb_anchor_suspend_wakeups drivers/usb/core/urb.c:910 [inline] usb_anchor_suspend_wakeups+0x28/0x40 drivers/usb/core/urb.c:907 __usb_hcd_giveback_urb+0x220/0x610 drivers/usb/core/hcd.c:1648 usb_hcd_giveback_urb+0x39b/0x450 drivers/usb/core/hcd.c:1745 dummy_timer+0x1809/0x3ad0 drivers/usb/gadget/udc/dummy_hcd.c:1995 __run_hrtimer kernel/time/hrtimer.c:1777 [inline] __hrtimer_run_queues+0x202/0xc40 kernel/time/hrtimer.c:1841 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1858 handle_softirqs+0x219/0x950 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:syscall_enter_from_user_mode_work include/linux/entry-common.h:75 [inline] RIP: 0010:syscall_enter_from_user_mode include/linux/entry-common.h:109 [inline] RIP: 0010:do_syscall_64+0x9a/0xf80 arch/x86/entry/syscall_64.c:90 Code: 00 48 8b 7d 08 e8 16 82 00 00 0f 1f 44 00 00 0f 1f 44 00 00 90 e8 d6 89 4f f6 90 90 e8 cf 87 4f f6 fb 65 48 8b 05 fe 2e 3b 08 <48> 8b 50 08 f6 c2 3f 0f 85 79 03 00 00 90 90 41 81 fc d6 01 00 00 RSP: 0018:ffffc9000421ff18 EFLAGS: 00000202 RAX: ffff8880253124c0 RBX: ffffc9000421ff48 RCX: ffffffff81c707ef RDX: 0000000000000000 RSI: ffffffff8dacdf23 RDI: ffffffff8bf2b400 RBP: ffffc9000421ff38 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff9088b4d7 R11: 0000000000000000 R12: 0000000000000010 R13: 0000000000000010 R14: 0000000000000000 R15: 0000000000000000 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4bf578e969 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4bf49fe038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4bf59b5fa0 RCX: 00007f4bf578e969 RDX: 0000200000000040 RSI: 00000000c0145b0e RDI: 0000000000000004 RBP: 00007f4bf5810ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4bf59b5fa0 R15: 00007ffd6e53a328 Allocated by task 6856: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 poison_kmalloc_redzone mm/kasan/common.c:397 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:414 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] usbtmc_open+0xa9/0x9b0 drivers/usb/class/usbtmc.c:175 usb_open+0x189/0x220 drivers/usb/core/file.c:47 chrdev_open+0x234/0x6a0 fs/char_dev.c:414 do_dentry_open+0x748/0x1590 fs/open.c:962 vfs_open+0x82/0x3f0 fs/open.c:1094 do_open fs/namei.c:4628 [inline] path_openat+0x2078/0x3140 fs/namei.c:4787 do_filp_open+0x20b/0x470 fs/namei.c:4814 do_sys_openat2+0x121/0x290 fs/open.c:1430 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x174/0x210 fs/open.c:1447 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 6856: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6670 [inline] kfree+0x2f8/0x6e0 mm/slub.c:6878 usbtmc_release+0x271/0x380 drivers/usb/class/usbtmc.c:261 __fput+0x402/0xb70 fs/file_table.c:468 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xfb/0x540 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x4ee/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888034cfa000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 272 bytes inside of freed 1024-byte region [ffff888034cfa000, ffff888034cfa400) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x34cf8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88813ff26dc0 ffffea00015a1400 dead000000000002 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88813ff26dc0 ffffea00015a1400 dead000000000002 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0000d33e01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5832, tgid 5832 (syz-executor), ts 78474057386, free_ts 76803444492 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1846 prep_new_page mm/page_alloc.c:1854 [inline] get_page_from_freelist+0xd0b/0x31a0 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x25f/0x2430 mm/page_alloc.c:5210 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab mm/slub.c:3248 [inline] new_slab+0x2c3/0x430 mm/slub.c:3302 ___slab_alloc+0xe18/0x1c90 mm/slub.c:4656 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] __kmalloc_cache_noprof+0x485/0x800 mm/slub.c:5771 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] rxrpc_service_prealloc+0xee/0x1b0 net/rxrpc/call_accept.c:167 rxrpc_listen+0x23f/0x350 net/rxrpc/af_rxrpc.c:236 afs_open_socket+0x2d9/0x400 fs/afs/rxrpc.c:107 afs_net_init+0x825/0xb00 fs/afs/main.c:116 ops_init+0x1e2/0x5f0 net/core/net_namespace.c:137 setup_net+0x11d/0x3a0 net/core/net_namespace.c:446 copy_net_ns+0x351/0x7c0 net/core/net_namespace.c:581 create_new_namespaces+0x3ea/0xab0 kernel/nsproxy.c:130 page last free pid 5810 tgid 5807 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7df/0x1170 mm/page_alloc.c:2943 __folio_put+0x329/0x450 mm/swap.c:112 folio_put include/linux/mm.h:1612 [inline] put_page include/linux/mm.h:1681 [inline] put_netmem net/core/skbuff.c:7417 [inline] skb_page_unref include/linux/skbuff_ref.h:43 [inline] __skb_frag_unref include/linux/skbuff_ref.h:56 [inline] skb_release_data+0x81a/0x9e0 net/core/skbuff.c:1101 skb_release_all net/core/skbuff.c:1182 [inline] __kfree_skb net/core/skbuff.c:1196 [inline] kfree_skb_napi_cache net/core/skbuff.c:7210 [inline] skb_attempt_defer_free+0x52f/0x710 net/core/skbuff.c:7238 tcp_eat_recv_skb net/ipv4/tcp.c:1583 [inline] tcp_recvmsg_locked+0x11e3/0x2910 net/ipv4/tcp.c:2883 tcp_recvmsg+0x12f/0x680 net/ipv4/tcp.c:2929 inet6_recvmsg+0x129/0x6a0 net/ipv6/af_inet6.c:678 sock_recvmsg_nosec net/socket.c:1078 [inline] sock_recvmsg+0xfe/0x250 net/socket.c:1100 sock_read_iter+0x2b9/0x3b0 net/socket.c:1170 new_sync_read fs/read_write.c:491 [inline] vfs_read+0xa98/0xcf0 fs/read_write.c:572 ksys_read+0x1f8/0x250 fs/read_write.c:715 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888034cfa000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888034cfa080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888034cfa100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888034cfa180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888034cfa200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: 00 48 8b add %cl,-0x75(%rax) 3: 7d 08 jge 0xd 5: e8 16 82 00 00 call 0x8220 a: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) f: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 14: 90 nop 15: e8 d6 89 4f f6 call 0xf64f89f0 1a: 90 nop 1b: 90 nop 1c: e8 cf 87 4f f6 call 0xf64f87f0 21: fb sti 22: 65 48 8b 05 fe 2e 3b mov %gs:0x83b2efe(%rip),%rax # 0x83b2f28 29: 08 * 2a: 48 8b 50 08 mov 0x8(%rax),%rdx <-- trapping instruction 2e: f6 c2 3f test $0x3f,%dl 31: 0f 85 79 03 00 00 jne 0x3b0 37: 90 nop 38: 90 nop 39: 41 81 fc d6 01 00 00 cmp $0x1d6,%r12d