[LTP] [PATCH v2] Add regression test for CVE-2017-17052
Richard Palethorpe
rpalethorpe@suse.de
Thu Jan 11 13:26:28 CET 2018
Hello Michael,
Welcome to LTP :-)
Michael Moese writes:
> +
> +#include <unistd.h>
> +#include <pthread.h>
> +#include <stdlib.h>
> +#include <stdio.h>
> +#include <sys/mman.h>
> +#include <sys/wait.h>
> +#include <sys/syscall.h>
> +#include <sys/shm.h>
> +#include <sys/types.h>
> +
> +#include "tst_test.h"
> +#include "tst_safe_stdio.h"
> +#include "tst_safe_pthread.h"
> +#include "tst_safe_sysv_ipc.h"
It is better to use a shared mapping created with mmap. The SYSV safe
macros are only for testing SYSV shared memory itself and otherwise
should be avoided.
--
Thank you,
Richard.
More information about the ltp
mailing list