acrn-kernel/init
Krister Johansen 5b2352c64c proc: sysctl: prevent aliased sysctls from getting passed to init
commit 8001f49394e353f035306a45bcf504f06fca6355 upstream.

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: 0a477e1ae2 ("kernel/sysctl: support handling command line aliases")
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-28 17:07:08 +00:00
..
.gitignore
Kconfig sched/psi: Select KERNFS as needed 2023-09-13 09:42:28 +02:00
Makefile
build-version
calibrate.c
do_mounts.c
do_mounts.h
do_mounts_initrd.c
do_mounts_rd.c
init_task.c
initramfs.c
main.c proc: sysctl: prevent aliased sysctls from getting passed to init 2023-11-28 17:07:08 +00:00
noinitramfs.c
version-timestamp.c
version.c