Re: [PATCH v2 2/3] fortify: Add KUnit test for FORTIFY_SOURCE internals

From: David Gow
Date: Sat Sep 03 2022 - 02:45:38 EST


On Sat, Sep 3, 2022 at 1:17 PM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>
> On Sat, Sep 03, 2022 at 10:59:24AM +0800, David Gow wrote:
> > On Sat, Sep 3, 2022 at 4:43 AM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
> > >
> > > Add lib/fortify_kunit.c KUnit test for checking the expected behavioral
> > > characteristics of FORTIFY_SOURCE internals.
> > > [...]
> >
> > Overall, this looks good. It's a bit of a shame FORTIFY_SOURCE doesn't
> > work under UML, but I tested it on everything else I had to hand and
> > it looked good.
>
> It looks like this was never picked up:
> https://lore.kernel.org/lkml/20220210003224.773957-1-keescook@xxxxxxxxxxxx/

Ah: I'd forgotten about that. Can confirm this test works under UML
with that patch applied.

Cheers,
-- David

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature