[ 20.402776][ T243] openvswitch: Open vSwitch switching datapath [ 28.263836][ T273] netlink: 'python3': attribute type 2 has an invalid length. [ 28.282543][ T273] arpping: entered promiscuous mode [ 34.221754][ T325] c0: entered promiscuous mode [ 35.425176][ T347] ip (347) used greatest stack depth: 23952 bytes left [ 40.107750][ T372] s0: entered promiscuous mode [ 51.248200][ T436] s0 (unregistering): left promiscuous mode [ 51.278201][ T436] ================================================================== [ 51.278677][ T436] BUG: KASAN: slab-use-after-free in kobject_put+0xbb/0xd0 [ 51.279049][ T436] Read of size 1 at addr ffff8880085d16c4 by task ip/436 [ 51.279335][ T436] [ 51.279445][ T436] CPU: 3 UID: 0 PID: 436 Comm: ip Not tainted 6.18.0-rc4-virtme #1 PREEMPT(full) [ 51.279452][ T436] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 51.279455][ T436] Call Trace: [ 51.279457][ T436] [ 51.279459][ T436] dump_stack_lvl+0x82/0xc0 [ 51.279469][ T436] print_address_description.constprop.0+0x2c/0x3a0 [ 51.279477][ T436] ? kobject_put+0xbb/0xd0 [ 51.279482][ T436] print_report+0xb4/0x270 [ 51.279485][ T436] ? kobject_put+0xbb/0xd0 [ 51.279488][ T436] ? kasan_addr_to_slab+0x21/0x70 [ 51.279492][ T436] ? kobject_put+0xbb/0xd0 [ 51.279495][ T436] kasan_report+0xca/0x100 [ 51.279499][ T436] ? kobject_put+0xbb/0xd0 [ 51.279505][ T436] kobject_put+0xbb/0xd0 [ 51.279508][ T436] netdev_run_todo+0x5f0/0xc60 [ 51.279516][ T436] ? dev_ingress_queue_create+0x190/0x190 [ 51.279520][ T436] ? generic_xdp_install+0x410/0x410 [ 51.279523][ T436] ? unregister_netdevice_many+0x20/0x20 [ 51.279530][ T436] rtnl_dellink+0x350/0xa30 [ 51.279535][ T436] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 51.279555][ T436] ? find_held_lock+0x2b/0x80 [ 51.279564][ T436] ? __lock_acquire+0x449/0x7e0 [ 51.279570][ T436] ? find_held_lock+0x2b/0x80 [ 51.279574][ T436] ? rtnetlink_rcv_msg+0x6e6/0xc00 [ 51.279577][ T436] ? __lock_release+0x5d/0x170 [ 51.279580][ T436] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 51.279584][ T436] rtnetlink_rcv_msg+0x709/0xc00 [ 51.279589][ T436] ? rtnl_port_fill+0x890/0x890 [ 51.279592][ T436] ? __lock_acquire+0x449/0x7e0 [ 51.279598][ T436] netlink_rcv_skb+0x121/0x340 [ 51.279604][ T436] ? rtnl_port_fill+0x890/0x890 [ 51.279608][ T436] ? netlink_ack+0xdf0/0xdf0 [ 51.279614][ T436] ? netlink_deliver_tap+0x13e/0x340 [ 51.279617][ T436] ? netlink_deliver_tap+0xc3/0x340 [ 51.279621][ T436] netlink_unicast+0x4aa/0x780 [ 51.279628][ T436] ? netlink_attachskb+0x810/0x810 [ 51.279633][ T436] ? __lock_acquire+0x449/0x7e0 [ 51.279640][ T436] netlink_sendmsg+0x714/0xbd0 [ 51.279646][ T436] ? netlink_unicast+0x780/0x780 [ 51.279649][ T436] ? __import_iovec+0x230/0x3b0 [ 51.279655][ T436] ? netlink_unicast+0x780/0x780 [ 51.279658][ T436] ____sys_sendmsg+0x3dd/0x890 [ 51.279662][ T436] ? get_timestamp.constprop.0+0x370/0x370 [ 51.279665][ T436] ? __copy_msghdr+0x3c0/0x3c0 [ 51.279672][ T436] ___sys_sendmsg+0xed/0x170 [ 51.279674][ T436] ? kasan_record_aux_stack+0x8c/0xa0 [ 51.279678][ T436] ? __call_rcu_common.constprop.0+0xa8/0x630 [ 51.279682][ T436] ? copy_msghdr_from_user+0x110/0x110 [ 51.279686][ T436] ? find_held_lock+0x2b/0x80 [ 51.279691][ T436] ? __lock_acquire+0x449/0x7e0 [ 51.279699][ T436] ? find_held_lock+0x2b/0x80 [ 51.279704][ T436] ? __virt_addr_valid+0x22a/0x450 [ 51.279712][ T436] ? __lock_release+0x5d/0x170 [ 51.279717][ T436] __sys_sendmsg+0x10b/0x1a0 [ 51.279720][ T436] ? __call_rcu_common.constprop.0+0x318/0x630 [ 51.279723][ T436] ? __sys_sendmsg_sock+0x20/0x20 [ 51.279730][ T436] ? rcu_is_watching+0x12/0xb0 [ 51.279737][ T436] do_syscall_64+0xc1/0xfd0 [ 51.279743][ T436] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 51.279747][ T436] RIP: 0033:0x7f8512d351d7 [ 51.279755][ T436] 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 [ 51.279759][ T436] RSP: 002b:00007ffe76860058 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 51.279764][ T436] RAX: ffffffffffffffda RBX: 00007ffe76860780 RCX: 00007f8512d351d7 [ 51.279766][ T436] RDX: 0000000000000000 RSI: 00007ffe768600c0 RDI: 0000000000000005 [ 51.279768][ T436] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 51.279771][ T436] R10: 00007f8512c31f60 R11: 0000000000000246 R12: 0000000000000001 [ 51.279772][ T436] R13: 00000000690deab0 R14: 0000000000499600 R15: 0000000000000000 [ 51.279779][ T436] [ 51.279780][ T436] [ 51.294051][ T436] Allocated by task 347: [ 51.294217][ T436] kasan_save_stack+0x24/0x40 [ 51.294429][ T436] kasan_save_track+0x14/0x30 [ 51.294638][ T436] __kasan_kmalloc+0x7b/0x90 [ 51.294837][ T436] __kvmalloc_node_noprof+0x2e5/0x8e0 [ 51.295031][ T436] alloc_netdev_mqs+0x7d/0x1370 [ 51.295243][ T436] rtnl_create_link+0xa9e/0xe20 [ 51.295454][ T436] rtnl_newlink_create+0x203/0x8f0 [ 51.295642][ T436] __rtnl_newlink+0x231/0xa30 [ 51.295855][ T436] rtnl_newlink+0x693/0xa60 [ 51.296043][ T436] rtnetlink_rcv_msg+0x709/0xc00 [ 51.296246][ T436] netlink_rcv_skb+0x121/0x340 [ 51.296457][ T436] netlink_unicast+0x4aa/0x780 [ 51.296647][ T436] netlink_sendmsg+0x714/0xbd0 [ 51.296853][ T436] ____sys_sendmsg+0x3dd/0x890 [ 51.297046][ T436] ___sys_sendmsg+0xed/0x170 [ 51.297237][ T436] __sys_sendmsg+0x10b/0x1a0 [ 51.297432][ T436] do_syscall_64+0xc1/0xfd0 [ 51.297624][ T436] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 51.297875][ T436] [ 51.297972][ T436] Freed by task 436: [ 51.298115][ T436] kasan_save_stack+0x24/0x40 [ 51.298317][ T436] kasan_save_track+0x14/0x30 [ 51.298516][ T436] __kasan_save_free_info+0x3b/0x60 [ 51.298709][ T436] __kasan_slab_free+0x3f/0x60 [ 51.298921][ T436] kfree+0x21d/0x540 [ 51.299071][ T436] device_release+0x9c/0x210 [ 51.299274][ T436] kobject_cleanup+0xfe/0x360 [ 51.299485][ T436] netdev_run_todo+0x81f/0xc60 [ 51.299674][ T436] rtnl_dellink+0x350/0xa30 [ 51.299872][ T436] rtnetlink_rcv_msg+0x709/0xc00 [ 51.300067][ T436] netlink_rcv_skb+0x121/0x340 [ 51.300255][ T436] netlink_unicast+0x4aa/0x780 [ 51.300453][ T436] netlink_sendmsg+0x714/0xbd0 [ 51.300640][ T436] ____sys_sendmsg+0x3dd/0x890 [ 51.300840][ T436] ___sys_sendmsg+0xed/0x170 [ 51.301045][ T436] __sys_sendmsg+0x10b/0x1a0 [ 51.301233][ T436] do_syscall_64+0xc1/0xfd0 [ 51.301436][ T436] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 51.301703][ T436] [ 51.301802][ T436] The buggy address belongs to the object at ffff8880085d1000 [ 51.301802][ T436] which belongs to the cache kmalloc-4k of size 4096 [ 51.302395][ T436] The buggy address is located 1732 bytes inside of [ 51.302395][ T436] freed 4096-byte region [ffff8880085d1000, ffff8880085d2000) [ 51.302863][ T436] [ 51.302975][ T436] The buggy address belongs to the physical page: [ 51.303207][ T436] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x85d0 [ 51.303542][ T436] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 51.304037][ T436] flags: 0x80000000000040(head|node=0|zone=1) [ 51.304260][ T436] page_type: f5(slab) [ 51.304517][ T436] raw: 0080000000000040 ffff888001043700 ffffea00002e8210 ffffea0000230210 [ 51.304829][ T436] raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 [ 51.305171][ T436] head: 0080000000000040 ffff888001043700 ffffea00002e8210 ffffea0000230210 [ 51.305591][ T436] head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 [ 51.305913][ T436] head: 0080000000000003 ffffea0000217401 00000000ffffffff 00000000ffffffff [ 51.306239][ T436] head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 51.306568][ T436] page dumped because: kasan: bad access detected [ 51.306795][ T436] [ 51.306901][ T436] Memory state around the buggy address: [ 51.307094][ T436] ffff8880085d1580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.307638][ T436] ffff8880085d1600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.307910][ T436] >ffff8880085d1680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.308196][ T436] ^ [ 51.308516][ T436] ffff8880085d1700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.308782][ T436] ffff8880085d1780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.309161][ T436] ================================================================== [ 51.309544][ T436] Disabling lock debugging due to kernel taint [ 51.309947][ T436] ------------[ cut here ]------------ [ 51.310231][ T436] refcount_t: underflow; use-after-free. [ 51.310536][ T436] WARNING: CPU: 2 PID: 436 at lib/refcount.c:28 refcount_warn_saturate+0x16f/0x1b0 [ 51.310970][ T436] Modules linked in: openvswitch psample nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nsh [ 51.311373][ T436] CPU: 2 UID: 0 PID: 436 Comm: ip Tainted: G B 6.18.0-rc4-virtme #1 PREEMPT(full) [ 51.311768][ T436] Tainted: [B]=BAD_PAGE [ 51.311949][ T436] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 51.312212][ T436] RIP: 0010:refcount_warn_saturate+0x16f/0x1b0 [ 51.312512][ T436] Code: cc 38 03 80 fb 01 0f 87 29 33 d7 fe 83 e3 01 0f 85 51 ff ff ff c6 05 17 cc 38 03 01 90 48 c7 c7 40 ba 65 9e e8 62 d6 16 ff 90 <0f> 0b 90 90 e9 33 ff ff ff 48 89 df e8 c0 9d a0 ff e9 ba fe ff ff [ 51.313263][ T436] RSP: 0018:ffffc90000c3f1f0 EFLAGS: 00010286 [ 51.313527][ T436] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 51.313867][ T436] RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001 [ 51.314210][ T436] RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff3ec0934 [ 51.314646][ T436] R10: 0000000000000003 R11: ffffc90000c3ed80 R12: 0000000000000001 [ 51.315065][ T436] R13: dffffc0000000000 R14: dead000000000122 R15: dead000000000100 [ 51.315350][ T436] FS: 00007f8512b67800(0000) GS:ffff8880c6208000(0000) knlGS:0000000000000000 [ 51.315717][ T436] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 51.315976][ T436] CR2: 00007f8512f35050 CR3: 000000000ddfa004 CR4: 0000000000772ef0 [ 51.316273][ T436] PKRU: 55555554 [ 51.316451][ T436] Call Trace: [ 51.316636][ T436] [ 51.316749][ T436] netdev_run_todo+0x5f0/0xc60 [ 51.317060][ T436] ? dev_ingress_queue_create+0x190/0x190 [ 51.317280][ T436] ? generic_xdp_install+0x410/0x410 [ 51.317500][ T436] ? unregister_netdevice_many+0x20/0x20 [ 51.317704][ T436] rtnl_dellink+0x350/0xa30 [ 51.318016][ T436] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 51.318281][ T436] ? find_held_lock+0x2b/0x80 [ 51.318586][ T436] ? __lock_acquire+0x449/0x7e0 [ 51.318916][ T436] ? find_held_lock+0x2b/0x80 [ 51.319394][ T436] ? rtnetlink_rcv_msg+0x6e6/0xc00 [ 51.319604][ T436] ? __lock_release+0x5d/0x170 [ 51.319807][ T436] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 51.320161][ T436] rtnetlink_rcv_msg+0x709/0xc00 [ 51.320376][ T436] ? rtnl_port_fill+0x890/0x890 [ 51.320584][ T436] ? __lock_acquire+0x449/0x7e0 [ 51.320791][ T436] netlink_rcv_skb+0x121/0x340 [ 51.321115][ T436] ? rtnl_port_fill+0x890/0x890 [ 51.321330][ T436] ? netlink_ack+0xdf0/0xdf0 [ 51.321544][ T436] ? netlink_deliver_tap+0x13e/0x340 [ 51.321755][ T436] ? netlink_deliver_tap+0xc3/0x340 [ 51.322143][ T436] netlink_unicast+0x4aa/0x780 [ 51.322413][ T436] ? netlink_attachskb+0x810/0x810 [ 51.322772][ T436] ? __lock_acquire+0x449/0x7e0 [ 51.323118][ T436] netlink_sendmsg+0x714/0xbd0 [ 51.323364][ T436] ? netlink_unicast+0x780/0x780 [ 51.323683][ T436] ? __import_iovec+0x230/0x3b0 [ 51.323895][ T436] ? netlink_unicast+0x780/0x780 [ 51.324105][ T436] ____sys_sendmsg+0x3dd/0x890 [ 51.324315][ T436] ? get_timestamp.constprop.0+0x370/0x370 [ 51.324682][ T436] ? __copy_msghdr+0x3c0/0x3c0 [ 51.324897][ T436] ___sys_sendmsg+0xed/0x170 [ 51.325122][ T436] ? kasan_record_aux_stack+0x8c/0xa0 [ 51.325346][ T436] ? __call_rcu_common.constprop.0+0xa8/0x630 [ 51.325610][ T436] ? copy_msghdr_from_user+0x110/0x110 [ 51.325821][ T436] ? find_held_lock+0x2b/0x80 [ 51.326052][ T436] ? __lock_acquire+0x449/0x7e0 [ 51.326372][ T436] ? find_held_lock+0x2b/0x80 [ 51.326593][ T436] ? __virt_addr_valid+0x22a/0x450 [ 51.326811][ T436] ? __lock_release+0x5d/0x170 [ 51.327035][ T436] __sys_sendmsg+0x10b/0x1a0 [ 51.327342][ T436] ? __call_rcu_common.constprop.0+0x318/0x630 [ 51.327592][ T436] ? __sys_sendmsg_sock+0x20/0x20 [ 51.327786][ T436] ? rcu_is_watching+0x12/0xb0 [ 51.327986][ T436] do_syscall_64+0xc1/0xfd0 [ 51.328265][ T436] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 51.328498][ T436] RIP: 0033:0x7f8512d351d7 [ 51.328700][ T436] 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 [ 51.329453][ T436] RSP: 002b:00007ffe76860058 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 51.329760][ T436] RAX: ffffffffffffffda RBX: 00007ffe76860780 RCX: 00007f8512d351d7 [ 51.330166][ T436] RDX: 0000000000000000 RSI: 00007ffe768600c0 RDI: 0000000000000005 [ 51.330457][ T436] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 51.330845][ T436] R10: 00007f8512c31f60 R11: 0000000000000246 R12: 0000000000000001 [ 51.331137][ T436] R13: 00000000690deab0 R14: 0000000000499600 R15: 0000000000000000 [ 51.331429][ T436] [ 51.331683][ T436] irq event stamp: 45969 [ 51.331832][ T436] hardirqs last enabled at (45969): [] finish_task_switch.isra.0+0x245/0x960 [ 51.332191][ T436] hardirqs last disabled at (45968): [] __schedule+0x94a/0x1b10 [ 51.332624][ T436] softirqs last enabled at (45872): [] handle_softirqs+0x352/0x610 [ 51.333020][ T436] softirqs last disabled at (45863): [] irq_exit_rcu+0xab/0x100 [ 51.333481][ T436] ---[ end trace 0000000000000000 ]--- [ 51.680273][ T444] c0 (unregistering): left promiscuous mode [ 53.807180][ T450] arpping: left promiscuous mode [ 61.033625][ T495] netlink: 'python3': attribute type 2 has an invalid length. [ 61.041159][ T495] ct4: entered promiscuous mode [ 64.949070][ T546] c0: entered promiscuous mode [ 68.945870][ T592] s0: entered promiscuous mode [ 99.944351][ T747] s0 (unregistering): left promiscuous mode [ 100.292357][ T755] c0 (unregistering): left promiscuous mode [ 102.703968][ T761] ct4: left promiscuous mode [ 109.108813][ T804] netlink: 'python3': attribute type 2 has an invalid length. [ 109.118243][ T804] cv4: entered promiscuous mode [ 112.964948][ T855] c0: entered promiscuous mode [ 116.721486][ T901] s0: entered promiscuous mode [ 129.188996][ T988] s0 (unregistering): left promiscuous mode [ 129.555527][ T996] c0 (unregistering): left promiscuous mode [ 132.197743][ T1002] cv4: left promiscuous mode [ 138.930244][ T1046] netlink: 'python3': attribute type 2 has an invalid length. [ 138.936322][ T1046] nat4: entered promiscuous mode [ 142.853649][ T1096] c0: entered promiscuous mode [ 146.438951][ T1142] s0: entered promiscuous mode [ 175.059313][ T1282] s0 (unregistering): left promiscuous mode [ 175.467507][ T1290] c0 (unregistering): left promiscuous mode [ 177.740445][ T1296] nat4: left promiscuous mode [ 184.067593][ T1340] netlink: 'python3': attribute type 2 has an invalid length. [ 184.073256][ T1340] natrelated4: entered promiscuous mode [ 188.237549][ T1391] c0: entered promiscuous mode [ 192.268787][ T1438] s0: entered promiscuous mode [ 212.075968][ T1591] s0 (unregistering): left promiscuous mode [ 212.471297][ T1599] c0 (unregistering): left promiscuous mode [ 214.785283][ T1605] natrelated4: left promiscuous mode [ 221.172984][ T1649] netlink: 'python3': attribute type 2 has an invalid length. [ 221.181661][ T1649] nv0: entered promiscuous mode [ 223.505715][ T1673] netlink: 'python3': attribute type 2 has an invalid length. [ 223.507187][ T1673] openvswitch: nv0: Dropping previously announced user features [ 227.337029][ T1722] left0: entered promiscuous mode [ 231.340395][ T1768] right0: entered promiscuous mode [ 236.234569][ T1800] right0: left promiscuous mode [ 240.768371][ T1836] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 240.970378][ T1836] python3 (1836) used greatest stack depth: 22920 bytes left [ 243.559989][ T1859] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 244.435519][ T1886] left0 (unregistering): left promiscuous mode [ 246.786992][ T1892] nv0: left promiscuous mode [ 255.853191][ T1951] ui0: entered promiscuous mode [ 260.406947][ T2002] left0: entered promiscuous mode [ 264.483868][ T2037] left0 (unregistering): left promiscuous mode [ 266.789565][ T2044] ui0: left promiscuous mode [ 273.376354][ T2090] tdp0: entered promiscuous mode [ 277.774243][ T2142] left0: entered promiscuous mode [ 280.107155][ T2159] left0: left promiscuous mode [ 282.954657][ T2180] ovs-vxlan0: entered promiscuous mode [ 292.973118][ T2311] ovs-vxlan0 (unregistering): left promiscuous mode [ 295.615030][ T2324] tdp0: left promiscuous mode [ 302.497051][ T2373] netlink: 'python3': attribute type 2 has an invalid length. [ 302.503087][ T2373] dropreason: entered promiscuous mode [ 306.518393][ T2424] c0: entered promiscuous mode [ 310.229365][ T2470] s0: entered promiscuous mode [ 353.146878][ T2641] s0 (unregistering): left promiscuous mode [ 353.499721][ T2649] c0 (unregistering): left promiscuous mode [ 355.509134][ T2655] dropreason: left promiscuous mode [ 361.934669][ T2699] psample: entered promiscuous mode [ 366.828590][ T2750] c0: entered promiscuous mode [ 367.899049][ T2782] s0: entered promiscuous mode [ 373.067439][ T2845] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 375.527859][ T2868] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 378.276401][ T2891] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 394.628657][ T3034] s0 (unregistering): left promiscuous mode [ 395.028487][ T3045] c0 (unregistering): left promiscuous mode [ 397.286466][ T3051] psample: left promiscuous mode