linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Potapenko <glider@google.com>
To: Greentime Hu <green.hu@gmail.com>
Cc: Nick Hu <nickhu@andestech.com>,
	Vincent Chen <deanbo422@gmail.com>,
	 Andrey Ryabinin <aryabinin@virtuozzo.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	 Arnd Bergmann <arnd@arndb.de>,
	Linux Memory Management List <linux-mm@kvack.org>,
	kbuild-all@lists.01.org
Subject: Re: [PATCH 3/3] kasan: stackdepot: move filter_irq_stacks() to stackdepot.c
Date: Sat, 7 Mar 2020 14:37:53 +0100	[thread overview]
Message-ID: <CAG_fn=V17FKr4nFE7cRuMgYM53Ou=k4EoVUgWR4oZ-sh8j10yg@mail.gmail.com> (raw)
In-Reply-To: <CAEbi=3dg2qYC=wModQmXcTp_=BBKKBuuwG2WxpW43n2760s-TA@mail.gmail.com>

On Thu, Feb 27, 2020 at 4:16 AM Greentime Hu <green.hu@gmail.com> wrote:
>
> Alexander Potapenko <glider@google.com> 於 2020年2月26日 週三 下午5:53寫道:
> >
> > Hi Andes maintainers,
> >
> > On Tue, Feb 25, 2020 at 9:26 PM kbuild test robot <lkp@intel.com> wrote:
> > >
> > > Hi,
> > >
> > > I love your patch! Yet something to improve:
> > >
> > > [auto build test ERROR on linus/master]
> > > [also build test ERROR on v5.6-rc3 next-20200225]
> > > [if your patch is applied to the wrong git tree, please drop us a note to help
> > > improve the system. BTW, we also suggest to use '--base' option to specify the
> > > base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
> > >
> > > url:    https://github.com/0day-ci/linux/commits/glider-google-com/stackdepot-check-depot_index-before-accessing-the-stack-slab/20200222-065605
> > > base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 0c0ddd6ae47c9238c18f475bcca675ca74c9dc31
> > > config: nds32-randconfig-a001-20200225 (attached as .config)
> > > compiler: nds32le-linux-gcc (GCC) 9.2.0
> > > reproduce:
> > >         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> > >         chmod +x ~/bin/make.cross
> > >         # save the attached .config to linux build tree
> > >         GCC_VERSION=9.2.0 make.cross ARCH=nds32
> > >
> > > If you fix the issue, kindly add following tag
> > > Reported-by: kbuild test robot <lkp@intel.com>
> > >
> > > All errors (new ones prefixed by >>):
> > >
> > >    nds32le-linux-ld: lib/stackdepot.o: in function `filter_irq_stacks':
> > > >> stackdepot.c:(.text+0xc6): undefined reference to `__softirqentry_text_start'
> > > >> nds32le-linux-ld: stackdepot.c:(.text+0xca): undefined reference to `__softirqentry_text_start'
> > > >> nds32le-linux-ld: stackdepot.c:(.text+0xce): undefined reference to `__softirqentry_text_end'
> > >    nds32le-linux-ld: stackdepot.c:(.text+0xd2): undefined reference to `__softirqentry_text_end'
> >
> > Can you please help me with this?
> > I couldn't find out where this section needs to be declared, and I
> > don't really know whether nds32 is supposed to have softirqs or not.
> > Maybe filter_irq_stacks() should be no-op on nds32?
>
> Hi Alexander,
>
> I've disccussed this with Nick.
> There might be 2 solutions, but we are not sure which one is better or
> maybe there are another better solutions.
> Since nds32 doesn't support KASAN, we might not need to use this section.
>
> Solution 1.
>   We may just add the dependency in STACKDEPOT depend on KASAN
>
> Solution 2.
>   Just add SOFTIRQENTRY_TEXT this section to nds32's linker script
>
> What do you think? :)
Hi,

I think the latter solution actually makes sense.


-- 
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


      reply	other threads:[~2020-03-07 13:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20 14:19 [PATCH 1/3] stackdepot: check depot_index before accessing the stack slab glider
2020-02-20 14:19 ` [PATCH 2/3] stackdepot: build with -fno-builtin glider
2020-02-20 14:19 ` [PATCH 3/3] kasan: stackdepot: move filter_irq_stacks() to stackdepot.c glider
2020-02-25 20:24   ` kbuild test robot
2020-02-26  9:53     ` Alexander Potapenko
2020-02-27  3:16       ` Greentime Hu
2020-03-07 13:37         ` Alexander Potapenko [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='CAG_fn=V17FKr4nFE7cRuMgYM53Ou=k4EoVUgWR4oZ-sh8j10yg@mail.gmail.com' \
    --to=glider@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=aryabinin@virtuozzo.com \
    --cc=deanbo422@gmail.com \
    --cc=green.hu@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=nickhu@andestech.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;
as well as URLs for NNTP newsgroup(s).