On Wed, Nov 29, 2023 at 07:05:34PM -0800, Krister Johansen wrote: > 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@xxxxxxxxxxxxxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx > Fixes: 0a477e1ae21b ("kernel/sysctl: support handling command line aliases") > Signed-off-by: Luis Chamberlain <mcgrof@xxxxxxxxxx> > Signed-off-by: Krister Johansen <kjlx@xxxxxxxxxxxxxxxxxx> > --- > fs/proc/proc_sysctl.c | 7 +++++++ > include/linux/sysctl.h | 6 ++++++ > init/main.c | 4 ++++ > 3 files changed, 17 insertions(+) Now queued up, thanks. greg k-h