kernel msg: ebtables bug: please report to author: counter_offset != totalcnt ================================================================== BUG: KMSAN: uninit-value in slab_alloc_node mm/slub.c:2704 [inline] BUG: KMSAN: uninit-value in __kmalloc_node_track_caller+0x667/0x1160 mm/slub.c:4352 CPU: 1 PID: 4749 Comm: syz-fuzzer Not tainted 4.19.0-rc1+ #40 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+0x14b/0x190 lib/dump_stack.c:113 kmsan_report+0x183/0x2b0 mm/kmsan/kmsan.c:956 __msan_warning+0x70/0xc0 mm/kmsan/kmsan_instr.c:645 slab_alloc_node mm/slub.c:2704 [inline] __kmalloc_node_track_caller+0x667/0x1160 mm/slub.c:4352 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x2f5/0x9e0 net/core/skbuff.c:206 alloc_skb include/linux/skbuff.h:996 [inline] __tcp_send_ack+0x10d/0x880 net/ipv4/tcp_output.c:3584 tcp_send_ack+0x68/0x90 net/ipv4/tcp_output.c:3611 __tcp_ack_snd_check+0x786/0x8e0 net/ipv4/tcp_input.c:5186 tcp_rcv_established+0x25f7/0x2860 net/ipv4/tcp_input.c:5607 tcp_v4_do_rcv+0x689/0xd50 net/ipv4/tcp_ipv4.c:1532 sk_backlog_rcv include/net/sock.h:931 [inline] __release_sock+0x2ae/0x660 net/core/sock.c:2336 release_sock+0x99/0x2a0 net/core/sock.c:2849 tcp_sendmsg+0xd6/0x100 net/ipv4/tcp.c:1444 inet_sendmsg+0x49a/0x740 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg net/socket.c:631 [inline] sock_write_iter+0x3b8/0x470 net/socket.c:900 call_write_iter include/linux/fs.h:1807 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x7ae/0xa50 fs/read_write.c:487 vfs_write+0x495/0x8e0 fs/read_write.c:549 ksys_write fs/read_write.c:598 [inline] __do_sys_write fs/read_write.c:610 [inline] __se_sys_write+0x173/0x350 fs/read_write.c:607 __x64_sys_write+0x4a/0x70 fs/read_write.c:607 do_syscall_64+0xb8/0x100 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x47fc44 Code: ff ff cc cc cc cc e8 ab 41 fb ff 48 8b 7c 24 10 48 8b 74 24 18 48 8b 54 24 20 45 31 d2 45 31 c0 45 31 c9 48 8b 44 24 08 0f 05 <48> 3d 01 f0 ff ff 76 20 48 c7 44 24 28 ff ff ff ff 48 c7 44 24 30 RSP: 002b:000000c42d589338 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000047fc44 RDX: 0000000000000004 RSI: 000000c4201203e0 RDI: 0000000000000003 RBP: 000000c42d589388 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000c42000f340 R13: 000000000000000f R14: 0000000000b782a0 R15: 000000000000632c Uninit was created at: kernel msg: ebtables bug: please report to author: EBT_ENTRY_OR_ENTRIES shouldn't be set in distinguisher kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline] kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:181 kmsan_kmalloc+0x98/0x100 mm/kmsan/kmsan_hooks.c:91 kmsan_slab_alloc+0x10/0x20 mm/kmsan/kmsan_hooks.c:100 slab_post_alloc_hook mm/slab.h:446 [inline] slab_alloc_node mm/slub.c:2719 [inline] __kmalloc_node_track_caller+0x9e7/0x1160 mm/slub.c:4352 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x2f5/0x9e0 net/core/skbuff.c:206 alloc_skb_fclone include/linux/skbuff.h:1038 [inline] sk_stream_alloc_skb+0x172/0xc90 net/ipv4/tcp.c:874 tso_fragment net/ipv4/tcp_output.c:1860 [inline] tcp_write_xmit+0x2677/0xa5a0 net/ipv4/tcp_output.c:2354 __tcp_push_pending_frames+0x124/0x400 net/ipv4/tcp_output.c:2534 tcp_push_pending_frames include/net/tcp.h:1740 [inline] tcp_data_snd_check+0x180/0xe40 net/ipv4/tcp_input.c:5160 tcp_rcv_established+0x1ad7/0x2860 net/ipv4/tcp_input.c:5642 tcp_v4_do_rcv+0x689/0xd50 net/ipv4/tcp_ipv4.c:1532 tcp_v4_rcv+0x6b60/0x70a0 net/ipv4/tcp_ipv4.c:1824 ip_local_deliver_finish+0x7ee/0xea0 net/ipv4/ip_input.c:215 NF_HOOK include/linux/netfilter.h:287 [inline] ip_local_deliver+0x438/0x4d0 net/ipv4/ip_input.c:256 dst_input include/net/dst.h:450 [inline] ip_rcv_finish net/ipv4/ip_input.c:415 [inline] NF_HOOK include/linux/netfilter.h:287 [inline] ip_rcv+0x65f/0x6d0 net/ipv4/ip_input.c:524 __netif_receive_skb_one_core net/core/dev.c:4892 [inline] __netif_receive_skb net/core/dev.c:5002 [inline] process_backlog+0x752/0x10b0 net/core/dev.c:5808 napi_poll net/core/dev.c:6228 [inline] net_rx_action+0x723/0x19d0 net/core/dev.c:6294 __do_softirq+0x562/0x948 kernel/softirq.c:292