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] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E490B2C.5000900@fabbione.net>
Date:	Mon, 15 Aug 2011 14:03:56 +0200
From:	"Fabio M. Di Nitto" <fabbione@...bione.net>
To:	Nishanth Aravamudan <nacc@...ibm.com>
CC:	linux-kernel@...r.kernel.org,
	"David S. Miller" <davem@...emloft.net>,
	Alan Cox <alan@...rguk.ukuu.org.uk>, Greg KH <gregkh@...e.de>
Subject: Re: [PATCH] kernel/printk: do not turn off bootconsole in printk_late_init
 if keep_bootcon

On 8/10/2011 2:02 AM, Nishanth Aravamudan wrote:
> It seems that commit 7bf693951a8e5f7e600a45b74d91d962a453146e doesn't
> always achieve what it aims, as printk_late_init() runs it
> unconditionally turns off all boot consoles. With this patch, I am able
> to see more messages on the boot console in KVM guests than I can
> without, when keep_bootcon is specified.
> 
> Signed-off-by: Nishanth Aravamudan <nacc@...ibm.com>
> Cc: David S. Miller <davem@...emloft.net>
> Cc: Alan Cox <alan@...rguk.ukuu.org.uk>
> Cc: Greg KH <gregkh@...e.de>
> ---
>  kernel/printk.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/kernel/printk.c b/kernel/printk.c
> index 37dff34..293a6cc 100644
> --- a/kernel/printk.c
> +++ b/kernel/printk.c
> @@ -1602,7 +1602,7 @@ static int __init printk_late_init(void)
>  	struct console *con;
>  
>  	for_each_console(con) {
> -		if (con->flags & CON_BOOT) {
> +		if (!keep_bootcon && con->flags & CON_BOOT) {
>  			printk(KERN_INFO "turn off boot console %s%d\n",
>  				con->name, con->index);
>  			unregister_console(con);

Patch looks ok to me, just send it through the right channels for inclusion.

Fabio
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ