Skip to content

Add some memory page soft-offlining control

[email protected] ltp 3 versions – Applied

Status from this message: Merged, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 patch 1 replyApplied
  2. v21 patch 2 repliesSuperseded
  3. v11 patch 6 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/1madvise11: Add test for memory allocation / Soft-offlining possible raceruntest/syscalls testcases/kernel/syscalls/madvise/.gitignore testcases/kernel/syscalls/madvise/Makefile +1 more+428 -01 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchRichard PalethorpePetr Vorel
1/1R-b R-b

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

Read the v3 thread

Cover letter [LTP] [LTP PATCH v3 0/1] Add some memory page soft-offlining control

From: William Roche <[email protected]>

Thank you very much Richard for your feedback about my previous patch version proposal.
In this new version I made the changes you suggested:

- Changed the signal handler to avoid using unsafe code like "tst_res", and use a variable (with its mutex and cv) to inform an additional thread to end the test on a SIGBUS. The signal handler doesn't return to avoid a loop of SIGBUS delivery.

- Changed the code to use SAFE_MMAP and SAFE_MUNMAP

- The find_in_file() function could not be removed as I use it to verify if the hwpoison_inject module is already loaded or not, but I simplified it.

- And I'm now using getmntent() code to identify the debugfs mount point on the machine, and open the <debug_fs>/hwpoison/unpoison-pfn location.

Compile and check-madvise11 are clean, code tested on x86 and ARM.

Cheers,
William.

William Roche (1):
madvise11: Add test for memory allocation / Soft-offlining possible
race

 runtest/syscalls                              |   1 +
 testcases/kernel/syscalls/madvise/.gitignore  |   1 +
 testcases/kernel/syscalls/madvise/Makefile    |   2 +
 testcases/kernel/syscalls/madvise/madvise11.c | 424 ++++++++++++++++++
 4 files changed, 428 insertions(+)
 create mode 100644 testcases/kernel/syscalls/madvise/madvise11.c
Signature · 5 lines
2.31.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp