================================================================== IPVS: set_ctl: invalid protocol: 0 255.255.255.255:0 BUG: KASAN: global-out-of-bounds in nfnetlink_parse_nat net/netfilter/nf_nat_core.c:847 [inline] BUG: KASAN: global-out-of-bounds in nfnetlink_parse_nat_setup+0x3fb/0x410 net/netfilter/nf_nat_core.c:884 Read of size 8 at addr ffffffff880fa178 by task syz-executor.4/3493 CPU: 1 PID: 3493 Comm: syz-executor.4 Not tainted 4.19.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 print_address_description.cold+0x5/0x212 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x88/0x2b9 mm/kasan/report.c:396 nfnetlink_parse_nat net/netfilter/nf_nat_core.c:847 [inline] nfnetlink_parse_nat_setup+0x3fb/0x410 net/netfilter/nf_nat_core.c:884 ctnetlink_parse_nat_setup+0xb6/0x640 net/netfilter/nf_conntrack_netlink.c:1521 ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1591 [inline] ctnetlink_create_conntrack+0x4b7/0x1280 net/netfilter/nf_conntrack_netlink.c:1984 ctnetlink_new_conntrack+0x4f5/0xde0 net/netfilter/nf_conntrack_netlink.c:2114 nfnetlink_rcv_msg+0xc9e/0xf4b net/netfilter/nfnetlink.c:228 IPVS: set_ctl: invalid protocol: 0 255.255.255.255:0 netlink_rcv_skb+0x160/0x410 net/netlink/af_netlink.c:2454 nfnetlink_rcv+0x1b2/0x420 net/netfilter/nfnetlink.c:560 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x4d7/0x6a0 net/netlink/af_netlink.c:1343 netlink_sendmsg+0x80b/0xcd0 net/netlink/af_netlink.c:1908 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:632 ___sys_sendmsg+0x803/0x920 net/socket.c:2115 __sys_sendmsg+0xec/0x1b0 net/socket.c:2153 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c479 IPVS: set_ctl: invalid protocol: 0 255.255.255.255:0 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f2cb94f2c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f2cb94f36d4 RCX: 000000000045c479 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000914 R14: 00000000004cb741 R15: 000000000076bf2c The buggy address belongs to the variable: nft_immediate_policy+0x138/0x140 Memory state around the buggy address: ffffffff880fa000: 00 fa fa fa fa fa fa fa 00 00 00 00 00 00 fa fa ffffffff880fa080: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffff880fa100: 00 00 00 00 fa fa fa fa 04 fa fa fa fa fa fa fa ^ ffffffff880fa180: 00 00 00 00 00 00 00 00 00 00 00 00 00 fa fa fa netlink: 'syz-executor.5': attribute type 5 has an invalid length. ffffffff880fa200: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================