summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorKrister Johansen <kjlx@templeofstupid.com>2023-10-27 14:46:40 -0700
committerLuis Chamberlain <mcgrof@kernel.org>2023-11-01 12:10:02 -0700
commit8001f49394e353f035306a45bcf504f06fca6355 (patch)
tree538778c2480a443486588bcc4fd68f33269e9bba /kernel
parentccee9a2a8c002516d4252952df836abeaddfa39c (diff)
downloadlwn-8001f49394e353f035306a45bcf504f06fca6355.tar.gz
lwn-8001f49394e353f035306a45bcf504f06fca6355.zip
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: Krister Johansen <kjlx@templeofstupid.com> Cc: stable@vger.kernel.org Fixes: 0a477e1ae21b ("kernel/sysctl: support handling command line aliases") Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions