===================================================== BUG: KMSAN: uninit-value in strnchr+0x90/0xd0 lib/string.c:387 strnchr+0x90/0xd0 lib/string.c:387 bpf_bprintf_prepare+0x1c2/0x23c0 kernel/bpf/helpers.c:829 ____bpf_trace_printk kernel/trace/bpf_trace.c:385 [inline] bpf_trace_printk+0xec/0x3e0 kernel/trace/bpf_trace.c:375 ___bpf_prog_run+0x13fe/0xe0f0 kernel/bpf/core.c:1997 __bpf_prog_run288+0xb5/0xe0 kernel/bpf/core.c:2237 bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline] __bpf_prog_run include/linux/filter.h:657 [inline] bpf_prog_run include/linux/filter.h:664 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2381 [inline] bpf_trace_run3+0x132/0x320 kernel/trace/bpf_trace.c:2421 __bpf_trace_kmem_cache_free+0x31/0x40 include/trace/events/kmem.h:114 trace_kmem_cache_free include/trace/events/kmem.h:114 [inline] kmem_cache_free+0x6e6/0xac0 mm/slub.c:4416 __kfree_skb+0x1f8/0x250 net/core/skbuff.c:1217 kfree_skb_reason+0x127/0x4f0 net/core/skbuff.c:1252 __netif_receive_skb_core+0x55fc/0x6190 net/core/dev.c:5518 __netif_receive_skb_one_core net/core/dev.c:5542 [inline] __netif_receive_skb+0xca/0xa00 net/core/dev.c:5658 process_backlog+0x480/0x8b0 net/core/dev.c:5987 __napi_poll+0xe7/0x980 net/core/dev.c:6638 napi_poll net/core/dev.c:6707 [inline] net_rx_action+0x89d/0x1820 net/core/dev.c:6822 handle_softirqs+0x1d8/0x810 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0x68/0x120 kernel/softirq.c:637 irq_exit_rcu+0x12/0x20 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x83/0x90 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1f/0x30 arch/x86/include/asm/idtentry.h:702 percpu_ref_tryget_many include/linux/percpu-refcount.h:243 [inline] percpu_ref_tryget include/linux/percpu-refcount.h:266 [inline] css_tryget include/linux/cgroup_refcnt.h:45 [inline] get_mem_cgroup_from_objcg include/linux/memcontrol.h:536 [inline] obj_cgroup_uncharge_pages+0x95/0x590 mm/memcontrol.c:3278 refill_obj_stock+0x38f/0x5d0 mm/memcontrol.c:3553 obj_cgroup_uncharge+0x26/0x30 mm/memcontrol.c:3602 __memcg_slab_free_hook+0x216/0x560 mm/slub.c:2010 memcg_slab_free_hook mm/slub.c:2030 [inline] slab_free mm/slub.c:4351 [inline] kmem_cache_free+0x55d/0xac0 mm/slub.c:4417 sk_prot_free net/core/sock.c:2114 [inline] __sk_destruct+0x6fb/0xb70 net/core/sock.c:2208 sk_destruct net/core/sock.c:2223 [inline] __sk_free+0x6de/0x760 net/core/sock.c:2234 sk_free+0x70/0xc0 net/core/sock.c:2245 sock_put include/net/sock.h:1950 [inline] tcp_close+0xfc/0x150 net/ipv4/tcp.c:2936 inet_release+0x2a3/0x380 net/ipv4/af_inet.c:437 inet6_release+0x7b/0xe0 net/ipv6/af_inet6.c:489 __sock_release net/socket.c:659 [inline] sock_close+0xd6/0x2d0 net/socket.c:1421 __fput+0x6a1/0x10c0 fs/file_table.c:422 __fput_sync+0x74/0x90 fs/file_table.c:507 __do_sys_close fs/open.c:1556 [inline] __se_sys_close+0x290/0x4d0 fs/open.c:1541 __x64_sys_close+0x48/0x60 fs/open.c:1541 x64_sys_call+0x2c48/0x3b50 arch/x86/include/generated/asm/syscalls_64.h:4 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Local variable stack created at: __bpf_prog_run288+0x45/0xe0 kernel/bpf/core.c:2237 bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline] __bpf_prog_run include/linux/filter.h:657 [inline] bpf_prog_run include/linux/filter.h:664 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2381 [inline] bpf_trace_run3+0x132/0x320 kernel/trace/bpf_trace.c:2421 CPU: 1 PID: 8337 Comm: syz-executor.3 Not tainted 6.9.0-syzkaller-02707-g614da38e2f7a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 =====================================================