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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f4646728b497ce886e9b96e6b6ae19826bf6e60d.camel@hotmail.com>
Date:   Sun, 16 Jul 2023 00:56:23 +0000
From:   ‎ donmor <donmor3000@...mail.com>
To:     "chenhuacai@...nel.org" <chenhuacai@...nel.org>
CC:     "loongarch@...ts.linux.dev" <loongarch@...ts.linux.dev>,
        "kernel@...0n.name" <kernel@...0n.name>,
        "yangtiezhu@...ngson.cn" <yangtiezhu@...ngson.cn>,
        "zhoubinbin@...ngson.cn" <zhoubinbin@...ngson.cn>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "tglx@...utronix.de" <tglx@...utronix.de>,
        "ardb@...nel.org" <ardb@...nel.org>,
        "tangyouling@...ngson.cn" <tangyouling@...ngson.cn>
Subject: Re: [PATCH v3] LoongArch: Make CONFIG_CMDLINE work with
 CONFIG_CMDLINE_EXTEND and CONFIG_CMDLINE_BOOTLOADER

在 2023-07-12星期三的 09:19 +0800,Huacai Chen写道:
> On Tue, Jul 11, 2023 at 11:27 PM ‎ donmor <donmor3000@...mail.com> wrote:
> > 在 2023-07-11星期二的 22:26 +0800,Huacai Chen写道:
> > 
> > ...
> > > +       if (IS_ENABLED(CONFIG_CMDLINE_EXTEND)) {
> > > > +               strscpy(boot_command_line, CONFIG_CMDLINE, COMMAND_LINE_SIZE);
> > > > +               strlcat(boot_command_line, " ", COMMAND_LINE_SIZE);
> > > > +               strlcat(boot_command_line, init_command_line, COMMAND_LINE_SIZE);
> > > You can simply the logic:
> > >                strlcat(boot_command_line, " ", COMMAND_LINE_SIZE);
> > >                strlcat(boot_command_line, CONFIG_CMDLINE, COMMAND_LINE_SIZE);
> > > And then modify the comments because you are appending built-in parts
> > > to bootloader parts.
> > > 
> > I think the command line retrieved from bootloader should be placed after the
> > built-in one so that it can override params in the latter.
> config CMDLINE_EXTEND
>         bool "Use built-in to extend bootloader kernel arguments"
> 
> The fdt version also uses this logic, but you are using bootloader
> parts to extend built-in parts.
> 
I see. So if there's a mistake in built-in, the kernel won't boot even if passed
the correct one... I'll correct it, anyway.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ