lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 12 Jul 2021 12:03:06 +0200
From:   Marco Elver <elver@...gle.com>
To:     Will Deacon <will@...nel.org>
Cc:     Andrey Konovalov <andreyknvl@...il.com>,
        Mark Rutland <mark.rutland@....com>,
        Sam Tebbs <sam.tebbs@....com>,
        Robin Murphy <robin.murphy@....com>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux ARM <linux-arm-kernel@...ts.infradead.org>,
        LKML <linux-kernel@...r.kernel.org>,
        Catalin Marinas <catalin.marinas@....com>,
        Dmitry Vyukov <dvyukov@...gle.com>,
        Alexander Potapenko <glider@...gle.com>,
        Andrey Ryabinin <ryabinin.a.a@...il.com>
Subject: Re: [PATCH] kasan: fix build for CONFIG_KASAN_HW_TAGS

On Mon, 12 Jul 2021 at 11:58, Will Deacon <will@...nel.org> wrote:
> On Sat, Jul 10, 2021 at 09:16:14PM +0200, Andrey Konovalov wrote:
> > On Thu, Jul 8, 2021 at 4:44 PM Mark Rutland <mark.rutland@....com> wrote:
> > >
> > > When CONFIG_KASAN_HW_TAGS is selected, <linux/kasan.h> uses _RET_IP_,
> > > but doesn't explicitly include <linux/kernel.h> where this is defined.
> > >
> > > We used to get this via a transitive include, but since commit:
> > >
> > >   f39650de687e3576 ("kernel.h: split out panic and oops helpers")
> > >
> > > ... this is no longer the case, and so we get a build failure:
> > >
> > > |   CC      arch/arm64/mm/kasan_init.o
> > > | In file included from arch/arm64/mm/kasan_init.c:10:
> > > | ./include/linux/kasan.h: In function 'kasan_slab_free':
> > > | ./include/linux/kasan.h:211:39: error: '_RET_IP_' undeclared (first use in this function)
> > > |   211 |   return __kasan_slab_free(s, object, _RET_IP_, init);
> > > |       |                                       ^~~~~~~~
> > > | ./include/linux/kasan.h:211:39: note: each undeclared identifier is reported only once for each function it appears in
> > > | ./include/linux/kasan.h: In function 'kasan_kfree_large':
> > > | ./include/linux/kasan.h:219:28: error: '_RET_IP_' undeclared (first use in this function)
> > > |   219 |   __kasan_kfree_large(ptr, _RET_IP_);
> > > |       |                            ^~~~~~~~
> > > | ./include/linux/kasan.h: In function 'kasan_slab_free_mempool':
> > > | ./include/linux/kasan.h:226:34: error: '_RET_IP_' undeclared (first use in this function)
> > > |   226 |   __kasan_slab_free_mempool(ptr, _RET_IP_);
> > > |       |                                  ^~~~~~~~
> > > | ./include/linux/kasan.h: In function 'kasan_check_byte':
> > > | ./include/linux/kasan.h:277:35: error: '_RET_IP_' undeclared (first use in this function)
> > > |   277 |   return __kasan_check_byte(addr, _RET_IP_);
> > > |       |                                   ^~~~~~~~
> > >
> > > Fix this by including <linux/kernel.h> explicitly.
> >
> > Hi Mark,
> >
> > Marco already sent a fix for this. It should be in the mm tree.
> > (Although the link to it in the Andrew's notification email doesn't
> > work. But they rarely do :)
>
> Do you have a link to the patch? I couldn't spot it in linux-next.

https://lkml.kernel.org/r/20210705072716.2125074-1-elver@google.com
( https://lore.kernel.org/mm-commits/20210706204723.O1wZ2%25akpm@linux-foundation.org/
)

Looks like latest -mm is not yet reflected in -next.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ