[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aQ0oIi6idr6z9IAr@rli9-mobl>
Date: Fri, 7 Nov 2025 06:58:42 +0800
From: Philip Li <philip.li@...el.com>
To: Ard Biesheuvel <ardb@...nel.org>
CC: Dan Carpenter <dan.carpenter@...aro.org>, <oe-kbuild@...ts.linux.dev>,
Francesco Pompo <francescopompo2@...il.com>, <lkp@...el.com>,
<oe-kbuild-all@...ts.linux.dev>, <linux-efi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] efistub/smbios: Add fallback for SMBIOS record lookup
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@...aro.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@...el.com>
> > | Reported-by: Dan Carpenter <dan.carpenter@...aro.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.
>
Powered by blists - more mailing lists