Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3340797yba; Mon, 6 May 2019 22:50:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwct1BqJZZtMy2yXb/7Ku8fO0638xV3ZC/D7uiQBA/GgM+N7FR9rRdXZvup6mTMuh2YjF75 X-Received: by 2002:aa7:8a8d:: with SMTP id a13mr39800879pfc.2.1557208208183; Mon, 06 May 2019 22:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557208208; cv=none; d=google.com; s=arc-20160816; b=TajqGs4euCo6jdszwxn1WoW6mW7fPPlCCuoA6S5sQY7KMKtOOcpkYrnSjU8B/joQbu u91dMBv4K79q0JyUCxRtz4446TkGbLsUIiUrQ/sXZIPChN98FJ8uNJDqtPOkA/VLEH/E +nDiiX29V0yImHvBJDx9+kY20oecd3ChjtF4XqqwGGda/c7hWwL6UtAcFSPVgbFbyNvq i21KB0vnTvuWYIO902N/G88vuhFoh0woYqNPQbO8po4zgK6tVaXJRyoePKNreKrIRn0I msoiAaeQ3HsJzvSIN1H37N38gqTU7PfFd3lKU20H2R5OdU+hbOjJkQlqlKlyiF1x5JvT Z4lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YJJjzNGkoKzWy6wHUw+pzk5OO8/tVd3QuKeQ9Y1rapw=; b=my8M+RSPX7y3G66BmpkdQ8WW3T1yMYO1WqxyefWTqkCuEZ0UTRYVcRt2T4WmSgsyDR O7Sq42Iok0efCW7uXah0Pk5gePi0mKK8b/yyTodCnPWIRigUJL06wGiwwQ5TmJuv/2nn U1p/nLFRnGm8+p3n/ZO7IJd1przg1Tsp6VDbg18Mk0i/MvSqabo3uwvfzCXVEaWFWg/P C+sgRQBTS6Rt8jAHtWgiJn4JeWHAWcoNm2LhzBHyYD5xx/QSUgtx7iUlL1cDxS4KNCGK hPZXe0qY7Q5JUvWVg5PP8IzuR6st+WPv2d6JByUmb2hX1lLvdnTe1jdkrO5In607S5J3 fQUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="1UXjeop/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si18007685pgi.349.2019.05.06.22.49.52; Mon, 06 May 2019 22:50:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="1UXjeop/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728979AbfEGFtF (ORCPT + 99 others); Tue, 7 May 2019 01:49:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:60074 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728853AbfEGFkf (ORCPT ); Tue, 7 May 2019 01:40:35 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3A95C20578; Tue, 7 May 2019 05:40:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557207634; bh=vJiiGf5Sbzi6bUUBQCpuymz7/VsovrdQydGy4HPfTEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1UXjeop/SvOvjpM/6U38A0U6j1SIfnlt53OvZyKz19iE7isKxmcYVFJKGAOqdmvYe WCLIxMrofFlkAEwZamWkAJ03dKCuqdRXWdkdLX53kfCVsPQSEgDxVPNptcjQLKCOF4 rskDeFOb3AN0oaSDO91ts2k9CU3kMnO0UDkPn0R8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nicolas Pitre , Nicolas Pitre , Greg Kroah-Hartman , Sasha Levin Subject: [PATCH AUTOSEL 4.14 70/95] vt: always call notifier with the console lock held Date: Tue, 7 May 2019 01:37:59 -0400 Message-Id: <20190507053826.31622-70-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190507053826.31622-1-sashal@kernel.org> References: <20190507053826.31622-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicolas Pitre [ Upstream commit 7e1d226345f89ad5d0216a9092c81386c89b4983 ] Every invocation of notify_write() and notify_update() is performed under the console lock, except for one case. Let's fix that. Signed-off-by: Nicolas Pitre Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/vt/vt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 1fb5e7f409c4..6ff921cf9a9e 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -2435,8 +2435,8 @@ static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int co } con_flush(vc, draw_from, draw_to, &draw_x); console_conditional_schedule(); - console_unlock(); notify_update(vc); + console_unlock(); return n; } -- 2.20.1