]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.20.6/vt-always-call-notifier-with-the-console-lock-held.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.20.6 / vt-always-call-notifier-with-the-console-lock-held.patch
1 From 7e1d226345f89ad5d0216a9092c81386c89b4983 Mon Sep 17 00:00:00 2001
2 From: Nicolas Pitre <nicolas.pitre@linaro.org>
3 Date: Tue, 8 Jan 2019 22:55:00 -0500
4 Subject: vt: always call notifier with the console lock held
5
6 From: Nicolas Pitre <nicolas.pitre@linaro.org>
7
8 commit 7e1d226345f89ad5d0216a9092c81386c89b4983 upstream.
9
10 Every invocation of notify_write() and notify_update() is performed
11 under the console lock, except for one case. Let's fix that.
12
13 Signed-off-by: Nicolas Pitre <nico@linaro.org>
14 Cc: stable@vger.kernel.org
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16
17 ---
18 drivers/tty/vt/vt.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/tty/vt/vt.c
22 +++ b/drivers/tty/vt/vt.c
23 @@ -2764,8 +2764,8 @@ rescan_last_byte:
24 con_flush(vc, draw_from, draw_to, &draw_x);
25 vc_uniscr_debug_check(vc);
26 console_conditional_schedule();
27 - console_unlock();
28 notify_update(vc);
29 + console_unlock();
30 return n;
31 }
32