Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Li <philip.li@intel.com>
To: Muchun Song <songmuchun@bytedance.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	kernel test robot <lkp@intel.com>,
	<oe-kbuild-all@lists.linux.dev>,
	"Linux Memory Management List" <linux-mm@kvack.org>
Subject: Re: Re: [linux-next:master 8777/13479] mm/hugetlb.c:3095:39: warning: array subscript 4294967295 is above array bounds of 'struct list_head[1]'
Date: Sun, 16 Aug 2026 13:52:56 +0800	[thread overview]
Message-ID: <aoFQOL+m2xMu4gn4@rli9-mobl> (raw)
In-Reply-To: <CAMZfGtUdQqMVJGZP9MkqTcxaOQX=jmBi=BgESLVQy4ek_9pMjw@mail.gmail.com>

On Fri, Aug 07, 2026 at 07:46:30PM +0800, Muchun Song wrote:
> On Fri, Aug 7, 2026 at 7:37 AM Andrew Morton <akpm@linux-foundation.org> wrote:
> >
> > On Fri, 07 Aug 2026 05:01:04 +0800 kernel test robot <lkp@intel.com> wrote:
> >
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > > head:   ea2bff00da89d7767d677bb68470130ba96f4928
> > > commit: 20549ccf4da49ff6dcb35ffc741f92aa92e07aeb [8777/13479] mm/hugetlb: free cross-zone bootmem gigantic pages after allocation
> > > config: parisc-randconfig-002-20260807 (https://download.01.org/0day-ci/archive/20260807/202608070433.x3vNSfjt-lkp@intel.com/config)
> > > compiler: hppa-linux-gcc (GCC) 8.5.0
> >
> > Such an old compiler.
> >
> > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260807/202608070433.x3vNSfjt-lkp@intel.com/reproduce)
> > >
> > > 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>
> > > | Closes: https://lore.kernel.org/oe-kbuild-all/202608070433.x3vNSfjt-lkp@intel.com/
> > >
> > > All warnings (new ones prefixed by >>):
> > >
> > >    mm/hugetlb.c: In function 'alloc_bootmem_huge_page':
> > > >> mm/hugetlb.c:3095:39: warning: array subscript 4294967295 is above array bounds of 'struct list_head[1]' [-Warray-bounds]
> > >        list_add(&m->list, &huge_boot_pages[nid_request]);
> > >                            ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
> > >    In file included from mm/hugetlb.c:6:
> > > >> include/linux/list.h:163:12: warning: array subscript -1 is below array bounds of 'struct list_head[1]' [-Warray-bounds]
> > >      new->prev = prev;
> > >      ~~~~~~~~~~^~~~~~
> >
> > Well crap, that patch has been in there since June 12.
> 
> This isn't the first report. This is the second time we've had the
> exact same report,
> see [1]. Interestingly, the GCC versions are all the same (8.5.0), so
> I think this must
> be a GCC issue.

Thanks for the info, we will configure the bot to avoid sending such
report again.

> 
> https://lore.kernel.org/all/202607010945.6lDjBFTU-lkp@intel.com/
> 
> Muchun,
> Thanks.
> 
> >
> > I can't reproduce it with the provided config and hppa-linux gcc-16.1.0.
> >
> > Muchun, I'd be inclined to pretend we never saw this.  But if you want
> > to address it, please do a patch against mm-stable with
> >
> > Fixes: 20549ccf4da4 ("mm/hugetlb: free cross-zone bootmem gigantic pages after allocation")
> >
> 


      reply	other threads:[~2026-08-16  5:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-06 21:01 [linux-next:master 8777/13479] mm/hugetlb.c:3095:39: warning: array subscript 4294967295 is above array bounds of 'struct list_head[1]' kernel test robot
2026-08-06 23:36 ` Andrew Morton
2026-08-07 11:46   ` Muchun Song
2026-08-16  5:52     ` 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=aoFQOL+m2xMu4gn4@rli9-mobl \
    --to=philip.li@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-mm@kvack.org \
    --cc=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=songmuchun@bytedance.com \
    /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