===================================================== BUG: KMSAN: uninit-value in bpf_iter_prog_supported+0x3dd/0x6a0 kernel/bpf/bpf_iter.c:329 CPU: 1 PID: 17316 Comm: bpf_preload Not tainted 5.10.0-rc4-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+0x21c/0x280 lib/dump_stack.c:118 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5f/0xa0 mm/kmsan/kmsan_instr.c:197 bpf_iter_prog_supported+0x3dd/0x6a0 kernel/bpf/bpf_iter.c:329 check_attach_btf_id kernel/bpf/verifier.c:11772 [inline] bpf_check+0x11872/0x1c380 kernel/bpf/verifier.c:11900 bpf_prog_load kernel/bpf/syscall.c:2210 [inline] __do_sys_bpf+0x17483/0x1aee0 kernel/bpf/syscall.c:4399 __se_sys_bpf+0x8e/0xa0 kernel/bpf/syscall.c:4357 __x64_sys_bpf+0x4a/0x70 kernel/bpf/syscall.c:4357 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f21fadf4469 Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 8b 0d ff 49 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007ffccc10ec68 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000001a18110 RCX: 00007f21fadf4469 RDX: 0000000000000078 RSI: 00007ffccc10ed20 RDI: 0000000000000005 RBP: 00007ffccc10ed20 R08: 0000003100000008 R09: 0000000000000000 R10: 00007ffccc10ef18 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffccc10ed50 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_poison_shadow+0x5c/0xf0 mm/kmsan/kmsan.c:104 kmsan_slab_alloc+0x8d/0xe0 mm/kmsan/kmsan_hooks.c:76 slab_alloc_node mm/slub.c:2906 [inline] slab_alloc mm/slub.c:2915 [inline] kmem_cache_alloc_trace+0x893/0x1000 mm/slub.c:2932 kmalloc include/linux/slab.h:552 [inline] bpf_iter_reg_target+0x81/0x3f0 kernel/bpf/bpf_iter.c:276 bpf_sk_storage_map_iter_init+0x6a/0x85 net/core/bpf_sk_storage.c:870 do_one_initcall+0x362/0x8d0 init/main.c:1220 do_initcall_level+0x1e7/0x35a init/main.c:1293 do_initcalls+0x127/0x1cb init/main.c:1309 do_basic_setup+0x33/0x36 init/main.c:1329 kernel_init_freeable+0x238/0x38b init/main.c:1529 kernel_init+0x1f/0x840 init/main.c:1418 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 =====================================================