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: <3746264c-adb1-80b4-02d2-13f0790fe322@kernel.org>
Date:   Mon, 29 Aug 2022 10:21:56 +0200
From:   Jiri Slaby <jirislaby@...nel.org>
To:     Daniel Vetter <daniel.vetter@...ll.ch>,
        LKML <linux-kernel@...r.kernel.org>
Cc:     DRI Development <dri-devel@...ts.freedesktop.org>,
        Daniel Vetter <daniel.vetter@...el.com>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
        nick black <dankamongmen@...il.com>,
        Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>,
        Yangxi Xiang <xyangxi5@...il.com>,
        Xuezhi Zhang <zhangxuezhi1@...lpad.com>
Subject: Re: [PATCH] tty/vt: Remove printable variable

On 26. 08. 22, 22:24, Daniel Vetter wrote:
> Every since the 0.99.7A release when console_register() was introduced
> it's become impossible to call vt_console_print (called
> console_print() back then still) directly. Which means the
> initialization issue this variable protected against is no more.
> 
> Give it a send off with style and let it rest in peace.

FWIW:
Reviewed-by: Jiri Slaby <jirislaby@...nel.org>

In hopes, nothing breaks.

> Signed-off-by: Daniel Vetter <daniel.vetter@...el.com>
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Cc: Jiri Slaby <jirislaby@...nel.org>
> Cc: "Ilpo Järvinen" <ilpo.jarvinen@...ux.intel.com>
> Cc: nick black <dankamongmen@...il.com>
> Cc: Daniel Vetter <daniel.vetter@...ll.ch>
> Cc: Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>
> Cc: Yangxi Xiang <xyangxi5@...il.com>
> Cc: Xuezhi Zhang <zhangxuezhi1@...lpad.com>
> ---
>   drivers/tty/vt/vt.c | 4 ----
>   1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
> index ae9c926acd6f..4d29e4a17db7 100644
> --- a/drivers/tty/vt/vt.c
> +++ b/drivers/tty/vt/vt.c
> @@ -157,7 +157,6 @@ static void set_palette(struct vc_data *vc);
>   
>   #define vt_get_kmsg_redirect() vt_kmsg_redirect(-1)
>   
> -static int printable;		/* Is console ready for printing? */
>   int default_utf8 = true;
>   module_param(default_utf8, int, S_IRUGO | S_IWUSR);
>   int global_cursor_default = -1;
> @@ -3085,8 +3084,6 @@ static void vt_console_print(struct console *co, const char *b, unsigned count)
>   	int kmsg_console;
>   
>   	/* console busy or not yet initialized */
> -	if (!printable)
> -		return;
>   	if (!spin_trylock(&printing_lock))
>   		return;
>   
> @@ -3537,7 +3534,6 @@ static int __init con_init(void)
>   	pr_info("Console: %s %s %dx%d\n",
>   		vc->vc_can_do_color ? "colour" : "mono",
>   		display_desc, vc->vc_cols, vc->vc_rows);
> -	printable = 1;
>   
>   	console_unlock();
>   

thanks,
-- 
js
suse labs

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ