On Fri, Feb 25, 2011 at 2:36 AM, Han Pingtian <[email protected]> wrote:
> This is a reproducer of CVE-2011-0999, which fixed by mainline commit
> a7d6e4ecdb7648478ddec76d30d87d03d6e22b31:
>
> "Transparent hugepages can only be created if rmap is fully
> functional. So we must prevent hugepages to be created while
> is_vma_temporary_stack() is true."
>
> When running in a loop, it can trigger panic like this, if kernel
> unpatched:
>
> kernel BUG at mm/huge_memory.c:1260!
> invalid opcode: 0000 [#1] SMP
> last sysfs file: /sys/devices/system/cpu/cpu23/cache/index2/shared_cpu_map
...
> +static option_t options[] = {
> + {NULL, NULL, NULL}
> +};
> +
> +static void usage(void)
> +{
> + return;
> +}
You can delete this if you do what I suggest below...
...
> + msg = parse_opts(argc, argv, options, usage);
> + if (msg != NULL)
`if ((msg = parse_opts(argc, argv, NULL, NULL)) != NULL)' is preferred.
> + if (execve("/bin/true", c, c) == -1)
> + tst_brkm(TBROK|TERRNO, NULL,
> "execve");
Not all systems have /bin/true. It would be better to do:
/bin/sh -c ':'
etc, as we have code that depends on this type of shell-required POSIX behavior.
Thanks,
-Garrett
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list