Skip to content
Commit 8001f493 authored by Krister Johansen's avatar Krister Johansen Committed by Luis Chamberlain
Browse files

proc: sysctl: prevent aliased sysctls from getting passed to init



The code that checks for unknown boot options is unaware of the sysctl
alias facility, which maps bootparams to sysctl values.  If a user sets
an old value that has a valid alias, a message about an invalid
parameter will be printed during boot, and the parameter will get passed
to init.  Fix by checking for the existence of aliased parameters in the
unknown boot parameter code.  If an alias exists, don't return an error
or pass the value to init.

Signed-off-by: default avatarKrister Johansen <kjlx@templeofstupid.com>
Cc: stable@vger.kernel.org
Fixes: 0a477e1a

 ("kernel/sysctl: support handling command line aliases")
Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
parent ccee9a2a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment