aboutsummaryrefslogtreecommitdiff
path: root/testcases/kernel/mem
diff options
context:
space:
mode:
authorPetr Vorel <pvorel@suse.cz>2021-06-08 10:49:07 +0200
committerPetr Vorel <pvorel@suse.cz>2021-06-08 10:49:07 +0200
commit15200f139050f2ea000473193f4b6e90fc31a5da (patch)
tree6fec7e57e473d6d9da67fb26fb697ea48d65297c /testcases/kernel/mem
parent4e339079336187a086e09f7204f78285bd96085e (diff)
downloadltp-15200f139050f2ea000473193f4b6e90fc31a5da.tar.gz
thp01: Add docparse formatting
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Diffstat (limited to 'testcases/kernel/mem')
-rw-r--r--testcases/kernel/mem/thp/thp01.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/testcases/kernel/mem/thp/thp01.c b/testcases/kernel/mem/thp/thp01.c
index 2e75f85e3..69825b0f9 100644
--- a/testcases/kernel/mem/thp/thp01.c
+++ b/testcases/kernel/mem/thp/thp01.c
@@ -3,10 +3,11 @@
* Copyright (C) 2011-2017 Red Hat, Inc.
*/
-/* Description:
+/*\
+ * [Description]
*
* This is a reproducer of CVE-2011-0999, which fixed by mainline commit
- * a7d6e4ecdb7648478ddec76d30d87d03d6e22b31:
+ * a7d6e4ecdb76 ("thp: prevent hugepages during args/env copying into the user stack")
*
* "Transparent hugepages can only be created if rmap is fully
* functional. So we must prevent hugepages to be created while
@@ -15,10 +16,11 @@
* It will cause a panic something like this, if the patch didn't get
* applied:
*
+ * ```
* 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
- * ....
+ * ```
*
* Due to commit da029c11e6b1 which reduced the stack size considerably, we
* now perform a binary search to find the largest possible argument we can