1FILE: arch/x86/kernel/dumpstack.c 2 3================================================================== 4BUG: KMSAN: use of uninitialized memory in show_trace_log_lvl+0xda4/0x1030 arch/x86/kernel/dumpstack.c:203 5CPU: 1 PID: 4975 Comm: syz-executor1 Not tainted 4.16.0-rc4+ #60 6Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 7Call Trace: 8 __dump_stack lib/dump_stack.c:17 [inline] 9 dump_stack+0x14a/0x1d0 lib/dump_stack.c:53 10 kmsan_report+0x142/0x1f0 mm/kmsan/kmsan.c:1093 11 __msan_warning_32+0x6c/0xb0 mm/kmsan/kmsan_instr.c:676 12 show_trace_log_lvl+0xda4/0x1030 arch/x86/kernel/dumpstack.c:203 13 show_stack+0xfc/0x150 arch/x86/kernel/dumpstack.c:236 14 __dump_stack lib/dump_stack.c:17 [inline] 15 dump_stack+0x185/0x1d0 lib/dump_stack.c:53 16 warn_alloc+0x401/0x660 mm/page_alloc.c:3317 17 __vmalloc_node_range+0xa59/0x1120 mm/vmalloc.c:1775 18 __vmalloc_node mm/vmalloc.c:1804 [inline] 19 __vmalloc_node_flags_caller+0x102/0x120 mm/vmalloc.c:1826 20 kvmalloc_node+0x2aa/0x2e0 mm/util.c:428 21 kvmalloc include/linux/mm.h:541 [inline] 22 kvmalloc_array include/linux/mm.h:557 [inline] 23 xt_alloc_entry_offsets+0x62/0x70 net/netfilter/x_tables.c:778 24 translate_table+0x21b/0x3890 net/ipv6/netfilter/ip6_tables.c:703 25 do_replace net/ipv6/netfilter/ip6_tables.c:1164 [inline] 26 do_ip6t_set_ctl+0x60e/0x930 net/ipv6/netfilter/ip6_tables.c:1690 27 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] 28 nf_setsockopt+0x476/0x4d0 net/netfilter/nf_sockopt.c:115 29 ipv6_setsockopt+0x1e8/0x360 net/ipv6/ipv6_sockglue.c:927 30 tcp_setsockopt+0x1bb/0x1f0 net/ipv4/tcp.c:2905 31 sock_common_setsockopt+0x137/0x170 net/core/sock.c:2975 32 SYSC_setsockopt+0x405/0x570 net/socket.c:1849 33 SyS_setsockopt+0x76/0xa0 net/socket.c:1828 34 do_syscall_64+0x2f1/0x450 arch/x86/entry/common.c:287 35 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 36RIP: 0033:0x453e69 37RSP: 002b:00007fae2c76ec68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 38RAX: ffffffffffffffda RBX: 00007fae2c76f6d4 RCX: 0000000000453e69 39RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000013 40RBP: 000000000072bea0 R08: 0000000000000004 R09: 0000000000000000 41R10: 0000000020001fde R11: 0000000000000246 R12: 00000000ffffffff 42R13: 0000000000000520 R14: 00000000006f7ba0 R15: 0000000000000000 43chained origin: 44 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:303 [inline] 45 kmsan_save_stack mm/kmsan/kmsan.c:318 [inline] 46 kmsan_internal_chain_origin+0x12d/0x210 mm/kmsan/kmsan.c:709 47 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:521 48 update_stack_state+0x9de/0xa30 arch/x86/kernel/unwind_frame.c:261 49 unwind_next_frame+0x607/0xe40 arch/x86/kernel/unwind_frame.c:329 50 show_trace_log_lvl+0xb48/0x1030 arch/x86/kernel/dumpstack.c:212 51 show_stack+0xfc/0x150 arch/x86/kernel/dumpstack.c:236 52 __dump_stack lib/dump_stack.c:17 [inline] 53 dump_stack+0x185/0x1d0 lib/dump_stack.c:53 54 warn_alloc+0x401/0x660 mm/page_alloc.c:3317 55 __vmalloc_node_range+0xa59/0x1120 mm/vmalloc.c:1775 56 __vmalloc_node mm/vmalloc.c:1804 [inline] 57 __vmalloc_node_flags_caller+0x102/0x120 mm/vmalloc.c:1826 58 kvmalloc_node+0x2aa/0x2e0 mm/util.c:428 59 kvmalloc include/linux/mm.h:541 [inline] 60 kvmalloc_array include/linux/mm.h:557 [inline] 61 xt_alloc_entry_offsets+0x62/0x70 net/netfilter/x_tables.c:778 62 translate_table+0x21b/0x3890 net/ipv6/netfilter/ip6_tables.c:703 63 do_replace net/ipv6/netfilter/ip6_tables.c:1164 [inline] 64 do_ip6t_set_ctl+0x60e/0x930 net/ipv6/netfilter/ip6_tables.c:1690 65 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] 66 nf_setsockopt+0x476/0x4d0 net/netfilter/nf_sockopt.c:115 67 ipv6_setsockopt+0x1e8/0x360 net/ipv6/ipv6_sockglue.c:927 68 tcp_setsockopt+0x1bb/0x1f0 net/ipv4/tcp.c:2905 69 sock_common_setsockopt+0x137/0x170 net/core/sock.c:2975 70 SYSC_setsockopt+0x405/0x570 net/socket.c:1849 71 SyS_setsockopt+0x76/0xa0 net/socket.c:1828 72 do_syscall_64+0x2f1/0x450 arch/x86/entry/common.c:287 73 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 74origin description: ----ad.i@selinux_socket_setsockopt 75local variable created at: 76 selinux_socket_setsockopt+0x73/0x3b0 security/selinux/hooks.c:4627 77 security_socket_setsockopt+0x130/0x210 security/security.c:1396 78================================================================== 79