Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2600321rdb; Wed, 21 Feb 2024 12:55:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVdOKcuFOgT5zWWJ6pd87XbLldVeoC9osLcSvEKKXulcVTt/NulK5Qx/Fu0PS+zXPtIQ1XwBG5wLAeQoXBbfiyFAld34vvwxjuKCuUN0A== X-Google-Smtp-Source: AGHT+IEkWXNkWvDkDrQC0dIARxus+RZU7ESIPVFu67XoDl0beF+tJjRZ5v4uWQX5m+94QMfFdHRP X-Received: by 2002:a05:6512:2095:b0:512:901a:eb9e with SMTP id t21-20020a056512209500b00512901aeb9emr11561454lfr.58.1708548939300; Wed, 21 Feb 2024 12:55:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708548939; cv=pass; d=google.com; s=arc-20160816; b=YbCZSv/U8tvXYGEGhHDU8oyJWrj+bbrlJW6tc33CBu8w3bmHNIbek9JtGmXNXvkx5u E9IbFk0xoR080YQbgeKZJnM+mpQUcgWHKv8xEHgNsR7oDl/zl3JSpyaAC/T0t8A+AbBT itrhg0tfudd/gcZtQiRRkoquye6gSl0rWp1C8CSO4eb1GQqhxph7GhebT3n87IJRLdJZ jg/CZSQQhaJIw+NhlTfidbfWI/nSAY3WjN6H6dhzEqH2MrcdnFGOOlPVPwk9JgRelTFQ UCj7rolo+JXDgAQ8r6dBK1KY8aWEkhuktCCELoqPlbpUJHg1rpsQsaBQKMAhFpUYAbps GaWw== 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=qtt7yIyV6XwD7hBaKZDpwR3hipJAtiE0FYIHBc4h1jM=; fh=ZyD+lZqQSaWzPCZEij99wDdHSAai+Cg9kNNEIhqvie0=; b=Itrrcwx8QZ2eDyPJYGPcMLKKv0r3KIbH3YpjVo/89s92c6BVNc3ERRcbcTzXN9zBVD 0+otT8cEeTQOi2hSC9N9FJh/kYd868qWQQr3WBVkIxjQllj+Oyh8to8Qv9hoYJiV7KTO BXVhVhIh/DoKoKYCsDyakDlTSKBY2f3tvvfMQhw1itXp6xWVjApgMa142ywJFq6gWQo1 GM+W/EjgzgrMHpH2oUE9M5sQSLHxLzaqI9zrMR0J/xWG3FuZyN3HBTSXmQefndUaZsrL mPYT56vHe9Tw0c9aM4/zgQhngxeQJ1Rf72oq3qvH9iyUB9g4gCZmtQ14CBwl8nTaSR57 yVLw==; 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-75480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q17-20020aa7d451000000b00563aae9a397si4403396edr.10.2024.02.21.12.55.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 12:55:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-75480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75480-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 111471F231F8 for ; Wed, 21 Feb 2024 20:55:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE46986AEE; Wed, 21 Feb 2024 20:55:25 +0000 (UTC) Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) (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 9901F3A1AF for ; Wed, 21 Feb 2024 20:55:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708548925; cv=none; b=PIWRb388ro+rDSKBGrLFoas30zvkbqDey53Lh953LXyNukHLeDJYPtJcpd6xbXXhNs/1FN0iIeJvv7weO4Hyt2yk5iUdu1L/kfapMN7NyLjKBjUuPmaoCVz89vsiBagENe9Tm4qguXJDQ+usxuzj0ZT08wZTVK4BPfZGKhWdxg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708548925; c=relaxed/simple; bh=caKc/CPpM4x3ScSRVkyxc33LEvt4ZNW7IkX4c5n4n9Y=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=mXxdb7lyD697seCIztTf/ykoVZUYfX6UpK3IjUH6Nd8FQRo+tCKRAI55YOyekL2IwRetVX1gQhxHQi9m/nw0eoZ1Cay88Tz1RMpbvo8z/N40HT9LGFwiGoqQaP8LTKVfCfb2+XUSpvocy80y4EvIJkFUVRvewZ+VqCaD7I22kvU= 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.71 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-f71.google.com with SMTP id ca18e2360f4ac-7c7490332deso394216539f.1 for ; Wed, 21 Feb 2024 12:55:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708548923; x=1709153723; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qtt7yIyV6XwD7hBaKZDpwR3hipJAtiE0FYIHBc4h1jM=; b=dU2L33BhTE/Hgam1rvwYJKkcjUHq45GDkQbKVp/xqPHjpABSwOFB6D9gjAg/gtdgm4 9qIC+qW7uf9/1clyQCyyEOKwzzVyhjEHBG01AZRjQmO4XveUMsFjHhFBrY0ukzvgaqus bJ7QcvVqFL1vmMTQn4/G5N1cKeZs3MLIy1U++T9DboM+V4A9QNkPUDDTp+2cF5rrChAF FDxyWPFWiB50p3HNepL7a19W1tah3k0lDhvuKIoetmPK/bFdoiBWjJGdImvIsxPB+/JO W1meGDYfcVQvEmazMz+kOnXyC45a+Mug3FoVsS8sC8fS+U07JRfhaq5xjuzdR+HjfRxD gZNg== X-Forwarded-Encrypted: i=1; AJvYcCXQ0lJNeuBZ64SlFKC81KDoc3B1boSDYEIExz8HIFu7KfWZA7JzMFbk1wttHflxbw4fyk+xsOc8glPeRnCGYCKsykMBsf1o4HKX4n12 X-Gm-Message-State: AOJu0Yw/MS32hHVWayacSDnXXIVo72VlbUCxCqx0ozzuoWPO65yRoqL2 NdmV8hg3J7W5dULP10HZqphx2p/RnDemUxV4dONseSdIT7CzmeelV2uEKhgIOdRiZRVZDsLeyAU 9Dth/DIcAPBomkGKJdYBfocuemOTeJUJEsLTY58B/+nbo3ESCa34aMYA= 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:4905:b0:473:edc2:9589 with SMTP id cx5-20020a056638490500b00473edc29589mr459889jab.3.1708548922907; Wed, 21 Feb 2024 12:55:22 -0800 (PST) Date: Wed, 21 Feb 2024 12:55:22 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000a1a6990611ea8b4d@google.com> Subject: [syzbot] [bpf?] KMSAN: uninit-value in bpf_bprintf_prepare From: syzbot To: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, 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: c1ca10ceffbb Merge tag 'scsi-fixes' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1364db0c180000 kernel config: https://syzkaller.appspot.com/x/.config?x=e3dd779fba027968 dashboard link: https://syzkaller.appspot.com/bug?extid=c2dc95f7d0825a145992 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/83d019f0ac47/disk-c1ca10ce.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/49e05dd7a23d/vmlinux-c1ca10ce.xz kernel image: https://storage.googleapis.com/syzbot-assets/68ec9fa2d33d/bzImage-c1ca10ce.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+c2dc95f7d0825a145992@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in bpf_bprintf_prepare+0x20d7/0x23b0 kernel/bpf/helpers.c:904 bpf_bprintf_prepare+0x20d7/0x23b0 kernel/bpf/helpers.c:904 ____bpf_snprintf kernel/bpf/helpers.c:1060 [inline] bpf_snprintf+0x141/0x360 kernel/bpf/helpers.c:1044 ___bpf_prog_run+0x2180/0xdb80 kernel/bpf/core.c:1986 __bpf_prog_run288+0xb5/0xe0 kernel/bpf/core.c:2226 bpf_dispatcher_nop_func include/linux/bpf.h:1231 [inline] __bpf_prog_run include/linux/filter.h:651 [inline] bpf_prog_run include/linux/filter.h:658 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:675 [inline] bpf_flow_dissect+0x127/0x470 net/core/flow_dissector.c:991 bpf_prog_test_run_flow_dissector+0x6f4/0xa20 net/bpf/test_run.c:1359 bpf_prog_test_run+0x6af/0xac0 kernel/bpf/syscall.c:4107 __sys_bpf+0x649/0xd60 kernel/bpf/syscall.c:5475 __do_sys_bpf kernel/bpf/syscall.c:5561 [inline] __se_sys_bpf kernel/bpf/syscall.c:5559 [inline] __x64_sys_bpf+0xa0/0xe0 kernel/bpf/syscall.c:5559 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+0x63/0x6b Local variable stack created at: __bpf_prog_run288+0x45/0xe0 kernel/bpf/core.c:2226 bpf_dispatcher_nop_func include/linux/bpf.h:1231 [inline] __bpf_prog_run include/linux/filter.h:651 [inline] bpf_prog_run include/linux/filter.h:658 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:675 [inline] bpf_flow_dissect+0x127/0x470 net/core/flow_dissector.c:991 CPU: 0 PID: 6318 Comm: syz-executor.2 Not tainted 6.8.0-rc4-syzkaller-00331-gc1ca10ceffbb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/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 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