Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp176429lqb; Tue, 16 Apr 2024 12:07:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRxIcPeB73J2RaOyRP4/kBZRvyGEDZ+uZoT2jBXFguX6y+jiouFCvpAysj4kEBfk+69W0aftu10wRolloj8Qxc6fdKwbLwjyT1Nt0U4A== X-Google-Smtp-Source: AGHT+IEtyxrGOXyiiSy4zFwIsRmLE3na5dOuKdJbZyNFHy2YW4ZbTIHHbdqG82UDT9jk/ooQeK8a X-Received: by 2002:a05:6358:6b0b:b0:186:41a2:cbd2 with SMTP id y11-20020a0563586b0b00b0018641a2cbd2mr15487905rwg.27.1713294451161; Tue, 16 Apr 2024 12:07:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713294451; cv=pass; d=google.com; s=arc-20160816; b=u1VZS9ai7Y9uVVdDHPegBTNg1JJpOO5dX70Eb06lOaIOCJuvXDmbdHnc+GSD4zEZh7 /sg3FXvbEpI8i+4+aTkdjr9zXo7Z5Ldo5w0cikAwGAAV3Uce3cs21ClBOh4v61Lu3U6F Gg3wBYTu++8OqfZ5DYw98Vl1oYLlAE44sR439iR439BaAk4WffGefS/M/Ctuh933PFW6 J4y3DLHZkKVkDlny2J42fB8dyabmK0+XwE/vT6Z4iompQKUuhsTtFEb6hXjty1p8I4cg L4WRS7E+qMxku/SxIajt0HcQJeYYx/m/4MFjLKIdii5E8dvEIhpssEkeo38THXv42J7r rKrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=v1VcHZ4INMjp0zCuMH+FIZ5CsXArd0hgI2BAMVJG3no=; fh=ZWtz1h8GDsMu0QswBDlz69SjDJvOou8qyQYLi7Jw5AY=; b=FTsciCfeifOp8kZYA6LQiCNNc3PqpB5IvljcmQJlPjacDHOf1P98bGTsWAe8W4Z6BO l7/nrFox9dq2OQBAny7BSUV7cOqHO3oGueh2xEfaym6RYToMNAZWjbcQxeiU4CPzED94 3Z97mZ/SNU+B8N32LFrSd9eJRMlpIzyuWo0HrIy8A+9d/JTMvLl0WsnpMAh7j29PHR52 FT+b7xf3t3B3I2ECeZ/+hHG+kJqD6Qq5mQNC+Tuv1ecXPArPhtUM3RLH9UnrCpFfd9pJ 7a0hIAPvJi9c5rBXTgGDXY9GYS+0SAlUoDqTLTs3F6qC9gV7f8fsgebJjJgh7P1soz6d ujwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-147448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id in14-20020a056130610e00b007eb501f7624si583644uab.159.2024.04.16.12.07.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 12:07:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-147448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C24AC1C2197A for ; Tue, 16 Apr 2024 19:07:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42230137C20; Tue, 16 Apr 2024 19:07:23 +0000 (UTC) Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25912137777 for ; Tue, 16 Apr 2024 19:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713294442; cv=none; b=dURz54mftZNNfXSF5mWMZR89XDwtKNnwM32DVX59jRj0wnSuKe8XuIOgiRC1c/bImPRXx7NhxbCAIIniphN/AaS6ttvN6CtjiaP1H3oZuMD/hN051TzV2h/ajHr1qXPpaRrlA/jxCQsvEysaZMmi7QT77b65aJVgfL25Xqw6wqw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713294442; c=relaxed/simple; bh=LLiGBtrSxbvzMH3qbceGm1plgiO+v5WFSSgkT35pVoU=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=UBYEzo02/i7XNgfFtXYFpobEzVwHAppsP+HPRsHZpFzKOsvTf4eHp05PRs7XgKNCNUZoy1ZtxhjVSaMmAD/+RNYcqBerhDAKptdR7gFCFQAajlKMgMzm49IyUHKVV20z09Z5PXwWohKOJMf5GQDEYCilqVB+YDjmgyzgS9IJ4fo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f72.google.com with SMTP id ca18e2360f4ac-7d9913d3174so240925139f.0 for ; Tue, 16 Apr 2024 12:07:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713294440; x=1713899240; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=v1VcHZ4INMjp0zCuMH+FIZ5CsXArd0hgI2BAMVJG3no=; b=AwuttZifeBibVk5Icws54HKYTGOSiChyy+81fwGOqKLEJE2SYVtA8l+5+RiNDrksKj VoX8nIf3WMHAnpCxeWPNYj5C5ZHKri1GaDHxUAuSwPbNgNy6SDAlg/vvjrtZ13NW+YN6 vzD/qPMPuLSSmvMPrqbLEJkKUuDD1w3k6CZ8HPzWbV2iA1QOKipayrgM8lif5samptcF lrr+RqMS7Zq+1QcL38/0aqwOnZqnPlxRjK+aFXhASHAaLSNaZRxuQi1E2tbPv2PDkH0Q TvyBFy8E2coaTE5PZ9eBYYjGNrw+wZ7yimUuBam1Q2bBMrifbcKtRpHifAM55+X7m0AV ci9Q== X-Forwarded-Encrypted: i=1; AJvYcCUViTHCE17K/ZhY8aT2zXYnRXMLvNccuejZNgMkN4D1sxPrm+jNSUKz7gQLmBJZ6NYbzTeOU+EBpWxihKKwcpOmbYnWfmGIqk3a2N4L X-Gm-Message-State: AOJu0YxXOwC9N40rxrr/FCXjbXcMdtPCOGYSA/4AswFRgWjua2KLM+XH 22KKE849czZ8uUxQujfsu6I490/8s5YXLJwHqGgUyuQF8Svbol/Z4nl/1qiKZEogCtMxrOhz6N0 5dNYwuwA6mfc46XFAZWJXJ1smPzUf2jg25dnzeRic+Tp+n75NFC3+F58= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6638:1496:b0:47f:1ad4:2c66 with SMTP id j22-20020a056638149600b0047f1ad42c66mr839461jak.5.1713294440332; Tue, 16 Apr 2024 12:07:20 -0700 (PDT) Date: Tue, 16 Apr 2024 12:07:20 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000008312ad06163b7225@google.com> Subject: [syzbot] [bpf?] KMSAN: uninit-value in htab_lru_percpu_map_lookup_percpu_elem From: syzbot To: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, eddyz87@gmail.com, haoluo@google.com, john.fastabend@gmail.com, jolsa@kernel.org, kpsingh@kernel.org, linux-kernel@vger.kernel.org, martin.lau@linux.dev, sdf@google.com, song@kernel.org, syzkaller-bugs@googlegroups.com, yonghong.song@linux.dev Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 7efd0a74039f Merge tag 'ata-6.9-rc4' of git://git.kernel.o.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=1492cb93180000 kernel config: https://syzkaller.appspot.com/x/.config?x=b5bc506ebba90cbf dashboard link: https://syzkaller.appspot.com/bug?extid=1971e47e5210c718db3c compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11ce7393180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=155451eb180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/9fd81e15f087/disk-7efd0a74.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/2e4915d51565/vmlinux-7efd0a74.xz kernel image: https://storage.googleapis.com/syzbot-assets/110eeae33f94/bzImage-7efd0a74.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+1971e47e5210c718db3c@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in __htab_map_lookup_elem kernel/bpf/hashtab.c:691 [inline] BUG: KMSAN: uninit-value in htab_lru_percpu_map_lookup_percpu_elem+0x3f8/0x630 kernel/bpf/hashtab.c:2343 __htab_map_lookup_elem kernel/bpf/hashtab.c:691 [inline] htab_lru_percpu_map_lookup_percpu_elem+0x3f8/0x630 kernel/bpf/hashtab.c:2343 ____bpf_map_lookup_percpu_elem kernel/bpf/helpers.c:133 [inline] bpf_map_lookup_percpu_elem+0x67/0x90 kernel/bpf/helpers.c:130 ___bpf_prog_run+0x13fe/0xe0f0 kernel/bpf/core.c:1997 __bpf_prog_run32+0xb2/0xe0 kernel/bpf/core.c:2236 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_run2+0x116/0x300 kernel/trace/bpf_trace.c:2420 __bpf_trace_kfree+0x29/0x40 include/trace/events/kmem.h:94 trace_kfree include/trace/events/kmem.h:94 [inline] kfree+0x6a5/0xa30 mm/slub.c:4377 security_task_free+0x115/0x150 security/security.c:3032 __put_task_struct+0x17f/0x730 kernel/fork.c:976 put_task_struct include/linux/sched/task.h:138 [inline] delayed_put_task_struct+0x8a/0x280 kernel/exit.c:229 rcu_do_batch kernel/rcu/tree.c:2196 [inline] rcu_core+0xa59/0x1e70 kernel/rcu/tree.c:2471 rcu_core_si+0x12/0x20 kernel/rcu/tree.c:2488 __do_softirq+0x1c0/0x7d7 kernel/softirq.c:554 invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:633 [inline] irq_exit_rcu+0x6a/0x130 kernel/softirq.c:645 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 __msan_metadata_ptr_for_load_8+0x31/0x40 mm/kmsan/instrumentation.c:92 filter_irq_stacks+0x60/0x1a0 kernel/stacktrace.c:397 stack_depot_save_flags+0x2c/0x6e0 lib/stackdepot.c:609 stack_depot_save+0x12/0x20 lib/stackdepot.c:685 __msan_poison_alloca+0x106/0x1b0 mm/kmsan/instrumentation.c:285 arch_local_save_flags arch/x86/include/asm/irqflags.h:67 [inline] arch_local_irq_save arch/x86/include/asm/irqflags.h:103 [inline] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] _raw_spin_lock_irqsave+0x35/0xc0 kernel/locking/spinlock.c:162 remove_wait_queue+0x36/0x270 kernel/sched/wait.c:54 do_wait+0x34a/0x530 kernel/exit.c:1640 kernel_wait4+0x2ab/0x480 kernel/exit.c:1790 __do_sys_wait4 kernel/exit.c:1818 [inline] __se_sys_wait4 kernel/exit.c:1814 [inline] __x64_sys_wait4+0x14e/0x310 kernel/exit.c:1814 x64_sys_call+0x6e6/0x3b50 arch/x86/include/generated/asm/syscalls_64.h:62 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_run32+0x43/0xe0 kernel/bpf/core.c:2236 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_run2+0x116/0x300 kernel/trace/bpf_trace.c:2420 CPU: 0 PID: 5018 Comm: strace-static-x Not tainted 6.9.0-rc3-syzkaller-00355-g7efd0a74039f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ===================================================== --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup