From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f78.google.com (mail-io1-f78.google.com [209.85.166.78]) (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 EA0592230F for ; Sun, 9 Jun 2024 18:42:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717958546; cv=none; b=naQQoG5rDL6ZWGzf8jKOiLWQbg3POurdMlbdWbcF5r/EirOpiT44IGkRDg0McPfWmVFhjgvFxk33Kiv58f3UsUKa3wE4590KKkE+lLlsTFYs2aDpgDAgplQRvIGyC4wdUI8/wXXvWbFx9UTZQvqUeyLXTxmCQYiBoQBZrXoGYNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717958546; c=relaxed/simple; bh=F7GIGH+4JqYpVd1KxGbEJVKtLbaeDms2SF4QYc67dzg=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=Q4f4U/61/kw5m/M4AgXTCJldPNgwsrLINM0CsxoJ+vDs3Z+sZCeiWATpUVyCq8Cz7s9Pk7aNg3sjv9SuSJRyr1gRASw3MI9n/F4HmcL/UgBGmlhVb/qVu4GvGjCSS+lb//posSg9sadRDIQIizPTIUkTRPoR723PsV9w2YW5cAg= 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.78 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-f78.google.com with SMTP id ca18e2360f4ac-7e8e7707356so461493339f.3 for ; Sun, 09 Jun 2024 11:42:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717958544; x=1718563344; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=G1ss3NrQCviCzB7CF1DL9ZjeQDuVbpAJRYuPYPwddfU=; b=ZZp/JrRoiGIpAAbbbtwpplaxz3RXYREz+JMczbapmUl8j3HJKyc5lPJMYUEOhd50c/ akuWuxIh69kKPwDehsr3Ngcqw+V5FNYSbXTjvxNTHdJs+Vi4nKH/7wB7LzC9rTxJGP3a pI/QoiG3Amk5rAQF17bkRBarBEweBfVIBI6HU/cpAwZDkElkghsjPUeVPoypJUwS3wN0 wzMry3JryZKSXqwaFtoJ+aTnAriePacdhNkZjzsDwBNGKRE/D/NY3wzFWJyETX/GOj7V sU4nF9j/0kWdzq2bFIoA/ILRhcKwQnr3iSAn6BfufMl4WoC1JqlzC5SMWVnPWQG9HWqE Ivpw== X-Forwarded-Encrypted: i=1; AJvYcCX2fYnQ9zTSutYoSJ6oDbV6WavY89zYP1cTrGwfDwHE3j1G9lWuiBtFYMgwqKhbnuBoVZDVsxS95+BEv+xdrkf/r4GL1yj+22HxFAAL X-Gm-Message-State: AOJu0YySb4rB6mVmRoos9ZXv+uzGOyCyq8/1sD3U2kF6In3YapWXZUiW VSqkaUzCrO5GNwJjUuZoGdiyvwxyEBKTHQfUQUZkKGtFc4Mg7wYCHoVuXGovkyXOm1mVaoaTd7/ RqZUjSX7vh/UOnuOLoXVWSmbM636Q1vNZ1MC29pXF9Aj39cGF5Ni3p3k= X-Google-Smtp-Source: AGHT+IHZuV3bsqDjnsZQIQwxJliYbuvQ+doJpSjpXInum4m7kv5jcxxM02Mee06+k7N5C6itEya37lRezSh00AXUV4Bif0mIuc+h 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:6602:1544:b0:7eb:75e9:8f2b with SMTP id ca18e2360f4ac-7eb75e990demr14788439f.2.1717958544049; Sun, 09 Jun 2024 11:42:24 -0700 (PDT) Date: Sun, 09 Jun 2024 11:42:24 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000c1dd75061a79647d@google.com> Subject: [syzbot] [bpf?] KMSAN: uninit-value in __bpf_strtoull (2) 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: 614da38e2f7a Merge tag 'hid-for-linus-2024051401' of git:/.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=13b53022980000 kernel config: https://syzkaller.appspot.com/x/.config?x=f5d2cbf33633f507 dashboard link: https://syzkaller.appspot.com/bug?extid=d190d0aff2b3fd6ee95a 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=14267dfc980000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15402886980000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/89eafb874b71/disk-614da38e.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/356000512ad9/vmlinux-614da38e.xz kernel image: https://storage.googleapis.com/syzbot-assets/839c73939115/bzImage-614da38e.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+d190d0aff2b3fd6ee95a@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in __bpf_strtoull+0x245/0x5b0 kernel/bpf/helpers.c:465 __bpf_strtoull+0x245/0x5b0 kernel/bpf/helpers.c:465 __bpf_strtoll kernel/bpf/helpers.c:504 [inline] ____bpf_strtol kernel/bpf/helpers.c:525 [inline] bpf_strtol+0x7c/0x270 kernel/bpf/helpers.c:519 ___bpf_prog_run+0x13fe/0xe0f0 kernel/bpf/core.c:1997 __bpf_prog_run96+0xb5/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_xdp include/net/xdp.h:514 [inline] xdp_test_run_batch net/bpf/test_run.c:313 [inline] bpf_test_run_xdp_live+0x10a9/0x2f70 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0xf02/0x1a40 net/bpf/test_run.c:1267 bpf_prog_test_run+0x6b7/0xad0 kernel/bpf/syscall.c:4269 __sys_bpf+0x6aa/0xd90 kernel/bpf/syscall.c:5678 __do_sys_bpf kernel/bpf/syscall.c:5767 [inline] __se_sys_bpf kernel/bpf/syscall.c:5765 [inline] __x64_sys_bpf+0xa0/0xe0 kernel/bpf/syscall.c:5765 x64_sys_call+0x96b/0x3b50 arch/x86/include/generated/asm/syscalls_64.h:322 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_run96+0x45/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_xdp include/net/xdp.h:514 [inline] xdp_test_run_batch net/bpf/test_run.c:313 [inline] bpf_test_run_xdp_live+0x10a9/0x2f70 net/bpf/test_run.c:384 CPU: 0 PID: 5051 Comm: syz-executor174 Not tainted 6.9.0-syzkaller-02707-g614da38e2f7a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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