All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] audit boot parameter cleanups
@ 2018-02-23  0:22 Greg Edwards
  2018-02-23  0:22 ` [PATCH 1/2] audit: move processing of "audit" boot param to audit_init() Greg Edwards
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Greg Edwards @ 2018-02-23  0:22 UTC (permalink / raw)
  To: linux-audit; +Cc: Richard Guy Briggs, Greg Edwards

One of our CI tests was booting upstream kernels with the "audit=off" kernel
parameter.  This was our error; it should have been "audit=0".  However,
in 4.15 the verification of the boot parameter got more strict in 80ab4df62706
("audit: don't use simple_strtol() anymore"), and our errant boot parameter
value starting panic'ing the system.

The problem is this happens so early in boot, the console isn't initialized yet
and you don't see the panic message.  You have no idea what the problem is
unless you add an "earlyprintk" boot option, e.g.
earlyprintk=serial,ttyS0,115200n8.

Fix this by having the boot parameter setup function just save the boot
parameter value, and process it later from a call in audit_init().  The console
is initialized by this point, and you can see any panic messages without having
to use an earlyprintk option.

Additionally, add "on" and "off" as valid audit boot parameter values.

Greg Edwards (2):
  audit: move processing of "audit" boot param to audit_init()
  audit: add "on"/"off" as valid boot parameter values

 Documentation/admin-guide/kernel-parameters.txt | 14 +++----
 kernel/audit.c                                  | 49 ++++++++++++++++---------
 2 files changed, 39 insertions(+), 24 deletions(-)

-- 
2.14.3

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-03-02 22:30 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-23  0:22 [PATCH 0/2] audit boot parameter cleanups Greg Edwards
2018-02-23  0:22 ` [PATCH 1/2] audit: move processing of "audit" boot param to audit_init() Greg Edwards
2018-02-27  0:00   ` Paul Moore
2018-02-27  5:53     ` Richard Guy Briggs
2018-02-27 12:43       ` Paul Moore
2018-02-27 19:01         ` Richard Guy Briggs
2018-02-27 15:59     ` Greg Edwards
2018-02-27 22:28       ` Paul Moore
2018-02-27 22:52         ` Greg Edwards
2018-03-02 20:33           ` Paul Moore
2018-03-02 21:46             ` Greg Edwards
2018-03-02 22:30               ` Paul Moore
2018-02-23  0:22 ` [PATCH 2/2] audit: add "on"/"off" as valid boot parameter values Greg Edwards
2018-02-23 16:07 ` [PATCH 0/2] audit boot parameter cleanups Richard Guy Briggs
2018-02-23 23:58   ` Paul Moore
2018-02-26  4:58     ` Richard Guy Briggs

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.