summaryrefslogtreecommitdiff
path: root/mm/failslab.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-09-21 12:44:42 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-09-22 04:45:52 +0300
commitead1e19ad905b97261f0ad7a98bb64abb9323b2b (patch)
tree9878b733c7abc961463076db9845f745b01d8833 /mm/failslab.c
parenta27026e95b57acbb8df7182e020b099e7f3b5ac3 (diff)
downloadlinux-ead1e19ad905b97261f0ad7a98bb64abb9323b2b.tar.xz
lib/bootconfig: Fix a bug of breaking existing tree nodes
Fix a bug of breaking existing tree nodes by parsing the second and subsequent braces. Since the bootconfig parser uses the node.next field as a flag of current parent node, but this will break the existing tree if the same key node is specified again in the bootconfig. For example, the following bootconfig should be foo.buz and bar. foo bar foo { buz } However, when parsing the brace "{", it breaks foo->bar link by marking open-brace node. So the bootconfig unlinks bar from the bootconfig internal tree. This introduces a stack outside of the tree and record the last open-brace on the stack instead of using node.next field. Link: https://lkml.kernel.org/r/160068148267.1088739.8264704338030168660.stgit@devnote2 Fixes: 76db5a27a827 ("bootconfig: Add Extra Boot Config support") Cc: Ingo Molnar <mingo@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'mm/failslab.c')
0 files changed, 0 insertions, 0 deletions