Skip to content

Improve reliability of ioctl_sg01

Martin Doucha ltp 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Add SAFE_SYSINFO() macroinclude/tst_safe_macros.h lib/safe_macros.c+25 -01 reply
2/4Add tst_pollute_memory() helper functioninclude/tst_memutils.h lib/tst_memutils.c+84 -01 reply
3/4ioctl_sg01: Pollute free memory in setuptestcases/kernel/syscalls/ioctl/ioctl_sg01.c+7 -41 reply
4/4ioctl_sg01: Loop data leak check 100 timestestcases/kernel/syscalls/ioctl/ioctl_sg01.c+12 -91 reply
4/4ioctl_sg01: Loop data leak check 100 times+0 -01 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchPetr Vorel
1/4R-b
2/4R-b
3/4R-b
4/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [LTP] [PATCH v2 0/4] Improve reliability of ioctl_sg01

ioctl_sg01 needs dirty memory to reliably detect kernel data leaks. Its description originally recommended running it after mem01 which has been recently dropped.

Add helper function to LTP library for pre-polluting free memory and loop the main check in ioctl_sg01 to further decrease the chance of false negative.

Martin Doucha (4):
Add SAFE_SYSINFO() macro
Add tst_pollute_memory() helper function
ioctl_sg01: Pollute free memory in setup
ioctl_sg01: Loop data leak check 100 times

 include/tst_memutils.h                       | 22 +++++++
 include/tst_safe_macros.h                    |  5 ++
 lib/safe_macros.c                            | 20 +++++++
 lib/tst_memutils.c                           | 62 ++++++++++++++++++++
 testcases/kernel/syscalls/ioctl/ioctl_sg01.c | 32 ++++++----
 5 files changed, 128 insertions(+), 13 deletions(-)
 create mode 100644 include/tst_memutils.h
 create mode 100644 lib/tst_memutils.c
Signature · 1 line
2.28.0