===================================================== BUG: KMSAN: uninit-value in nf_hook_entries_grow+0x2fe/0xc40 net/netfilter/core.c:131 nf_hook_entries_grow+0x2fe/0xc40 net/netfilter/core.c:131 __nf_register_net_hook+0x3f5/0xc80 net/netfilter/core.c:435 nf_register_net_hook+0x15b/0x310 net/netfilter/core.c:578 nft_register_flowtable_net_hooks+0x633/0xca0 net/netfilter/nf_tables_api.c:8180 nft_flowtable_update net/netfilter/nf_tables_api.c:8255 [inline] nf_tables_newflowtable+0x2747/0x3ff0 net/netfilter/nf_tables_api.c:8334 nfnetlink_rcv_batch net/netfilter/nfnetlink.c:519 [inline] nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:639 [inline] nfnetlink_rcv+0x1fc2/0x44a0 net/netfilter/nfnetlink.c:657 netlink_unicast_kernel net/netlink/af_netlink.c:1342 [inline] netlink_unicast+0xf47/0x1250 net/netlink/af_netlink.c:1368 netlink_sendmsg+0x1238/0x13d0 net/netlink/af_netlink.c:1910 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x9c2/0xd60 net/socket.c:2558 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2612 __sys_sendmsg net/socket.c:2641 [inline] __do_sys_sendmsg net/socket.c:2650 [inline] __se_sys_sendmsg net/socket.c:2648 [inline] __x64_sys_sendmsg+0x307/0x490 net/socket.c:2648 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Uninit was created at: slab_post_alloc_hook+0x12f/0xb70 mm/slab.h:767 slab_alloc_node mm/slub.c:3478 [inline] __kmem_cache_alloc_node+0x536/0x8d0 mm/slub.c:3517 kmalloc_trace+0x51/0x200 mm/slab_common.c:1117 kmalloc include/linux/slab.h:599 [inline] nft_netdev_hook_alloc net/netfilter/nf_tables_api.c:2083 [inline] nf_tables_parse_netdev_hooks+0x2a5/0xd70 net/netfilter/nf_tables_api.c:2137 nft_flowtable_parse_hook+0x693/0xaa0 net/netfilter/nf_tables_api.c:8071 nft_flowtable_update net/netfilter/nf_tables_api.c:8228 [inline] nf_tables_newflowtable+0xfa2/0x3ff0 net/netfilter/nf_tables_api.c:8334 nfnetlink_rcv_batch net/netfilter/nfnetlink.c:519 [inline] nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:639 [inline] nfnetlink_rcv+0x1fc2/0x44a0 net/netfilter/nfnetlink.c:657 netlink_unicast_kernel net/netlink/af_netlink.c:1342 [inline] netlink_unicast+0xf47/0x1250 net/netlink/af_netlink.c:1368 netlink_sendmsg+0x1238/0x13d0 net/netlink/af_netlink.c:1910 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x9c2/0xd60 net/socket.c:2558 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2612 __sys_sendmsg net/socket.c:2641 [inline] __do_sys_sendmsg net/socket.c:2650 [inline] __se_sys_sendmsg net/socket.c:2648 [inline] __x64_sys_sendmsg+0x307/0x490 net/socket.c:2648 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd CPU: 1 PID: 28372 Comm: syz-executor.3 Not tainted 6.6.0-rc7-syzkaller-00123-g3a568e3a961b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 =====================================================