================================================================== BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:663 Read of size 1 at addr ffff88810eb8d03c by task syz.1.642/3246 CPU: 0 PID: 3246 Comm: syz.1.642 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x100/0x140 mm/kasan/report.c:452 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 kobject_get+0x113/0x120 lib/kobject.c:663 get_device drivers/base/core.c:3361 [inline] device_add+0x331/0xc00 drivers/base/core.c:3191 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f919ca09559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f919b461028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f919cc8ffa0 RCX: 00007f919ca09559 RDX: 00000000000001ff RSI: 0000200000000780 RDI: ffffffffffffff9c RBP: 00007f919caa0b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f919cc90038 R14: 00007f919cc8ffa0 R15: 00007ffe25372608 Allocated by task 1541: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x19f/0x330 mm/slub.c:4038 kmalloc include/linux/slab.h:560 [inline] kzalloc include/linux/slab.h:667 [inline] __register_sysctl_table+0xeb/0x1240 fs/proc/proc_sysctl.c:1323 register_net_sysctl+0x2c/0x40 net/sysctl_net.c:121 neigh_sysctl_register+0x9a9/0xa90 net/core/neighbour.c:3713 devinet_sysctl_register+0xaf/0x1e0 net/ipv4/devinet.c:2635 inetdev_init+0x26c/0x490 net/ipv4/devinet.c:277 inetdev_event+0x1f4/0x1010 net/ipv4/devinet.c:1544 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2052 [inline] call_netdevice_notifiers_extack net/core/dev.c:2064 [inline] call_netdevice_notifiers+0x119/0x190 net/core/dev.c:2078 register_netdevice+0x100a/0x13a0 net/core/dev.c:10099 macsec_newlink+0x5c6/0xcf0 drivers/net/macsec.c:4073 __rtnl_newlink net/core/rtnetlink.c:3494 [inline] rtnl_newlink+0x1307/0x1830 net/core/rtnetlink.c:3542 rtnetlink_rcv_msg+0x9e9/0xca0 net/core/rtnetlink.c:5622 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2508 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5640 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x949/0xb70 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] __sys_sendto+0x467/0x620 net/socket.c:2007 __do_sys_sendto net/socket.c:2019 [inline] __se_sys_sendto net/socket.c:2015 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2015 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 2904: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:362 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kfree+0xc0/0x270 mm/slub.c:4196 skb_free_head net/core/skbuff.c:606 [inline] skb_release_data+0x53b/0x690 net/core/skbuff.c:626 skb_release_all net/core/skbuff.c:680 [inline] __kfree_skb+0x50/0x70 net/core/skbuff.c:694 tcp_rcv_established+0xd6f/0x1a00 net/ipv4/tcp_input.c:5923 tcp_v4_do_rcv+0x3e4/0x7c0 net/ipv4/tcp_ipv4.c:1699 tcp_v4_rcv+0x2295/0x2810 net/ipv4/tcp_ipv4.c:2095 ip_protocol_deliver_rcu+0x302/0x650 net/ipv4/ip_input.c:204 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip_local_deliver+0x2dd/0x530 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:461 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:558 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:609 [inline] ip_sublist_rcv+0x75b/0x8b0 net/ipv4/ip_input.c:617 ip_list_rcv+0x3e4/0x430 net/ipv4/ip_input.c:652 __netif_receive_skb_list_ptype net/core/dev.c:5457 [inline] __netif_receive_skb_list_core+0x57e/0x770 net/core/dev.c:5505 __netif_receive_skb_list net/core/dev.c:5557 [inline] netif_receive_skb_list_internal+0x7f8/0xaa0 net/core/dev.c:5667 gro_normal_list net/core/dev.c:5821 [inline] napi_complete_done+0x375/0x780 net/core/dev.c:6570 virtqueue_napi_complete drivers/net/virtio_net.c:357 [inline] virtnet_poll+0x963/0xfa0 drivers/net/virtio_net.c:1570 napi_poll net/core/dev.c:6886 [inline] net_rx_action+0x48d/0xed0 net/core/dev.c:6956 __do_softirq+0x255/0x563 kernel/softirq.c:309 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 kvfree_call_rcu+0x117/0x670 kernel/rcu/tree.c:3539 drop_sysctl_table+0x2f5/0x430 fs/proc/proc_sysctl.c:1684 unregister_sysctl_table+0x75/0x120 fs/proc/proc_sysctl.c:1722 unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:127 neigh_sysctl_unregister+0x78/0x90 net/core/neighbour.c:3732 devinet_sysctl_unregister net/ipv4/devinet.c:2650 [inline] inetdev_destroy net/ipv4/devinet.c:326 [inline] inetdev_event+0x7df/0x1010 net/ipv4/devinet.c:1612 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2052 [inline] call_netdevice_notifiers_extack net/core/dev.c:2064 [inline] call_netdevice_notifiers net/core/dev.c:2078 [inline] unregister_netdevice_many+0x100e/0x19f0 net/core/dev.c:10779 default_device_exit_batch+0x35e/0x3c0 net/core/dev.c:11299 ops_exit_list net/core/net_namespace.c:190 [inline] cleanup_net+0x5fe/0xb80 net/core/net_namespace.c:609 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff88810eb8d000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 60 bytes inside of 1024-byte region [ffff88810eb8d000, ffff88810eb8d400) The buggy address belongs to the page: page:ffffea00043ae200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10eb88 head:ffffea00043ae200 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 0000000000000000 0000000200000001 ffff888100042f00 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 54, ts 25206705181, free_ts 25173648825 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc_track_caller+0x1e4/0x310 mm/slub.c:4541 __kmalloc_reserve net/core/skbuff.c:144 [inline] __alloc_skb+0xdc/0x520 net/core/skbuff.c:212 alloc_skb include/linux/skbuff.h:1126 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet6_rt_notify+0x293/0x480 net/ipv6/route.c:6060 fib6_add_rt2node net/ipv6/ip6_fib.c:1252 [inline] fib6_add+0x2174/0x3c60 net/ipv6/ip6_fib.c:1481 __ip6_ins_rt net/ipv6/route.c:1305 [inline] ip6_ins_rt+0xd3/0x130 net/ipv6/route.c:1315 __ipv6_ifa_notify+0x4df/0xe70 net/ipv6/addrconf.c:6177 ipv6_ifa_notify net/ipv6/addrconf.c:6217 [inline] addrconf_dad_completed+0x18c/0xe30 net/ipv6/addrconf.c:4262 addrconf_dad_work+0xc5f/0x1480 net/ipv6/addrconf.c:-1 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] __free_pages_ok+0x80b/0x830 mm/page_alloc.c:1629 free_the_page mm/page_alloc.c:5445 [inline] __free_pages+0xd8/0x390 mm/page_alloc.c:5454 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab mm/slub.c:1920 [inline] unfreeze_partials+0x150/0x180 mm/slub.c:2415 put_cpu_partial+0xc1/0x180 mm/slub.c:2451 __slab_free+0x2c9/0x3a0 mm/slub.c:3100 do_slab_free mm/slub.c:3196 [inline] ___cache_free+0x10e/0x130 mm/slub.c:3215 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x15a/0x2d0 mm/slub.c:2965 getname_flags+0xba/0x510 fs/namei.c:141 getname fs/namei.c:212 [inline] user_path_create fs/namei.c:3715 [inline] do_mkdirat+0x4b/0x340 fs/namei.c:3855 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 Memory state around the buggy address: ffff88810eb8cf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810eb8cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88810eb8d000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810eb8d080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810eb8d100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ------------[ cut here ]------------ kobject: '@ ¾�ˆÿÿX ' (ffff88810eb8d000): is not initialized, yet kobject_get() is being called. WARNING: CPU: 1 PID: 3246 at lib/kobject.c:666 kobject_get+0x7c/0x120 lib/kobject.c:664 Modules linked in: CPU: 1 PID: 3246 Comm: syz.1.642 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 RIP: 0010:kobject_get+0x7c/0x120 lib/kobject.c:664 Code: 0a ff 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 16 3b 45 ff 48 8b 33 48 c7 c7 00 a6 41 85 48 89 da e8 a4 30 20 02 <0f> 0b eb 0c e8 1b ad 0a ff eb 4c e8 14 ad 0a ff 4c 8d 73 38 4c 89 RSP: 0018:ffffc90000c47970 EFLAGS: 00010246 RAX: 819cbf39a4f42400 RBX: ffff88810eb8d000 RCX: 0000000000080000 RDX: ffffc900024a4000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000c47988 R08: ffff8881f7152fff R09: 1ffff1103ee2a5ff R10: dffffc0000000000 R11: ffffed103ee2a600 R12: 0000000000000000 R13: ffff8881075e3068 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f919b4616c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000040 CR3: 000000011d4fd000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: get_device drivers/base/core.c:3361 [inline] device_add+0x331/0xc00 drivers/base/core.c:3191 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f919ca09559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f919b461028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f919cc8ffa0 RCX: 00007f919ca09559 RDX: 00000000000001ff RSI: 0000200000000780 RDI: ffffffffffffff9c RBP: 00007f919caa0b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f919cc90038 R14: 00007f919cc8ffa0 R15: 00007ffe25372608 ---[ end trace 362cd8741791da31 ]--- ------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 3246 at lib/refcount.c:25 refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 0 PID: 3246 Comm: syz.1.642 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 RIP: 0010:refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25 Code: 04 01 48 c7 c7 80 53 40 85 e8 78 04 3c 02 0f 0b eb df e8 ef 80 26 ff c6 05 cd 70 82 04 01 48 c7 c7 c0 52 40 85 e8 5c 04 3c 02 <0f> 0b eb c3 e8 d3 80 26 ff c6 05 b2 70 82 04 01 48 c7 c7 20 53 40 RSP: 0018:ffffc90000c47950 EFLAGS: 00010246 RAX: 819cbf39a4f42400 RBX: 0000000000000002 RCX: 0000000000080000 RDX: ffffc900024a4000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000c47960 R08: ffff8881f7052fff R09: 1ffff1103ee0a5ff R10: dffffc0000000000 R11: ffffed103ee0a600 R12: 0000000000000000 R13: ffff8881075e3068 R14: 0000000000000002 R15: 0000000000000000 FS: 00007f919b4616c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc248efff4 CR3: 000000011d4fd000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_add include/linux/refcount.h:-1 [inline] __refcount_inc include/linux/refcount.h:250 [inline] refcount_inc include/linux/refcount.h:267 [inline] kref_get include/linux/kref.h:45 [inline] kobject_get+0xfb/0x120 lib/kobject.c:667 get_device drivers/base/core.c:3361 [inline] device_add+0x331/0xc00 drivers/base/core.c:3191 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f919ca09559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f919b461028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f919cc8ffa0 RCX: 00007f919ca09559 RDX: 00000000000001ff RSI: 0000200000000780 RDI: ffffffffffffff9c RBP: 00007f919caa0b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f919cc90038 R14: 00007f919cc8ffa0 R15: 00007ffe25372608 ---[ end trace 362cd8741791da32 ]--- ------------[ cut here ]------------ kobject: '@ ¾�ˆÿÿX ' (ffff88810eb8d000): is not initialized, yet kobject_get() is being called. WARNING: CPU: 0 PID: 3246 at lib/kobject.c:666 kobject_get lib/kobject.c:664 [inline] WARNING: CPU: 0 PID: 3246 at lib/kobject.c:666 kobject_add_internal+0x12e/0xde0 lib/kobject.c:248 Modules linked in: CPU: 0 PID: 3246 Comm: syz.1.642 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 RIP: 0010:kobject_get lib/kobject.c:664 [inline] RIP: 0010:kobject_add_internal+0x12e/0xde0 lib/kobject.c:248 Code: b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 4c 89 e7 e8 95 22 45 ff 49 8b 34 24 48 c7 c7 00 a6 41 85 4c 89 e2 e8 22 18 20 02 <0f> 0b e9 04 01 00 00 e8 96 94 0a ff b8 fe ff ff ff e9 b0 09 00 00 RSP: 0018:ffffc90000c477d8 EFLAGS: 00010246 RAX: 819cbf39a4f42400 RBX: ffff8881096b8900 RCX: 0000000000080000 RDX: ffffc900024a4000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000c47830 R08: ffffc90000c47167 R09: fffff52000188e60 R10: dffffc0000000000 R11: fffff52000188e2d R12: ffff88810eb8d000 R13: ffff8881096b8918 R14: 0000000000000000 R15: 1ffff110212d7120 FS: 00007f919b4616c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc248efff4 CR3: 000000011d4fd000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kobject_add_varg lib/kobject.c:398 [inline] kobject_add+0x165/0x230 lib/kobject.c:450 class_dir_create_and_add drivers/base/core.c:2825 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:2880 device_add+0x349/0xc00 drivers/base/core.c:3192 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f919ca09559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f919b461028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f919cc8ffa0 RCX: 00007f919ca09559 RDX: 00000000000001ff RSI: 0000200000000780 RDI: ffffffffffffff9c RBP: 00007f919caa0b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f919cc90038 R14: 00007f919cc8ffa0 R15: 00007ffe25372608 ---[ end trace 362cd8741791da33 ]--- ------------[ cut here ]------------ refcount_t: saturated; leaking memory. WARNING: CPU: 0 PID: 3246 at lib/refcount.c:22 refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22 Modules linked in: CPU: 0 PID: 3246 Comm: syz.1.642 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 RIP: 0010:refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22 Code: 04 01 48 c7 c7 40 52 40 85 e8 24 04 3c 02 0f 0b eb 8b e8 9b 80 26 ff c6 05 78 70 82 04 01 48 c7 c7 40 52 40 85 e8 08 04 3c 02 <0f> 0b e9 6c ff ff ff e8 7c 80 26 ff c6 05 5d 70 82 04 01 48 c7 c7 RSP: 0018:ffffc90000c477b8 EFLAGS: 00010246 RAX: 819cbf39a4f42400 RBX: 0000000000000001 RCX: 0000000000080000 RDX: ffffc900024a4000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000c477c8 R08: ffffc90000c47147 R09: fffff52000188e5c R10: dffffc0000000000 R11: fffff52000188e29 R12: 00000000c0000000 R13: ffff8881096b8918 R14: 0000000000000001 R15: ffff88810eb8d038 FS: 00007f919b4616c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc248efff4 CR3: 000000011d4fd000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_add include/linux/refcount.h:-1 [inline] __refcount_inc include/linux/refcount.h:250 [inline] refcount_inc include/linux/refcount.h:267 [inline] kref_get include/linux/kref.h:45 [inline] kobject_get lib/kobject.c:667 [inline] kobject_add_internal+0xc44/0xde0 lib/kobject.c:248 kobject_add_varg lib/kobject.c:398 [inline] kobject_add+0x165/0x230 lib/kobject.c:450 class_dir_create_and_add drivers/base/core.c:2825 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:2880 device_add+0x349/0xc00 drivers/base/core.c:3192 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f919ca09559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f919b461028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f919cc8ffa0 RCX: 00007f919ca09559 RDX: 00000000000001ff RSI: 0000200000000780 RDI: ffffffffffffff9c RBP: 00007f919caa0b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f919cc90038 R14: 00007f919cc8ffa0 R15: 00007ffe25372608 ---[ end trace 362cd8741791da34 ]--- ------------[ cut here ]------------ kobject: '@ ¾�ˆÿÿX ' (ffff88810eb8d000): is not initialized, yet kobject_put() is being called. WARNING: CPU: 0 PID: 3246 at lib/kobject.c:760 kobject_put+0x8a/0x270 lib/kobject.c:758 Modules linked in: CPU: 0 PID: 3246 Comm: syz.1.642 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 RIP: 0010:kobject_put+0x8a/0x270 lib/kobject.c:758 Code: 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 e8 39 45 ff 48 8b 33 48 c7 c7 80 a6 41 85 48 89 da e8 76 2f 20 02 <0f> 0b eb 0f e8 ed ab 0a ff e9 7c 01 00 00 e8 e3 ab 0a ff 4c 8d 7b RSP: 0018:ffffc90000c477a0 EFLAGS: 00010246 RAX: 819cbf39a4f42400 RBX: ffff88810eb8d000 RCX: 0000000000080000 RDX: ffffc900024a4000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000c477c8 R08: ffff8881f7052fff R09: 1ffff1103ee0a5ff R10: dffffc0000000000 R11: ffffed103ee0a600 R12: ffff88810eb8d000 R13: ffff88810eb8d03c R14: 1ffff11021d71a07 R15: 0000000000000000 FS: 00007f919b4616c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc248efff4 CR3: 000000011d4fd000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kobject_add_internal+0xb52/0xde0 lib/kobject.c:266 kobject_add_varg lib/kobject.c:398 [inline] kobject_add+0x165/0x230 lib/kobject.c:450 class_dir_create_and_add drivers/base/core.c:2825 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:2880 device_add+0x349/0xc00 drivers/base/core.c:3192 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f919ca09559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f919b461028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f919cc8ffa0 RCX: 00007f919ca09559 RDX: 00000000000001ff RSI: 0000200000000780 RDI: ffffffffffffff9c RBP: 00007f919caa0b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f919cc90038 R14: 00007f919cc8ffa0 R15: 00007ffe25372608 ---[ end trace 362cd8741791da35 ]--- ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 3246 at lib/refcount.c:28 refcount_warn_saturate+0x120/0x1a0 lib/refcount.c:28 Modules linked in: CPU: 1 PID: 3246 Comm: syz.1.642 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 RIP: 0010:refcount_warn_saturate+0x120/0x1a0 lib/refcount.c:28 Code: 04 01 48 c7 c7 c0 52 40 85 e8 5c 04 3c 02 0f 0b eb c3 e8 d3 80 26 ff c6 05 b2 70 82 04 01 48 c7 c7 20 53 40 85 e8 40 04 3c 02 <0f> 0b eb a7 e8 b7 80 26 ff c6 05 93 70 82 04 01 48 c7 c7 40 52 40 RSP: 0018:ffffc90000c47780 EFLAGS: 00010246 RAX: 819cbf39a4f42400 RBX: 0000000000000003 RCX: 0000000000080000 RDX: ffffc900024a4000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000c47790 R08: ffff8881f7052fff R09: 1ffff1103ee0a5ff R10: dffffc0000000000 R11: ffffed103ee0a600 R12: 00000000c0000000 R13: ffff88810eb8d03c R14: 0000000000000003 R15: ffff88810eb8d038 FS: 00007f919b4616c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb7322182f8 CR3: 000000011d4fd000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_sub_and_test include/linux/refcount.h:283 [inline] __refcount_dec_and_test include/linux/refcount.h:315 [inline] refcount_dec_and_test include/linux/refcount.h:333 [inline] kref_put include/linux/kref.h:64 [inline] kobject_put+0x231/0x270 lib/kobject.c:761 kobject_add_internal+0xb52/0xde0 lib/kobject.c:266 kobject_add_varg lib/kobject.c:398 [inline] kobject_add+0x165/0x230 lib/kobject.c:450 class_dir_create_and_add drivers/base/core.c:2825 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:2880 device_add+0x349/0xc00 drivers/base/core.c:3192 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f919ca09559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f919b461028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f919cc8ffa0 RCX: 00007f919ca09559 RDX: 00000000000001ff RSI: 0000200000000780 RDI: ffffffffffffff9c RBP: 00007f919caa0b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f919cc90038 R14: 00007f919cc8ffa0 R15: 00007ffe25372608 ---[ end trace 362cd8741791da36 ]--- kobject_add_internal failed for android_usb (error: -2 parent: @ ¾�ˆÿÿX ) ------------[ cut here ]------------ kobject: '@ ¾�ˆÿÿX ' (ffff88810eb8d000): is not initialized, yet kobject_put() is being called. WARNING: CPU: 1 PID: 3246 at lib/kobject.c:760 kobject_put+0x8a/0x270 lib/kobject.c:758 Modules linked in: CPU: 1 PID: 3246 Comm: syz.1.642 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 RIP: 0010:kobject_put+0x8a/0x270 lib/kobject.c:758 Code: 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 e8 39 45 ff 48 8b 33 48 c7 c7 80 a6 41 85 48 89 da e8 76 2f 20 02 <0f> 0b eb 0f e8 ed ab 0a ff e9 7c 01 00 00 e8 e3 ab 0a ff 4c 8d 7b RSP: 0018:ffffc90000c47960 EFLAGS: 00010246 RAX: 819cbf39a4f42400 RBX: ffff88810eb8d000 RCX: 0000000000080000 RDX: ffffc900024a4000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000c47988 R08: ffffc90000c472e7 R09: fffff52000188e90 R10: dffffc0000000000 R11: fffff52000188e5d R12: fffffffffffffffe R13: ffff88810eb8d03c R14: 1ffff11021d71a07 R15: 0000000000000000 FS: 00007f919b4616c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb7322182f8 CR3: 000000011d4fd000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: put_device drivers/base/core.c:3373 [inline] device_add+0x36f/0xc00 drivers/base/core.c:3318 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f919ca09559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f919b461028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f919cc8ffa0 RCX: 00007f919ca09559 RDX: 00000000000001ff RSI: 0000200000000780 RDI: ffffffffffffff9c RBP: 00007f919caa0b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f919cc90038 R14: 00007f919cc8ffa0 R15: 00007ffe25372608 ---[ end trace 362cd8741791da37 ]---