================================================================== BUG: KMSAN: uninit-value in kvm_clear_dirty_log_protect+0x78b/0xaa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1263 CPU: 1 PID: 8107 Comm: syz-executor.3 Not tainted 5.0.0-rc1+ #9 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+0x173/0x1d0 lib/dump_stack.c:113 kmsan_report+0x12e/0x2a0 mm/kmsan/kmsan.c:600 __msan_warning+0x82/0xf0 mm/kmsan/kmsan_instr.c:313 kvm_clear_dirty_log_protect+0x78b/0xaa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1263 kvm_vm_ioctl_clear_dirty_log+0x143/0x210 arch/x86/kvm/x86.c:4468 kvm_vm_ioctl+0xe48/0x2df0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3126 do_vfs_ioctl+0xebd/0x2bf0 fs/ioctl.c:46 ksys_ioctl fs/ioctl.c:713 [inline] __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl+0x1da/0x270 fs/ioctl.c:718 __x64_sys_ioctl+0x4a/0x70 fs/ioctl.c:718 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x457e29 Code: ad b8 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 b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fecfc422c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457e29 RDX: 0000000020bf7000 RSI: 00000000c018aec0 RDI: 0000000000000004 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fecfc4236d4 R13: 00000000004ca298 R14: 00000000004d2e70 R15: 00000000ffffffff Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:205 [inline] kmsan_internal_poison_shadow+0x92/0x150 mm/kmsan/kmsan.c:159 kmsan_kmalloc+0xa6/0x130 mm/kmsan/kmsan_hooks.c:176 __kmalloc_node+0x7a8/0x1030 mm/slub.c:3853 kmalloc_node include/linux/slab.h:588 [inline] kvmalloc_node+0x19f/0x3d0 mm/util.c:416 xt_jumpstack_alloc net/netfilter/x_tables.c:1328 [inline] xt_replace_table+0x34e/0xb80 net/netfilter/x_tables.c:1367 __do_replace+0x2c5/0xf70 net/ipv6/netfilter/ip6_tables.c:1087 do_replace net/ipv6/netfilter/ip6_tables.c:1160 [inline] do_ip6t_set_ctl+0x750/0x9d0 net/ipv6/netfilter/ip6_tables.c:1684 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x47c/0x4e0 net/netfilter/nf_sockopt.c:115 ipv6_setsockopt+0x1e2/0x350 net/ipv6/ipv6_sockglue.c:945 tcp_setsockopt+0x1c0/0x1f0 net/ipv4/tcp.c:3068 sock_common_setsockopt+0x13b/0x170 net/core/sock.c:2991 __sys_setsockopt+0x493/0x540 net/socket.c:1902 __do_sys_setsockopt net/socket.c:1913 [inline] __se_sys_setsockopt+0xdd/0x100 net/socket.c:1910 __x64_sys_setsockopt+0x62/0x80 net/socket.c:1910 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================