From: Philip Li <philip.li@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: Dan Carpenter <dan.carpenter@linaro.org>,
<oe-kbuild@lists.linux.dev>,
Francesco Pompo <francescopompo2@gmail.com>, <lkp@intel.com>,
<oe-kbuild-all@lists.linux.dev>, <linux-efi@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] efistub/smbios: Add fallback for SMBIOS record lookup
Date: Fri, 7 Nov 2025 06:58:42 +0800 [thread overview]
Message-ID: <aQ0oIi6idr6z9IAr@rli9-mobl> (raw)
In-Reply-To: <CAMj1kXHZioMA21NM_Ddg+U0siyxzTkGWjYiY_jUNP=QXvu1jdw@mail.gmail.com>
On Thu, Nov 06, 2025 at 06:50:12PM +0100, Ard Biesheuvel wrote:
> Hi Dan,
>
> On Thu, 6 Nov 2025 at 14:08, Dan Carpenter <dan.carpenter@linaro.org> wrote:
> >
> > Hi Francesco,
> >
> > kernel test robot noticed the following build warnings:
> >
> > https://git-scm.com/docs/git-format-patch#_base_tree_information]
> >
> > url: https://github.com/intel-lab-lkp/linux/commits/Francesco-Pompo/efistub-smbios-Add-fallback-for-SMBIOS-record-lookup/20251102-081803
> > base: https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git next
> > patch link: https://lore.kernel.org/r/20251102001411.108385-1-francescopompo2%40gmail.com
> > patch subject: [PATCH] efistub/smbios: Add fallback for SMBIOS record lookup
> > config: i386-randconfig-141-20251103 (https://download.01.org/0day-ci/archive/20251104/202511040131.8yGeRa6u-lkp@intel.com/config)
> > compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
> >
> > If you fix the issue in a separate patch/commit (i.e. not just a new version of
> > the same patch/commit), kindly add following tags
> > | Reported-by: kernel test robot <lkp@intel.com>
> > | Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> > | Closes: https://lore.kernel.org/r/202511040131.8yGeRa6u-lkp@intel.com/
> >
> > smatch warnings:
> > drivers/firmware/efi/libstub/smbios.c:55 verify_ep_int_checksum() error: buffer overflow 'ptr' 5 <= 14
> >
> > vim +/ptr +55 drivers/firmware/efi/libstub/smbios.c
> >
> > d45578057224c4 Francesco Pompo 2025-11-02 48 static bool verify_ep_int_checksum(const struct smbios_entry_point *ep)
> > d45578057224c4 Francesco Pompo 2025-11-02 49 {
> > d45578057224c4 Francesco Pompo 2025-11-02 50 const u8 *ptr = (u8 *)&ep->int_anchor;
> > d45578057224c4 Francesco Pompo 2025-11-02 51 u8 sum = 0;
> > d45578057224c4 Francesco Pompo 2025-11-02 52 int i;
> > d45578057224c4 Francesco Pompo 2025-11-02 53
> > d45578057224c4 Francesco Pompo 2025-11-02 54 for (i = 0; i < 15; i++)
> > d45578057224c4 Francesco Pompo 2025-11-02 @55 sum += ptr[i];
> >
> > This loop reads across a bunch of struct members. We would normally
> > use a struct_group() to say that all the struct members are grouped
> > together.
> >
> > d45578057224c4 Francesco Pompo 2025-11-02 56
> > d45578057224c4 Francesco Pompo 2025-11-02 57 return sum == 0;
> > d45578057224c4 Francesco Pompo 2025-11-02 58 }
> >
>
> Please report issues against the version of the patch that is actually
> in -next, rather than random versions from the mailing list.
Sorry for this, this is the bot issue, that i will update bot to try to filter
out such patches from mailing list to avoid testing them.
>
prev parent reply other threads:[~2025-11-06 22:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-02 0:13 [PATCH] efistub/smbios: Add fallback for SMBIOS record lookup Francesco Pompo
2025-11-03 8:19 ` Ard Biesheuvel
2025-11-03 10:14 ` Francesco Pompò
2025-11-03 10:41 ` Ard Biesheuvel
2025-11-03 13:11 ` Ard Biesheuvel
2025-11-03 13:14 ` francesco
2025-11-06 13:08 ` Dan Carpenter
2025-11-06 17:50 ` Ard Biesheuvel
2025-11-06 22:58 ` Philip Li [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aQ0oIi6idr6z9IAr@rli9-mobl \
--to=philip.li@intel.com \
--cc=ardb@kernel.org \
--cc=dan.carpenter@linaro.org \
--cc=francescopompo2@gmail.com \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox