[ 45.101890][ C3] clocksource: Long readout interval, skipping watchdog check: cs_nsec: 1089320522 wd_nsec: 1089320100 [ 1621.036225][T17219] ================================================================== [ 1621.036557][T17219] BUG: KASAN: slab-use-after-free in kobject_put+0xbb/0xd0 [ 1621.036863][T17219] Read of size 1 at addr ffff8880076996ac by task ip/17219 [ 1621.037109][T17219] [ 1621.037210][T17219] CPU: 0 UID: 0 PID: 17219 Comm: ip Not tainted 6.18.0-rc4-virtme #1 PREEMPT(full) [ 1621.037217][T17219] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1621.037222][T17219] Call Trace: [ 1621.037227][T17219] [ 1621.037229][T17219] dump_stack_lvl+0x82/0xc0 [ 1621.037240][T17219] print_address_description.constprop.0+0x2c/0x3a0 [ 1621.037260][T17219] ? kobject_put+0xbb/0xd0 [ 1621.037264][T17219] print_report+0xb4/0x270 [ 1621.037267][T17219] ? kobject_put+0xbb/0xd0 [ 1621.037271][T17219] ? kasan_addr_to_slab+0x21/0x70 [ 1621.037274][T17219] ? kobject_put+0xbb/0xd0 [ 1621.037277][T17219] kasan_report+0xca/0x100 [ 1621.037281][T17219] ? kobject_put+0xbb/0xd0 [ 1621.037286][T17219] kobject_put+0xbb/0xd0 [ 1621.037290][T17219] netdev_run_todo+0x5f0/0xc60 [ 1621.037301][T17219] ? dev_ingress_queue_create+0x190/0x190 [ 1621.037304][T17219] ? generic_xdp_install+0x410/0x410 [ 1621.037308][T17219] ? vrf_dellink+0xff/0x150 [vrf] [ 1621.037315][T17219] ? vrf_map_unregister_dev+0x480/0x480 [vrf] [ 1621.037320][T17219] ? __lock_acquire+0x449/0x7e0 [ 1621.037338][T17219] rtnl_dellink+0x350/0xa30 [ 1621.037345][T17219] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 1621.037364][T17219] ? find_held_lock+0x2b/0x80 [ 1621.037368][T17219] ? __lock_acquire+0x449/0x7e0 [ 1621.037374][T17219] ? find_held_lock+0x2b/0x80 [ 1621.037378][T17219] ? rtnetlink_rcv_msg+0x6e6/0xc00 [ 1621.037381][T17219] ? __lock_release+0x5d/0x170 [ 1621.037386][T17219] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 1621.037390][T17219] rtnetlink_rcv_msg+0x709/0xc00 [ 1621.037393][T17219] ? rtnl_port_fill+0x850/0x850 [ 1621.037396][T17219] ? __lock_acquire+0x449/0x7e0 [ 1621.037403][T17219] netlink_rcv_skb+0x121/0x340 [ 1621.037412][T17219] ? rtnl_port_fill+0x850/0x850 [ 1621.037416][T17219] ? netlink_ack+0xdd0/0xdd0 [ 1621.037422][T17219] ? netlink_deliver_tap+0x13e/0x340 [ 1621.037425][T17219] ? netlink_deliver_tap+0xc3/0x340 [ 1621.037429][T17219] netlink_unicast+0x4aa/0x780 [ 1621.037433][T17219] ? netlink_attachskb+0x810/0x810 [ 1621.037437][T17219] ? __lock_acquire+0x449/0x7e0 [ 1621.037442][T17219] netlink_sendmsg+0x714/0xbd0 [ 1621.037447][T17219] ? netlink_unicast+0x780/0x780 [ 1621.037450][T17219] ? __import_iovec+0x230/0x3b0 [ 1621.037466][T17219] ? netlink_unicast+0x780/0x780 [ 1621.037469][T17219] ____sys_sendmsg+0x3dd/0x890 [ 1621.037481][T17219] ? get_timestamp.constprop.0+0x380/0x380 [ 1621.037484][T17219] ? __copy_msghdr+0x3c0/0x3c0 [ 1621.037493][T17219] ___sys_sendmsg+0xed/0x170 [ 1621.037496][T17219] ? kasan_record_aux_stack+0x8c/0xa0 [ 1621.037499][T17219] ? __call_rcu_common.constprop.0+0xa8/0x630 [ 1621.037514][T17219] ? copy_msghdr_from_user+0x110/0x110 [ 1621.037519][T17219] ? find_held_lock+0x2b/0x80 [ 1621.037523][T17219] ? __lock_acquire+0x449/0x7e0 [ 1621.037529][T17219] ? find_held_lock+0x2b/0x80 [ 1621.037532][T17219] ? __virt_addr_valid+0x22a/0x450 [ 1621.037550][T17219] ? __lock_release+0x5d/0x170 [ 1621.037557][T17219] __sys_sendmsg+0x10b/0x1a0 [ 1621.037560][T17219] ? __call_rcu_common.constprop.0+0x318/0x630 [ 1621.037564][T17219] ? __sys_sendmsg_sock+0x20/0x20 [ 1621.037571][T17219] ? rcu_is_watching+0x12/0xb0 [ 1621.037576][T17219] do_syscall_64+0xc1/0xfd0 [ 1621.037585][T17219] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 1621.037594][T17219] RIP: 0033:0x7fc98b5471d7 [ 1621.037600][T17219] 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 [ 1621.037603][T17219] RSP: 002b:00007ffd0c5b6328 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 1621.037612][T17219] RAX: ffffffffffffffda RBX: 00007ffd0c5b6a50 RCX: 00007fc98b5471d7 [ 1621.037615][T17219] RDX: 0000000000000000 RSI: 00007ffd0c5b6390 RDI: 0000000000000005 [ 1621.037617][T17219] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 1621.037618][T17219] R10: 00007fc98b443f60 R11: 0000000000000246 R12: 0000000000000002 [ 1621.037620][T17219] R13: 00000000690dfa41 R14: 0000000000499600 R15: 0000000000000000 [ 1621.037627][T17219] [ 1621.037628][T17219] [ 1621.050254][T17219] Allocated by task 344: [ 1621.050396][T17219] kasan_save_stack+0x24/0x40 [ 1621.050575][T17219] kasan_save_track+0x14/0x30 [ 1621.050748][T17219] __kasan_kmalloc+0x7b/0x90 [ 1621.050913][T17219] __kvmalloc_node_noprof+0x2e5/0x8e0 [ 1621.051087][T17219] alloc_netdev_mqs+0x7d/0x1370 [ 1621.051262][T17219] rtnl_create_link+0xa9e/0xe20 [ 1621.051429][T17219] rtnl_newlink_create+0x203/0x770 [ 1621.051596][T17219] __rtnl_newlink+0x231/0xa30 [ 1621.051762][T17219] rtnl_newlink+0x693/0xa60 [ 1621.051932][T17219] rtnetlink_rcv_msg+0x709/0xc00 [ 1621.052107][T17219] netlink_rcv_skb+0x121/0x340 [ 1621.052275][T17219] netlink_unicast+0x4aa/0x780 [ 1621.052442][T17219] netlink_sendmsg+0x714/0xbd0 [ 1621.052609][T17219] ____sys_sendmsg+0x3dd/0x890 [ 1621.052778][T17219] ___sys_sendmsg+0xed/0x170 [ 1621.052947][T17219] __sys_sendmsg+0x10b/0x1a0 [ 1621.053113][T17219] do_syscall_64+0xc1/0xfd0 [ 1621.053289][T17219] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 1621.053506][T17219] [ 1621.053592][T17219] Freed by task 17219: [ 1621.053721][T17219] kasan_save_stack+0x24/0x40 [ 1621.053893][T17219] kasan_save_track+0x14/0x30 [ 1621.054066][T17219] __kasan_save_free_info+0x3b/0x60 [ 1621.054231][T17219] __kasan_slab_free+0x3f/0x60 [ 1621.054398][T17219] kfree+0x21d/0x540 [ 1621.054525][T17219] device_release+0x9c/0x210 [ 1621.054713][T17219] kobject_cleanup+0xfe/0x360 [ 1621.054882][T17219] netdev_run_todo+0x81f/0xc60 [ 1621.055053][T17219] rtnl_dellink+0x350/0xa30 [ 1621.055220][T17219] rtnetlink_rcv_msg+0x709/0xc00 [ 1621.055386][T17219] netlink_rcv_skb+0x121/0x340 [ 1621.055558][T17219] netlink_unicast+0x4aa/0x780 [ 1621.055724][T17219] netlink_sendmsg+0x714/0xbd0 [ 1621.055893][T17219] ____sys_sendmsg+0x3dd/0x890 [ 1621.056062][T17219] ___sys_sendmsg+0xed/0x170 [ 1621.056235][T17219] __sys_sendmsg+0x10b/0x1a0 [ 1621.056402][T17219] do_syscall_64+0xc1/0xfd0 [ 1621.056571][T17219] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 1621.056776][T17219] [ 1621.056862][T17219] The buggy address belongs to the object at ffff888007699000 [ 1621.056862][T17219] which belongs to the cache kmalloc-4k of size 4096 [ 1621.057367][T17219] The buggy address is located 1708 bytes inside of [ 1621.057367][T17219] freed 4096-byte region [ffff888007699000, ffff88800769a000) [ 1621.057772][T17219] [ 1621.057857][T17219] The buggy address belongs to the physical page: [ 1621.058068][T17219] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7698 [ 1621.058372][T17219] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 1621.058835][T17219] flags: 0x80000000000040(head|node=0|zone=1) [ 1621.059066][T17219] page_type: f5(slab) [ 1621.059201][T17219] raw: 0080000000000040 ffff888001043700 ffffea000021dc10 ffffea000023f010 [ 1621.059608][T17219] raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 [ 1621.060009][T17219] head: 0080000000000040 ffff888001043700 ffffea000021dc10 ffffea000023f010 [ 1621.060344][T17219] head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 [ 1621.060746][T17219] head: 0080000000000003 ffffea00001da601 00000000ffffffff 00000000ffffffff [ 1621.061043][T17219] head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 1621.061439][T17219] page dumped because: kasan: bad access detected [ 1621.061659][T17219] [ 1621.061745][T17219] Memory state around the buggy address: [ 1621.061911][T17219] ffff888007699580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 1621.062258][T17219] ffff888007699600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 1621.062519][T17219] >ffff888007699680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 1621.062796][T17219] ^ [ 1621.063068][T17219] ffff888007699700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 1621.063335][T17219] ffff888007699780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 1621.063597][T17219] ================================================================== [ 1621.064042][T17219] Disabling lock debugging due to kernel taint [ 1621.064404][T17219] ------------[ cut here ]------------ [ 1621.064637][T17219] refcount_t: underflow; use-after-free. [ 1621.064872][T17219] WARNING: CPU: 2 PID: 17219 at lib/refcount.c:28 refcount_warn_saturate+0x16f/0x1b0 [ 1621.065214][T17219] Modules linked in: vrf veth [ 1621.065442][T17219] CPU: 2 UID: 0 PID: 17219 Comm: ip Tainted: G B 6.18.0-rc4-virtme #1 PREEMPT(full) [ 1621.065863][T17219] Tainted: [B]=BAD_PAGE [ 1621.066033][T17219] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1621.066293][T17219] RIP: 0010:refcount_warn_saturate+0x16f/0x1b0 [ 1621.066576][T17219] 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 65 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 [ 1621.067263][T17219] RSP: 0018:ffffc900088571f0 EFLAGS: 00010286 [ 1621.067531][T17219] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 1621.067842][T17219] RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001 [ 1621.068143][T17219] RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff47fe134 [ 1621.068455][T17219] R10: 0000000000000003 R11: ffffc90008856d80 R12: 0000000000000001 [ 1621.068767][T17219] R13: dffffc0000000000 R14: dead000000000122 R15: dead000000000100 [ 1621.069068][T17219] FS: 00007fc98b379800(0000) GS:ffff888090ef2000(0000) knlGS:0000000000000000 [ 1621.069416][T17219] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1621.069685][T17219] CR2: 000055b76b181e58 CR3: 0000000008bc4004 CR4: 0000000000772ef0 [ 1621.070010][T17219] PKRU: 55555554 [ 1621.070188][T17219] Call Trace: [ 1621.070372][T17219] [ 1621.070503][T17219] netdev_run_todo+0x5f0/0xc60 [ 1621.070730][T17219] ? dev_ingress_queue_create+0x190/0x190 [ 1621.070939][T17219] ? generic_xdp_install+0x410/0x410 [ 1621.071161][T17219] ? vrf_dellink+0xff/0x150 [vrf] [ 1621.071389][T17219] ? vrf_map_unregister_dev+0x480/0x480 [vrf] [ 1621.071758][T17219] ? __lock_acquire+0x449/0x7e0 [ 1621.071974][T17219] rtnl_dellink+0x350/0xa30 [ 1621.072185][T17219] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 1621.072558][T17219] ? find_held_lock+0x2b/0x80 [ 1621.072770][T17219] ? __lock_acquire+0x449/0x7e0 [ 1621.072989][T17219] ? find_held_lock+0x2b/0x80 [ 1621.073202][T17219] ? rtnetlink_rcv_msg+0x6e6/0xc00 [ 1621.073534][T17219] ? __lock_release+0x5d/0x170 [ 1621.073754][T17219] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 1621.074014][T17219] rtnetlink_rcv_msg+0x709/0xc00 [ 1621.074238][T17219] ? rtnl_port_fill+0x850/0x850 [ 1621.074571][T17219] ? __lock_acquire+0x449/0x7e0 [ 1621.074823][T17219] netlink_rcv_skb+0x121/0x340 [ 1621.075036][T17219] ? rtnl_port_fill+0x850/0x850 [ 1621.075250][T17219] ? netlink_ack+0xdd0/0xdd0 [ 1621.075573][T17219] ? netlink_deliver_tap+0x13e/0x340 [ 1621.075783][T17219] ? netlink_deliver_tap+0xc3/0x340 [ 1621.075994][T17219] netlink_unicast+0x4aa/0x780 [ 1621.076195][T17219] ? netlink_attachskb+0x810/0x810 [ 1621.076507][T17219] ? __lock_acquire+0x449/0x7e0 [ 1621.076719][T17219] netlink_sendmsg+0x714/0xbd0 [ 1621.076940][T17219] ? netlink_unicast+0x780/0x780 [ 1621.077146][T17219] ? __import_iovec+0x230/0x3b0 [ 1621.077452][T17219] ? netlink_unicast+0x780/0x780 [ 1621.077664][T17219] ____sys_sendmsg+0x3dd/0x890 [ 1621.077884][T17219] ? get_timestamp.constprop.0+0x380/0x380 [ 1621.078145][T17219] ? __copy_msghdr+0x3c0/0x3c0 [ 1621.078472][T17219] ___sys_sendmsg+0xed/0x170 [ 1621.078697][T17219] ? kasan_record_aux_stack+0x8c/0xa0 [ 1621.078933][T17219] ? __call_rcu_common.constprop.0+0xa8/0x630 [ 1621.079206][T17219] ? copy_msghdr_from_user+0x110/0x110 [ 1621.079434][T17219] ? find_held_lock+0x2b/0x80 [ 1621.079661][T17219] ? __lock_acquire+0x449/0x7e0 [ 1621.079889][T17219] ? find_held_lock+0x2b/0x80 [ 1621.080201][T17219] ? __virt_addr_valid+0x22a/0x450 [ 1621.080446][T17219] ? __lock_release+0x5d/0x170 [ 1621.080686][T17219] __sys_sendmsg+0x10b/0x1a0 [ 1621.080915][T17219] ? __call_rcu_common.constprop.0+0x318/0x630 [ 1621.081269][T17219] ? __sys_sendmsg_sock+0x20/0x20 [ 1621.081488][T17219] ? rcu_is_watching+0x12/0xb0 [ 1621.081696][T17219] do_syscall_64+0xc1/0xfd0 [ 1621.081906][T17219] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 1621.082241][T17219] RIP: 0033:0x7fc98b5471d7 [ 1621.082452][T17219] 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 [ 1621.083252][T17219] RSP: 002b:00007ffd0c5b6328 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 1621.083563][T17219] RAX: ffffffffffffffda RBX: 00007ffd0c5b6a50 RCX: 00007fc98b5471d7 [ 1621.083962][T17219] RDX: 0000000000000000 RSI: 00007ffd0c5b6390 RDI: 0000000000000005 [ 1621.084289][T17219] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 1621.084608][T17219] R10: 00007fc98b443f60 R11: 0000000000000246 R12: 0000000000000002 [ 1621.085035][T17219] R13: 00000000690dfa41 R14: 0000000000499600 R15: 0000000000000000 [ 1621.085358][T17219] [ 1621.085538][T17219] irq event stamp: 46321 [ 1621.085744][T17219] hardirqs last enabled at (46321): [] finish_task_switch.isra.0+0x245/0x960 [ 1621.086184][T17219] hardirqs last disabled at (46320): [] __schedule+0x94a/0x1b10 [ 1621.086584][T17219] softirqs last enabled at (45604): [] handle_softirqs+0x352/0x610 [ 1621.087040][T17219] softirqs last disabled at (45549): [] irq_exit_rcu+0xab/0x100 [ 1621.087405][T17219] ---[ end trace 0000000000000000 ]---