linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 6276/7050] lib/stackdepot.c:326: undefined reference to `__irqentry_text_start'
@ 2020-03-06 18:42 kbuild test robot
  2020-03-07  3:16 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2020-03-06 18:42 UTC (permalink / raw)
  To: Andrew Morton; +Cc: kbuild-all, Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 1915 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   b86a6a241b7c60ca7a6ca4fb3c0d2aedbbf2c1b6
commit: 2d8fce24a0fb125e4fbbd4bb546cc0f9e6122d8d [6276/7050] kasan: stackdepot: move filter_irq_stacks() to stackdepot.c
config: ia64-randconfig-a001-20200306 (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2d8fce24a0fb125e4fbbd4bb546cc0f9e6122d8d
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=ia64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   lib/stackdepot.o: In function `in_irqentry_text':
>> lib/stackdepot.c:326: undefined reference to `__irqentry_text_start'
>> lib/stackdepot.c:325: undefined reference to `__irqentry_text_end'
>> lib/stackdepot.c:326: undefined reference to `__softirqentry_text_start'
>> lib/stackdepot.c:327: undefined reference to `__softirqentry_text_end'
>> lib/stackdepot.c:326: undefined reference to `__irqentry_text_start'
>> lib/stackdepot.c:325: undefined reference to `__irqentry_text_end'
>> lib/stackdepot.c:326: undefined reference to `__softirqentry_text_start'
>> lib/stackdepot.c:327: undefined reference to `__softirqentry_text_end'

vim +326 lib/stackdepot.c

   322	
   323	static inline int in_irqentry_text(unsigned long ptr)
   324	{
 > 325		return (ptr >= (unsigned long)&__irqentry_text_start &&
 > 326			ptr < (unsigned long)&__irqentry_text_end) ||
 > 327			(ptr >= (unsigned long)&__softirqentry_text_start &&
   328			 ptr < (unsigned long)&__softirqentry_text_end);
   329	}
   330	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36617 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-next:master 6276/7050] lib/stackdepot.c:326: undefined reference to `__irqentry_text_start'
  2020-03-06 18:42 [linux-next:master 6276/7050] lib/stackdepot.c:326: undefined reference to `__irqentry_text_start' kbuild test robot
@ 2020-03-07  3:16 ` Andrew Morton
  2020-03-07 13:41   ` Alexander Potapenko
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2020-03-07  3:16 UTC (permalink / raw)
  To: kbuild test robot, Alexander Potapenko
  Cc: kbuild-all, Linux Memory Management List

On Sat, 7 Mar 2020 02:42:14 +0800 kbuild test robot <lkp@intel.com> wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   b86a6a241b7c60ca7a6ca4fb3c0d2aedbbf2c1b6
> commit: 2d8fce24a0fb125e4fbbd4bb546cc0f9e6122d8d [6276/7050] kasan: stackdepot: move filter_irq_stacks() to stackdepot.c
> config: ia64-randconfig-a001-20200306 (attached as .config)
> compiler: ia64-linux-gcc (GCC) 7.5.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 2d8fce24a0fb125e4fbbd4bb546cc0f9e6122d8d
>         # save the attached .config to linux build tree
>         GCC_VERSION=7.5.0 make.cross ARCH=ia64 
> 
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>    lib/stackdepot.o: In function `in_irqentry_text':
> >> lib/stackdepot.c:326: undefined reference to `__irqentry_text_start'
> >> lib/stackdepot.c:325: undefined reference to `__irqentry_text_end'
> >> lib/stackdepot.c:326: undefined reference to `__softirqentry_text_start'
> >> lib/stackdepot.c:327: undefined reference to `__softirqentry_text_end'
> >> lib/stackdepot.c:326: undefined reference to `__irqentry_text_start'
> >> lib/stackdepot.c:325: undefined reference to `__irqentry_text_end'
> >> lib/stackdepot.c:326: undefined reference to `__softirqentry_text_start'
> >> lib/stackdepot.c:327: undefined reference to `__softirqentry_text_end'
> 

Thanks.  This has been known about for a couple of weeks.  Alexander, did
I miss a fix?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-next:master 6276/7050] lib/stackdepot.c:326: undefined reference to `__irqentry_text_start'
  2020-03-07  3:16 ` Andrew Morton
@ 2020-03-07 13:41   ` Alexander Potapenko
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Potapenko @ 2020-03-07 13:41 UTC (permalink / raw)
  To: Andrew Morton; +Cc: kbuild test robot, kbuild-all, Linux Memory Management List

On Sat, Mar 7, 2020 at 4:16 AM Andrew Morton <akpm@linux-foundation.org> wrote:
>
> On Sat, 7 Mar 2020 02:42:14 +0800 kbuild test robot <lkp@intel.com> wrote:
>
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > head:   b86a6a241b7c60ca7a6ca4fb3c0d2aedbbf2c1b6
> > commit: 2d8fce24a0fb125e4fbbd4bb546cc0f9e6122d8d [6276/7050] kasan: stackdepot: move filter_irq_stacks() to stackdepot.c
> > config: ia64-randconfig-a001-20200306 (attached as .config)
> > compiler: ia64-linux-gcc (GCC) 7.5.0
> > reproduce:
> >         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> >         chmod +x ~/bin/make.cross
> >         git checkout 2d8fce24a0fb125e4fbbd4bb546cc0f9e6122d8d
> >         # save the attached .config to linux build tree
> >         GCC_VERSION=7.5.0 make.cross ARCH=ia64
> >
> > If you fix the issue, kindly add following tag
> > Reported-by: kbuild test robot <lkp@intel.com>
> >
> > All errors (new ones prefixed by >>):
> >
> >    lib/stackdepot.o: In function `in_irqentry_text':
> > >> lib/stackdepot.c:326: undefined reference to `__irqentry_text_start'
> > >> lib/stackdepot.c:325: undefined reference to `__irqentry_text_end'
> > >> lib/stackdepot.c:326: undefined reference to `__softirqentry_text_start'
> > >> lib/stackdepot.c:327: undefined reference to `__softirqentry_text_end'
> > >> lib/stackdepot.c:326: undefined reference to `__irqentry_text_start'
> > >> lib/stackdepot.c:325: undefined reference to `__irqentry_text_end'
> > >> lib/stackdepot.c:326: undefined reference to `__softirqentry_text_start'
> > >> lib/stackdepot.c:327: undefined reference to `__softirqentry_text_end'
> >
>
> Thanks.  This has been known about for a couple of weeks.  Alexander, did
> I miss a fix?
Thanks for letting me know.
The previous bug was on a different arch, but the solution should
probably be the same everywhere: add IRQENTRY_TEXT and
SOFTIRQENTRY_TEXT to the linker scripts.
I'll look into this.


-- 
Alexander Potapenko
Software Engineer

Google Germany GmbH
Erika-Mann-Straße, 33
80636 München

Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-07 13:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06 18:42 [linux-next:master 6276/7050] lib/stackdepot.c:326: undefined reference to `__irqentry_text_start' kbuild test robot
2020-03-07  3:16 ` Andrew Morton
2020-03-07 13:41   ` Alexander Potapenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).