diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2020-08-04 04:52:13 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-08-04 22:52:15 +0200 |
commit | 477d08478170469d10b533624342d13701e24b34 (patch) | |
tree | 481b4ff48900be8875688dedc63178f743c787bb /scripts/bloat-o-meter | |
parent | Documentation: bootconfig: Add bootconfig override operator (diff) | |
download | linux-477d08478170469d10b533624342d13701e24b34.tar.xz linux-477d08478170469d10b533624342d13701e24b34.zip |
bootconfig: Fix to find the initargs correctly
Since the parse_args() stops parsing at '--', bootconfig_params()
will never get the '--' as param and initargs_found never be true.
In the result, if we pass some init arguments via the bootconfig,
those are always appended to the kernel command line with '--'
even if the kernel command line already has '--'.
To fix this correctly, check the return value of parse_args()
and set initargs_found true if the return value is not an error
but a valid address.
Link: https://lkml.kernel.org/r/159650953285.270383.14822353843556363851.stgit@devnote2
Fixes: f61872bb58a1 ("bootconfig: Use parse_args() to find bootconfig and '--'")
Cc: stable@vger.kernel.org
Reported-by: Arvind Sankar <nivedita@alum.mit.edu>
Suggested-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/bloat-o-meter')
0 files changed, 0 insertions, 0 deletions