Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp282538imu; Tue, 8 Jan 2019 19:57:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN5WYB8BRvvkGgs2SbXuYouzq1XIZqvEMT+46TkUwJhmFmyMiRlw47wSGwEFMQfqaVt2e1be X-Received: by 2002:a17:902:8b88:: with SMTP id ay8mr4518988plb.55.1547006231014; Tue, 08 Jan 2019 19:57:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547006230; cv=none; d=google.com; s=arc-20160816; b=K6YBqzc3bIlIhuabz/H2YBQLCx2+1dXwAb0GoCDGNxGNcaWUmTEjD9VntaXeJm3Ws0 w+I/LLv+kbq+Ncb+KxZ1lkjABrlnktnTsGFMil1mgx8ORvW5WC5bQwoJ6nU8dLq5dJ+R E/HOJv7h4KkgbKuNGEPKIC17eTkAuQZwGO+LVJl3i3gdelMYKzBAvrTia4pcdpQJao+x 5mPkjlVHc9nUYPddOsAR7GPb7BsXGu3L+m2k5sk3QLbgIS3o9EMV3BuEZW1awzD01P6B hsNmsRgZ5HorYN78ScTJAjXVXXdQcrvwpvPMcS58rBWt0TGeWxRUdvxGk7DJV2t1v1Eo pJNg== 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=rncEwA0OlWlyYnPllVBLdEKszVHRyTdh4mWBzRxvR34=; b=CfrOjC+hSWbBOo5XE5RwwmLcvuWj2Sb4/GVMziRVgNcALvOHeIhwumTmNd46jDeAyP X3wyvZv65YNywGSJLJ5KwQbaZkTg3lIWVO63561ylXAN5m3hH04AZd+pbiDsHg/ZnCPK kbYTUmLRTmqYV9V2ei/vEaAqc4QcTedxRoj5FmT8d2FCk7aLD1X2VGfmvoz0Xql/UUSh scFcskmv3/Lh2DFh/fh9h9NLbmYHsYs0S2EToWMsNfspvU7BPpvANNAbs+nWCYAs9+Yr EZfTL/xC0PlyvFR0e5qw4OOY9TwhPcasAjkkJvQT8rFyQeVbeT9njbgCwvNQHJ2ESpfW Q5rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=QyCZDEEd; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f124si72025457pfa.1.2019.01.08.19.56.55; Tue, 08 Jan 2019 19:57:10 -0800 (PST) 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=@pobox.com header.s=sasl header.b=QyCZDEEd; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729182AbfAIDzr (ORCPT + 99 others); Tue, 8 Jan 2019 22:55:47 -0500 Received: from pb-smtp1.pobox.com ([64.147.108.70]:62701 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728278AbfAIDzr (ORCPT ); Tue, 8 Jan 2019 22:55:47 -0500 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id BFC68119305; Tue, 8 Jan 2019 22:55:46 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=O5HoLbt0EAT7EAsbBj0FKXLgN eQ=; b=QyCZDEEd537clSdq4Jx0eEd+9cdY7t6MpqT9WiVVk76i5IUEib3c0iIa7 VL/B0YW6qCEXvzWm5IxNoEGdsGp9k1k1aKvSMv9yEQ2gztcwUqmu2Qp78xjlv8c/ EcpttwAC5C09L2huRdvUQJqriXnWUGS3LkYnVoR0mlAUjD3AWc= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id B5913119304; Tue, 8 Jan 2019 22:55:46 -0500 (EST) Received: from yoda.home (unknown [70.82.104.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 288741192FD; Tue, 8 Jan 2019 22:55:46 -0500 (EST) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTP id 4EB392DA041D; Tue, 8 Jan 2019 22:55:45 -0500 (EST) From: Nicolas Pitre To: Greg Kroah-Hartman Cc: Dave Mielke , linux-kernel@vger.kernel.org Subject: [PATCH 2/6] vt: always call notifier with the console lock held Date: Tue, 8 Jan 2019 22:55:00 -0500 Message-Id: <20190109035504.8413-3-nicolas.pitre@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190109035504.8413-1-nicolas.pitre@linaro.org> References: <20190109035504.8413-1-nicolas.pitre@linaro.org> MIME-Version: 1.0 X-Pobox-Relay-ID: 719702DE-13C2-11E9-A82B-70EFDD2159A7-78420484!pb-smtp1.pobox.com Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 b9004bd087..5b8b0e33f9 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -2764,8 +2764,8 @@ static int do_con_write(struct tty_struct *tty, con= st unsigned char *buf, int co con_flush(vc, draw_from, draw_to, &draw_x); vc_uniscr_debug_check(vc); console_conditional_schedule(); - console_unlock(); notify_update(vc); + console_unlock(); return n; } =20 --=20 2.20.1