Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[testing] Techniques for testing robustness #311

Open
jnpkrn opened this issue Jun 29, 2018 · 0 comments
Open

[testing] Techniques for testing robustness #311

jnpkrn opened this issue Jun 29, 2018 · 0 comments
Labels

Comments

@jnpkrn
Copy link
Contributor

jnpkrn commented Jun 29, 2018

Just noticed MADV_HWPOISON flag for madvise:

Poison the pages in the range specified by addr and length and
handle subsequent references to those pages like a hardware memory
corruption. This operation is available only for privileged
(CAP_SYS_ADMIN) processes. This operation may result in the
calling process receiving a SIGBUS and the page being unmapped.

This feature is intended for testing of memory error-handling code;
itis available only if the kernel was configured with
CONFIG_MEMORY_FAILURE.

(the flag is enabled in Fedora kernels)

@jnpkrn jnpkrn added the testing label Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant