mbox series

[0/9] LKDTM: Improvements for kernelci.org

Message ID 20210623203936.3151093-1-keescook@chromium.org (mailing list archive)
Headers show
Series LKDTM: Improvements for kernelci.org | expand

Message

Kees Cook June 23, 2021, 8:39 p.m. UTC
This is a bunch of LKDTM clean-ups to improve and expand testing,
given feedback from testing at kernelci.org. Adds a few new tests as
well.

(If a pull-request is preferred, please let me know.)

Thanks!

-Kees

Kees Cook (9):
  selftests/lkdtm: Avoid needing explicit sub-shell
  selftests/lkdtm: Fix expected text for CR4 pinning
  selftests/lkdtm: Fix expected text for free poison
  lkdtm/bugs: XFAIL UNALIGNED_LOAD_STORE_WRITE
  lkdtm/heap: Add vmalloc linear overflow test
  lkdtm: Enable DOUBLE_FAULT on all architectures
  lkdtm: Add CONFIG hints in errors where possible
  selftests/lkdtm: Enable various testable CONFIGs
  lkdtm/heap: Add init_on_alloc tests

 drivers/misc/lkdtm/bugs.c                     | 11 ++-
 drivers/misc/lkdtm/cfi.c                      |  3 +-
 drivers/misc/lkdtm/core.c                     | 58 ++++++++++-
 drivers/misc/lkdtm/fortify.c                  |  3 +-
 drivers/misc/lkdtm/heap.c                     | 97 ++++++++++++++++++-
 drivers/misc/lkdtm/lkdtm.h                    | 46 ++++++++-
 drivers/misc/lkdtm/stackleak.c                |  4 +-
 drivers/misc/lkdtm/usercopy.c                 |  7 +-
 tools/testing/selftests/lkdtm/config          |  7 ++
 tools/testing/selftests/lkdtm/run.sh          | 12 ++-
 .../testing/selftests/lkdtm/stack-entropy.sh  |  1 +
 tools/testing/selftests/lkdtm/tests.txt       | 11 ++-
 12 files changed, 236 insertions(+), 24 deletions(-)

Comments

Greg KH June 24, 2021, 1:32 p.m. UTC | #1
On Wed, Jun 23, 2021 at 01:39:27PM -0700, Kees Cook wrote:
> This is a bunch of LKDTM clean-ups to improve and expand testing,
> given feedback from testing at kernelci.org. Adds a few new tests as
> well.
> 
> (If a pull-request is preferred, please let me know.)

This works, thanks!

greg k-h
Guillaume Tucker June 25, 2021, 6:22 a.m. UTC | #2
On 23/06/2021 21:39, Kees Cook wrote:
> This is a bunch of LKDTM clean-ups to improve and expand testing,
> given feedback from testing at kernelci.org. Adds a few new tests as
> well.
> 
> (If a pull-request is preferred, please let me know.)
> 
> Thanks!
> 
> -Kees
> 
> Kees Cook (9):
>   selftests/lkdtm: Avoid needing explicit sub-shell
>   selftests/lkdtm: Fix expected text for CR4 pinning
>   selftests/lkdtm: Fix expected text for free poison
>   lkdtm/bugs: XFAIL UNALIGNED_LOAD_STORE_WRITE
>   lkdtm/heap: Add vmalloc linear overflow test
>   lkdtm: Enable DOUBLE_FAULT on all architectures
>   lkdtm: Add CONFIG hints in errors where possible
>   selftests/lkdtm: Enable various testable CONFIGs
>   lkdtm/heap: Add init_on_alloc tests

Tested-by: "kernelci.org bot" <bot@kernelci.org>


This whole series was tested on top of next-20210623, here are a
couple of sample results from KernelCI staging:

Clang 13 on AMD x86_64:
https://staging.kernelci.org/test/plan/id/60d4a5ce3d2bc535d924bf25/

GCC 8 on Intel x86_64:
https://staging.kernelci.org/test/plan/id/60d570711a3d6beefe24bf26/

And this is where the series was applied:
https://github.com/kernelci/linux/commits/a9f4387015268e426c77fd51ed846c9756938828


Thanks,
Guillaume
Kees Cook June 26, 2021, 6:12 a.m. UTC | #3
On Fri, Jun 25, 2021 at 07:22:01AM +0100, Guillaume Tucker wrote:
> On 23/06/2021 21:39, Kees Cook wrote:
> > This is a bunch of LKDTM clean-ups to improve and expand testing,
> > given feedback from testing at kernelci.org. Adds a few new tests as
> > well.
> > 
> > (If a pull-request is preferred, please let me know.)
> > 
> > Thanks!
> > 
> > -Kees
> > 
> > Kees Cook (9):
> >   selftests/lkdtm: Avoid needing explicit sub-shell
> >   selftests/lkdtm: Fix expected text for CR4 pinning
> >   selftests/lkdtm: Fix expected text for free poison
> >   lkdtm/bugs: XFAIL UNALIGNED_LOAD_STORE_WRITE
> >   lkdtm/heap: Add vmalloc linear overflow test
> >   lkdtm: Enable DOUBLE_FAULT on all architectures
> >   lkdtm: Add CONFIG hints in errors where possible
> >   selftests/lkdtm: Enable various testable CONFIGs
> >   lkdtm/heap: Add init_on_alloc tests
> 
> Tested-by: "kernelci.org bot" <bot@kernelci.org>
> 
> 
> This whole series was tested on top of next-20210623, here are a
> couple of sample results from KernelCI staging:
> 
> Clang 13 on AMD x86_64:
> https://staging.kernelci.org/test/plan/id/60d4a5ce3d2bc535d924bf25/
> 
> GCC 8 on Intel x86_64:
> https://staging.kernelci.org/test/plan/id/60d570711a3d6beefe24bf26/
> 
> And this is where the series was applied:
> https://github.com/kernelci/linux/commits/a9f4387015268e426c77fd51ed846c9756938828

Fantastic! Thanks; this looks great. :)