[ 18.106699][ T263] ip (263) used greatest stack depth: 24400 bytes left
[ 24.260969][ T316] 8021q: 802.1Q VLAN Support v1.8
[ 24.936426][ T321] gre: GRE over IPv4 demultiplexer driver
[ 24.992802][ T321] ip_gre: GRE over IPv4 tunneling driver
[ 46.003037][ T418] ==================================================================
[ 46.003396][ T418] BUG: KASAN: slab-use-after-free in kobject_put+0xbb/0xd0
[ 46.003670][ T418] Read of size 1 at addr ffff88800a5b46ac by task ip/418
[ 46.003877][ T418]
[ 46.003981][ T418] CPU: 0 UID: 0 PID: 418 Comm: ip Not tainted 6.18.0-rc4-virtme #1 PREEMPT(full)
[ 46.003987][ T418] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 46.003990][ T418] Call Trace:
[ 46.003995][ T418]
[ 46.003997][ T418] dump_stack_lvl+0x82/0xc0
[ 46.004003][ T418] print_address_description.constprop.0+0x2c/0x3a0
[ 46.004010][ T418] ? kobject_put+0xbb/0xd0
[ 46.004015][ T418] print_report+0xb4/0x270
[ 46.004017][ T418] ? kobject_put+0xbb/0xd0
[ 46.004021][ T418] ? kasan_addr_to_slab+0x21/0x70
[ 46.004024][ T418] ? kobject_put+0xbb/0xd0
[ 46.004027][ T418] kasan_report+0xca/0x100
[ 46.004031][ T418] ? kobject_put+0xbb/0xd0
[ 46.004036][ T418] kobject_put+0xbb/0xd0
[ 46.004040][ T418] netdev_run_todo+0x5f0/0xc60
[ 46.004046][ T418] ? dev_ingress_queue_create+0x190/0x190
[ 46.004049][ T418] ? generic_xdp_install+0x410/0x410
[ 46.004052][ T418] ? unregister_netdevice_many+0x20/0x20
[ 46.004054][ T418] ? net_generic+0xb1/0x1f0
[ 46.004063][ T418] ? net_generic+0xbb/0x1f0
[ 46.004068][ T418] rtnl_dellink+0x350/0xa30
[ 46.004073][ T418] ? valid_bridge_getlink_req.constprop.0+0x640/0x640
[ 46.004092][ T418] ? find_held_lock+0x2b/0x80
[ 46.004099][ T418] ? __lock_acquire+0x449/0x7e0
[ 46.004106][ T418] ? find_held_lock+0x2b/0x80
[ 46.004110][ T418] ? rtnetlink_rcv_msg+0x6e6/0xc00
[ 46.004113][ T418] ? __lock_release+0x5d/0x170
[ 46.004117][ T418] ? valid_bridge_getlink_req.constprop.0+0x640/0x640
[ 46.004120][ T418] rtnetlink_rcv_msg+0x709/0xc00
[ 46.004124][ T418] ? rtnl_port_fill+0x850/0x850
[ 46.004127][ T418] ? __lock_acquire+0x449/0x7e0
[ 46.004134][ T418] netlink_rcv_skb+0x121/0x340
[ 46.004143][ T418] ? rtnl_port_fill+0x850/0x850
[ 46.004147][ T418] ? netlink_ack+0xdd0/0xdd0
[ 46.004154][ T418] ? netlink_deliver_tap+0x13e/0x340
[ 46.004157][ T418] ? netlink_deliver_tap+0xc3/0x340
[ 46.004161][ T418] netlink_unicast+0x4aa/0x780
[ 46.004165][ T418] ? netlink_attachskb+0x810/0x810
[ 46.004169][ T418] ? __lock_acquire+0x449/0x7e0
[ 46.004174][ T418] netlink_sendmsg+0x714/0xbd0
[ 46.004179][ T418] ? netlink_unicast+0x780/0x780
[ 46.004183][ T418] ? __import_iovec+0x230/0x3b0
[ 46.004190][ T418] ? netlink_unicast+0x780/0x780
[ 46.004193][ T418] ____sys_sendmsg+0x3dd/0x890
[ 46.004200][ T418] ? get_timestamp.constprop.0+0x380/0x380
[ 46.004203][ T418] ? __copy_msghdr+0x3c0/0x3c0
[ 46.004211][ T418] ___sys_sendmsg+0xed/0x170
[ 46.004214][ T418] ? kasan_record_aux_stack+0x8c/0xa0
[ 46.004217][ T418] ? __call_rcu_common.constprop.0+0xa8/0x630
[ 46.004223][ T418] ? copy_msghdr_from_user+0x110/0x110
[ 46.004228][ T418] ? find_held_lock+0x2b/0x80
[ 46.004232][ T418] ? __lock_acquire+0x449/0x7e0
[ 46.004238][ T418] ? find_held_lock+0x2b/0x80
[ 46.004241][ T418] ? __virt_addr_valid+0x22a/0x450
[ 46.004249][ T418] ? __lock_release+0x5d/0x170
[ 46.004259][ T418] __sys_sendmsg+0x10b/0x1a0
[ 46.004263][ T418] ? __call_rcu_common.constprop.0+0x318/0x630
[ 46.004269][ T418] ? __sys_sendmsg_sock+0x20/0x20
[ 46.004276][ T418] ? rcu_is_watching+0x12/0xb0
[ 46.004280][ T418] do_syscall_64+0xc1/0xfd0
[ 46.004287][ T418] entry_SYSCALL_64_after_hwframe+0x4b/0x53
[ 46.004291][ T418] RIP: 0033:0x7f98759751d7
[ 46.004297][ T418] Code: 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10
[ 46.004300][ T418] RSP: 002b:00007ffd6ed1cc88 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
[ 46.004307][ T418] RAX: ffffffffffffffda RBX: 00007ffd6ed1d3b0 RCX: 00007f98759751d7
[ 46.004309][ T418] RDX: 0000000000000000 RSI: 00007ffd6ed1ccf0 RDI: 0000000000000005
[ 46.004311][ T418] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078
[ 46.004313][ T418] R10: 00007f9875871f60 R11: 0000000000000246 R12: 0000000000000002
[ 46.004315][ T418] R13: 00000000690def33 R14: 0000000000499600 R15: 0000000000000000
[ 46.004322][ T418]
[ 46.004323][ T418]
[ 46.019068][ T418] Allocated by task 346:
[ 46.019272][ T418] kasan_save_stack+0x24/0x40
[ 46.019608][ T418] kasan_save_track+0x14/0x30
[ 46.019880][ T418] __kasan_kmalloc+0x7b/0x90
[ 46.020117][ T418] __kvmalloc_node_noprof+0x2e5/0x8e0
[ 46.020394][ T418] alloc_netdev_mqs+0x7d/0x1370
[ 46.020796][ T418] rtnl_create_link+0xa9e/0xe20
[ 46.021045][ T418] rtnl_newlink_create+0x203/0x770
[ 46.021281][ T418] __rtnl_newlink+0x231/0xa30
[ 46.021614][ T418] rtnl_newlink+0x693/0xa60
[ 46.021896][ T418] rtnetlink_rcv_msg+0x709/0xc00
[ 46.022171][ T418] netlink_rcv_skb+0x121/0x340
[ 46.022474][ T418] netlink_unicast+0x4aa/0x780
[ 46.022771][ T418] netlink_sendmsg+0x714/0xbd0
[ 46.023063][ T418] ____sys_sendmsg+0x3dd/0x890
[ 46.023373][ T418] ___sys_sendmsg+0xed/0x170
[ 46.023669][ T418] __sys_sendmsg+0x10b/0x1a0
[ 46.023963][ T418] do_syscall_64+0xc1/0xfd0
[ 46.024447][ T418] entry_SYSCALL_64_after_hwframe+0x4b/0x53
[ 46.024791][ T418]
[ 46.024936][ T418] Freed by task 418:
[ 46.025157][ T418] kasan_save_stack+0x24/0x40
[ 46.025637][ T418] kasan_save_track+0x14/0x30
[ 46.025973][ T418] __kasan_save_free_info+0x3b/0x60
[ 46.026272][ T418] __kasan_slab_free+0x3f/0x60
[ 46.026589][ T418] kfree+0x21d/0x540
[ 46.026820][ T418] device_release+0x9c/0x210
[ 46.027308][ T418] kobject_cleanup+0xfe/0x360
[ 46.027603][ T418] netdev_run_todo+0x81f/0xc60
[ 46.027896][ T418] rtnl_dellink+0x350/0xa30
[ 46.028191][ T418] rtnetlink_rcv_msg+0x709/0xc00
[ 46.028490][ T418] netlink_rcv_skb+0x121/0x340
[ 46.028787][ T418] netlink_unicast+0x4aa/0x780
[ 46.029095][ T418] netlink_sendmsg+0x714/0xbd0
[ 46.029376][ T418] ____sys_sendmsg+0x3dd/0x890
[ 46.029842][ T418] ___sys_sendmsg+0xed/0x170
[ 46.030132][ T418] __sys_sendmsg+0x10b/0x1a0
[ 46.030602][ T418] do_syscall_64+0xc1/0xfd0
[ 46.030897][ T418] entry_SYSCALL_64_after_hwframe+0x4b/0x53
[ 46.031437][ T418]
[ 46.031592][ T418] The buggy address belongs to the object at ffff88800a5b4000
[ 46.031592][ T418] which belongs to the cache kmalloc-4k of size 4096
[ 46.032322][ T418] The buggy address is located 1708 bytes inside of
[ 46.032322][ T418] freed 4096-byte region [ffff88800a5b4000, ffff88800a5b5000)
[ 46.033022][ T418]
[ 46.033165][ T418] The buggy address belongs to the physical page:
[ 46.033527][ T418] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xa5b0
[ 46.034044][ T418] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[ 46.034469][ T418] flags: 0x80000000000040(head|node=0|zone=1)
[ 46.034833][ T418] page_type: f5(slab)
[ 46.035064][ T418] raw: 0080000000000040 ffff888001043700 ffffea000028e810 ffffea000026a810
[ 46.035814][ T418] raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000
[ 46.036359][ T418] head: 0080000000000040 ffff888001043700 ffffea000028e810 ffffea000026a810
[ 46.036868][ T418] head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000
[ 46.037389][ T418] head: 0080000000000003 ffffea0000296c01 00000000ffffffff 00000000ffffffff
[ 46.038106][ T418] head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[ 46.038631][ T418] page dumped because: kasan: bad access detected
[ 46.039027][ T418]
[ 46.039356][ T418] Memory state around the buggy address:
[ 46.039659][ T418] ffff88800a5b4580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 46.040270][ T418] ffff88800a5b4600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 46.040697][ T418] >ffff88800a5b4680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 46.041167][ T418] ^
[ 46.041440][ T418] ffff88800a5b4700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 46.041865][ T418] ffff88800a5b4780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 46.042283][ T418] ==================================================================
[ 46.043557][ T418] Disabling lock debugging due to kernel taint
[ 46.043910][ T418] ------------[ cut here ]------------
[ 46.044104][ T418] refcount_t: underflow; use-after-free.
[ 46.044338][ T418] WARNING: CPU: 2 PID: 418 at lib/refcount.c:28 refcount_warn_saturate+0x16f/0x1b0
[ 46.044722][ T418] Modules linked in: ip_gre gre 8021q vrf veth
[ 46.045007][ T418] CPU: 2 UID: 0 PID: 418 Comm: ip Tainted: G B 6.18.0-rc4-virtme #1 PREEMPT(full)
[ 46.045410][ T418] Tainted: [B]=BAD_PAGE
[ 46.045585][ T418] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 46.045852][ T418] RIP: 0010:refcount_warn_saturate+0x16f/0x1b0
[ 46.046113][ T418] Code: 7d 93 02 80 fb 01 0f 87 bb 99 d9 fe 83 e3 01 0f 85 51 ff ff ff c6 05 a8 7d 93 02 01 90 48 c7 c7 60 8d c5 a3 e8 32 bf 18 ff 90 <0f> 0b 90 90 e9 33 ff ff ff 48 89 df e8 b0 63 a1 ff e9 ba fe ff ff
[ 46.046817][ T418] RSP: 0018:ffffc90000a671f0 EFLAGS: 00010286
[ 46.047076][ T418] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 46.047370][ T418] RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001
[ 46.047705][ T418] RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff48be134
[ 46.048007][ T418] R10: 0000000000000003 R11: ffffc90000a66d80 R12: 0000000000000001
[ 46.048302][ T418] R13: dffffc0000000000 R14: dead000000000122 R15: dead000000000100
[ 46.048611][ T418] FS: 00007f98757a7800(0000) GS:ffff8880908f2000(0000) knlGS:0000000000000000
[ 46.048997][ T418] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 46.049252][ T418] CR2: 00007ffd6ed1bff8 CR3: 0000000004d95006 CR4: 0000000000772ef0
[ 46.049567][ T418] PKRU: 55555554
[ 46.049753][ T418] Call Trace:
[ 46.050018][ T418]
[ 46.050141][ T418] netdev_run_todo+0x5f0/0xc60
[ 46.050353][ T418] ? dev_ingress_queue_create+0x190/0x190
[ 46.050581][ T418] ? generic_xdp_install+0x410/0x410
[ 46.050912][ T418] ? unregister_netdevice_many+0x20/0x20
[ 46.051114][ T418] ? net_generic+0xb1/0x1f0
[ 46.051321][ T418] ? net_generic+0xbb/0x1f0
[ 46.051533][ T418] rtnl_dellink+0x350/0xa30
[ 46.051771][ T418] ? valid_bridge_getlink_req.constprop.0+0x640/0x640
[ 46.052043][ T418] ? find_held_lock+0x2b/0x80
[ 46.052257][ T418] ? __lock_acquire+0x449/0x7e0
[ 46.052469][ T418] ? find_held_lock+0x2b/0x80
[ 46.052806][ T418] ? rtnetlink_rcv_msg+0x6e6/0xc00
[ 46.053015][ T418] ? __lock_release+0x5d/0x170
[ 46.053217][ T418] ? valid_bridge_getlink_req.constprop.0+0x640/0x640
[ 46.053463][ T418] rtnetlink_rcv_msg+0x709/0xc00
[ 46.053825][ T418] ? rtnl_port_fill+0x850/0x850
[ 46.054032][ T418] ? __lock_acquire+0x449/0x7e0
[ 46.054234][ T418] netlink_rcv_skb+0x121/0x340
[ 46.054447][ T418] ? rtnl_port_fill+0x850/0x850
[ 46.054658][ T418] ? netlink_ack+0xdd0/0xdd0
[ 46.054882][ T418] ? netlink_deliver_tap+0x13e/0x340
[ 46.055082][ T418] ? netlink_deliver_tap+0xc3/0x340
[ 46.055285][ T418] netlink_unicast+0x4aa/0x780
[ 46.055519][ T418] ? netlink_attachskb+0x810/0x810
[ 46.055748][ T418] ? __lock_acquire+0x449/0x7e0
[ 46.055954][ T418] netlink_sendmsg+0x714/0xbd0
[ 46.056175][ T418] ? netlink_unicast+0x780/0x780
[ 46.056393][ T418] ? __import_iovec+0x230/0x3b0
[ 46.056610][ T418] ? netlink_unicast+0x780/0x780
[ 46.056840][ T418] ____sys_sendmsg+0x3dd/0x890
[ 46.057043][ T418] ? get_timestamp.constprop.0+0x380/0x380
[ 46.057293][ T418] ? __copy_msghdr+0x3c0/0x3c0
[ 46.057518][ T418] ___sys_sendmsg+0xed/0x170
[ 46.057743][ T418] ? kasan_record_aux_stack+0x8c/0xa0
[ 46.057946][ T418] ? __call_rcu_common.constprop.0+0xa8/0x630
[ 46.058197][ T418] ? copy_msghdr_from_user+0x110/0x110
[ 46.058447][ T418] ? find_held_lock+0x2b/0x80
[ 46.058660][ T418] ? __lock_acquire+0x449/0x7e0
[ 46.058885][ T418] ? find_held_lock+0x2b/0x80
[ 46.059112][ T418] ? __virt_addr_valid+0x22a/0x450
[ 46.059322][ T418] ? __lock_release+0x5d/0x170
[ 46.059540][ T418] __sys_sendmsg+0x10b/0x1a0
[ 46.059796][ T418] ? __call_rcu_common.constprop.0+0x318/0x630
[ 46.060150][ T418] ? __sys_sendmsg_sock+0x20/0x20
[ 46.060446][ T418] ? rcu_is_watching+0x12/0xb0
[ 46.060755][ T418] do_syscall_64+0xc1/0xfd0
[ 46.061041][ T418] entry_SYSCALL_64_after_hwframe+0x4b/0x53
[ 46.061378][ T418] RIP: 0033:0x7f98759751d7
[ 46.061685][ T418] Code: 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10
[ 46.062536][ T418] RSP: 002b:00007ffd6ed1cc88 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
[ 46.062831][ T418] RAX: ffffffffffffffda RBX: 00007ffd6ed1d3b0 RCX: 00007f98759751d7
[ 46.063095][ T418] RDX: 0000000000000000 RSI: 00007ffd6ed1ccf0 RDI: 0000000000000005
[ 46.063358][ T418] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078
[ 46.063626][ T418] R10: 00007f9875871f60 R11: 0000000000000246 R12: 0000000000000002
[ 46.063921][ T418] R13: 00000000690def33 R14: 0000000000499600 R15: 0000000000000000
[ 46.064187][ T418]
[ 46.064333][ T418] irq event stamp: 38433
[ 46.064479][ T418] hardirqs last enabled at (38433): [] finish_task_switch.isra.0+0x245/0x960
[ 46.064847][ T418] hardirqs last disabled at (38432): [] __schedule+0x94a/0x1b10
[ 46.065187][ T418] softirqs last enabled at (38266): [] handle_softirqs+0x352/0x610
[ 46.065504][ T418] softirqs last disabled at (38257): [] irq_exit_rcu+0xab/0x100
[ 46.065820][ T418] ---[ end trace 0000000000000000 ]---
[ 46.070879][ T418] ip (418) used greatest stack depth: 24232 bytes left