Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6007479ybe; Tue, 10 Sep 2019 12:04:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxigUPQ9H8ZaiqpVWiM1WLlhIq5fiFn+MHzHAzDTzgRtJTqY/72Ueth7P7mVSReOCpBZGcC X-Received: by 2002:a05:6402:13cb:: with SMTP id a11mr32676507edx.161.1568142283967; Tue, 10 Sep 2019 12:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568142283; cv=none; d=google.com; s=arc-20160816; b=LZ32+Qb2rQQoLpWwPoWzNifWvd/FqVu/ZFKS03q5k4AupLwwYeS2jJPeSBRhOIhDHa 4emwU34EuIPmbWlQEm+vDjtjIsCoY09L9xshLxaSZBz0+/dHN8Egcid/qDC4dQOa9R2q OIJ9z70j4mnMVhkzuZ5xCwtNYzY3KY8+i9BoF33rnTBNnoPfOAfFpG5WojmGn0QDcWBh NcMGjf05xD+T9zGtAADxfE+E/btEFzfU3QTbqJn9UOGcN9mHeZjbKkQqBf4yktBKOIzk YzgneL/L81YRhLhu3OmV7QXIGKnPlDhUu8N8VgnYR39vvcDiBGu88iNfvOBJTkpezrty kD9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=+wxplw0ClvEAab2tmMcZITn+xly4Zj9SPax4wW8MTSo=; b=wkMTSaLufY+/v5uAChAadgP+IVzJTf7O8GCXonYs3MO3/JooKiVTw18scPnsPyOCIb 6krlUYqs93rmLkSwN29uG2gz7IH3l8LPAVUEpd30SQSGzGEaw1PbOyM6562Pk1nVYO1S 2XZKQaxouxla5ZnDXX4oCdwMbxw+a+y5JlJVTqbinqkASbhRdgJ/KcvXZvkzM+8ERnBe oM3IpGM59RNEFJ/kJiUKIyrw4kdrP02CjNCUTJGgG09UHSMo1x99FVG6Slso7ucO4E8h Qkb8ujZXDe1/fHZyOIC06W8OOybPFhjpOLvmqZhLstMV6y9tjuNIy2VSQvJHljeEB9qL Ss9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=owh93KPM; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=KGOayJ6s; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si5488588edb.133.2019.09.10.12.04.20; Tue, 10 Sep 2019 12:04:43 -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=@kroah.com header.s=fm1 header.b=owh93KPM; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=KGOayJ6s; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390810AbfIJOcs (ORCPT + 99 others); Tue, 10 Sep 2019 10:32:48 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:33441 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731630AbfIJOcr (ORCPT ); Tue, 10 Sep 2019 10:32:47 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 0CBCD49F; Tue, 10 Sep 2019 10:32:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 10 Sep 2019 10:32:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=+wxplw0ClvEAab2tmMcZITn+xly 4Zj9SPax4wW8MTSo=; b=owh93KPMm8nhZ33EL1kORO2mCAT9hvldORO0T1s6qHj ZHbwBvhRvHHnPnNSj7/Mg5RYwVeMpIXU07Yu0xyx7jJgMNinN9lRLrCv9UJh5cmb 66WIkTYAPVJBJePOZLjV7nP+FXvqZfIgwLUCtgdY+1t8KbS18tZL9cV2Dm6cJs6N KKroUVQP/doAwOFHinib/sUg3KVu2ScvHKHdAbhT0qa8r55oIlzhPn+JQApwE5CK 75i1rgR7G9sOeo0aAKpYwKs7bTCiH87WB2i2DypvNSkerEgZR2IzPtX/sb+0A7C2 VQsXZ6P+Q0AgM8zz55zFDvcoHKJ5xgBXuryXKsFGwHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=+wxplw 0ClvEAab2tmMcZITn+xly4Zj9SPax4wW8MTSo=; b=KGOayJ6s8mADctJuo1Yp9p 2++i8E96Gc7GsLD+gZkfFvJYhSQpfAkiChviD2S1PnNGRI38MzQtcue2Sh0vfXu0 vItrK4XFJygZHVahon8FiIQccMQgwOP63rQA8q/YAmU+9Pdw67bQChv1tZi6QkAt hyL+RGnysRVdxG9lzcjG0i9ETmKt8tiOL50XUAfkN1aGFExK0ikRGszC+9xz3yOF CR3IOdchGTgnVgOVwKeWv9bp8w7e2wp44LY9E8pdYsTAU27kr/7wGT88gRg6Udlo 8KageuMj3KHHHmRGVZd8nxHLANmDQVK2CO5Qyp+DOFHbnrKIZZczgBmRG6V3xWmQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrtddtgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujggfsehttdertddtredvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucffohhmrghinhepkhgvrhhnvghlrd horhhgnecukfhppedvudefrdeftddrkedruddutdenucfrrghrrghmpehmrghilhhfrhho mhepghhrvghgsehkrhhorghhrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (110.8.30.213.rev.vodafone.pt [213.30.8.110]) by mail.messagingengine.com (Postfix) with ESMTPA id 8BDB58005B; Tue, 10 Sep 2019 10:32:44 -0400 (EDT) Date: Tue, 10 Sep 2019 15:32:42 +0100 From: Greg KH To: Baolin Wang Cc: stable@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, longman@redhat.com, arnd@arndb.de, orsonzhai@gmail.com, vincent.guittot@linaro.org, linux-kernel@vger.kernel.org Subject: Re: [BACKPORT 4.14.y v2 2/6] locking/lockdep: Add debug_locks check in __lock_downgrade() Message-ID: <20190910143242.GB3362@kroah.com> References: <7d3d221015cd343df47de4a68ed4776aca2ca0ab.1567649729.git.baolin.wang@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7d3d221015cd343df47de4a68ed4776aca2ca0ab.1567649729.git.baolin.wang@linaro.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 05, 2019 at 11:07:14AM +0800, Baolin Wang wrote: > From: Waiman Long > > [Upstream commit 513e1073d52e55b8024b4f238a48de7587c64ccf] > > Tetsuo Handa had reported he saw an incorrect "downgrading a read lock" > warning right after a previous lockdep warning. It is likely that the > previous warning turned off lock debugging causing the lockdep to have > inconsistency states leading to the lock downgrade warning. > > Fix that by add a check for debug_locks at the beginning of > __lock_downgrade(). > > Reported-by: Tetsuo Handa > Reported-by: syzbot+53383ae265fb161ef488@syzkaller.appspotmail.com > Signed-off-by: Waiman Long > Signed-off-by: Peter Zijlstra (Intel) > Cc: Andrew Morton > Cc: Linus Torvalds > Cc: Paul E. McKenney > Cc: Peter Zijlstra > Cc: Thomas Gleixner > Cc: Will Deacon > Link: https://lkml.kernel.org/r/1547093005-26085-1-git-send-email-longman@redhat.com > Signed-off-by: Ingo Molnar > Signed-off-by: Baolin Wang > --- > kernel/locking/lockdep.c | 3 +++ > 1 file changed, 3 insertions(+) Why isn't this relevant for 4.19.y? I can't add a patch to 4.14.y and then have someone upgrade to 4.19.y and not have the same fix in there, that would be a regression. So can you redo this series also with a 4.19.y set at the same so we don't get out of sync? I've queued up your first patch already as that was in 4.19.y (and also needed in 4.9.y). thanks, greg k-h