lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHQZ30DMD9eqN7hFL8z6+XuJ1N_0EfyE8d9F2Vv+CsHn0UBAdQ@mail.gmail.com>
Date: Tue, 1 Oct 2024 09:14:35 -0600
From: Raul Rangel <rrangel@...omium.org>
To: Petr Mladek <pmladek@...e.com>
Cc: linux-kernel@...r.kernel.org, Andrew Morton <akpm@...ux-foundation.org>, 
	Christophe Leroy <christophe.leroy@...roup.eu>, Geert Uytterhoeven <geert+renesas@...der.be>, 
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Huang Shijie <shijie@...amperecomputing.com>, 
	Ingo Molnar <mingo@...nel.org>, Jiri Slaby <jirislaby@...nel.org>, 
	Luis Chamberlain <mcgrof@...nel.org>, Masami Hiramatsu <mhiramat@...nel.org>, 
	Peter Zijlstra <peterz@...radead.org>, Rasmus Villemoes <linux@...musvillemoes.dk>, 
	Yuntao Wang <ytcoode@...il.com>, linux-serial@...r.kernel.org
Subject: Re: [PATCH v2] init: Don't proxy `console=` to earlycon

On Tue, Oct 1, 2024 at 9:09 AM Petr Mladek <pmladek@...e.com> wrote:
>
> On Tue 2024-09-24 10:05:08, Raul Rangel wrote:
> > On Thu, Sep 19, 2024 at 6:57 AM Petr Mladek <pmladek@...e.com> wrote:
> >
> > > On Wed 2024-09-11 12:35:14, Raul E Rangel wrote:
> > > > Today we are proxying the `console=` command line args to the
> > > > `param_setup_earlycon()` handler. This is done because the following are
> > > > equivalent:
> > > >
> > > >     console=uart[8250],mmio,<addr>[,options]
> > > >     earlycon=uart[8250],mmio,<addr>[,options]
> > > >
> > > > Both invocations enable an early `bootconsole`. `console=uartXXXX` is
> > > > just an alias for `earlycon=uartXXXX`.
> > > >
> > > > In addition, when `earlycon=` (empty value) or just `earlycon`
> > > > (no value) is specified on the command line, we enable the earlycon
> > > > `bootconsole` specified by the SPCR table or the DT.
> > > >
> > > > The problem arises when `console=` (empty value) is specified on the
> > > > command line. It's intention is to disable the `console`, but what
> > > > happens instead is that the SPRC/DT console gets enabled.
> > > >
> > > > This happens because we are proxying the `console=` (empty value)
> > > > parameter to the `earlycon` handler. The `earlycon` handler then sees
> > > > that the parameter value is empty, so it enables the SPCR/DT
> > > > `bootconsole`.
> > > >
> > > > This change makes it so that the `console` or `console=` parameters no
> > > > longer enable the SPCR/DT `bootconsole`. I also cleans up the hack in
> > > > `main.c` that would forward the `console` parameter to the `earlycon`
> > > > handler.
> > > >
> > > > Signed-off-by: Raul E Rangel <rrangel@...omium.org>
> > >
> > > It like this approach. It works well:
> > >
> > > Reviewed-by: Petr Mladek <pmladek@...e.com>
> > > Tested-by: Petr Mladek <pmladek@...e.com>
> > >
> >
> > Thanks for reviewing and testing! I know it takes a significant amount of
> > time, so thank you.
> >
> > >
> > > I could take it via the printk tree for 6.13. From my POV, it is too
> > > late for 6.12. I am sorry I have been busy with the printk rework :-(
> > >
> >
> > 6.13 is fine. As long as it lands upstream I can cherry pick the patch into
> > our forks without any pushback.
>
> JFYI, the patch has been committed into printk/linux.git,
> branch for-6.13.

Thank you!
>
> Best Regards,
> Petr

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ