From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
	aws-us-west-2-korg-lkml-1.web.codeaurora.org
Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.lore.kernel.org (Postfix) with ESMTPS id ECAD6C433F5
	for <linux-mediatek@archiver.kernel.org>; Wed, 16 Mar 2022 06:01:28 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=lists.infradead.org; s=bombadil.20210309; h=Sender:
	Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:
	List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:CC:To:From:Subject:
	Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:
	Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:
	List-Owner; bh=1Huc0xC9GZxhY2T7aDEmUssNFUitcvio4AlVv4jwvd4=; b=oNs0Xq39Qu/wIX
	m5w2ZvjS3hiQ/nOeEHE/f4z5IHZlN5uasJeKIKSQZl6cMTXDqA7hEVHpPVg3T8jpkchqh7BVoTEGw
	e4J7XdMWcWUg2GMeCi9nhG8E5FsrUagCscGGqai7C1+j6ojXWQalbFWxSse6e6LOcQ47Pm2usvDQK
	ABw0chSl/goxOTYgklg8I19e/XsVyW1Hn35wkUKC+D7e+ymiggxS0SNewKsVJuGrjq9CvLfEd8ltd
	Fa3H0sz0DWu51r3Wq8n4Iq5Ij1ESGzoPBZ7taA5+U0R7wMDo0sSd/TmFvgRGSWuO5evycLViUPOK2
	FoGqE8YI37lJkgV26gzA==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
	by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux))
	id 1nUMim-00BZcv-RD; Wed, 16 Mar 2022 06:01:20 +0000
Received: from mailgw01.mediatek.com ([216.200.240.184])
 by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux))
 id 1nUMik-00BZbW-1f
 for linux-mediatek@lists.infradead.org; Wed, 16 Mar 2022 06:01:19 +0000
X-UUID: 35c7ea6e72e244618f53366490a68d93-20220315
X-UUID: 35c7ea6e72e244618f53366490a68d93-20220315
Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw01.mediatek.com
 (envelope-from <cheng-jui.wang@mediatek.com>)
 (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256)
 with ESMTP id 1328035554; Tue, 15 Mar 2022 23:01:15 -0700
Received: from MTKMBS07N2.mediatek.inc (172.21.101.141) by
 MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id
 15.0.1497.2; Tue, 15 Mar 2022 23:01:13 -0700
Received: from mtkcas11.mediatek.inc (172.21.101.40) by
 mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id
 15.0.1497.2; Wed, 16 Mar 2022 14:01:12 +0800
Received: from mtksdccf07 (172.21.84.99) by mtkcas11.mediatek.inc
 (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend
 Transport; Wed, 16 Mar 2022 14:01:11 +0800
Message-ID: <6eb2052f463d323b0a82e795d765afb9d5925f6e.camel@mediatek.com>
Subject: apply commit 61cc4534b655 ("locking/lockdep: Avoid potential access
 of invalid memory in lock_class") to linux-5.4-stable
From: Cheng Jui Wang <cheng-jui.wang@mediatek.com>
To: <stable@vger.kernel.org>
CC: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>, Waiman Long
 <longman@redhat.com>, "Peter Zijlstra (Intel)" <peterz@infradead.org>, "Bart
 Van Assche" <bvanassche@acm.org>, <linux-mediatek@lists.infradead.org>,
 Eason-YH Lin <eason-yh.lin@mediatek.com>
Date: Wed, 16 Mar 2022 14:01:12 +0800
X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 
MIME-Version: 1.0
X-MTK: N
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20220315_230118_127612_801ED572 
X-CRM114-Status: UNSURE (   5.78  )
X-CRM114-Notice: Please train this message.
X-BeenThere: linux-mediatek@lists.infradead.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: <linux-mediatek.lists.infradead.org>
List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, 
 <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe>
List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/>
List-Post: <mailto:linux-mediatek@lists.infradead.org>
List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help>
List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, 
 <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org>
Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org

Hi Reviewers,

This patch fixes a use-after-free error when /proc/lockdep is read by
user after a lockdep splat.

I checked and I think this patch can be applied to stable-5.4 and
later. 

commit: 61cc4534b6550997c97a03759ab46b29d44c0017
Subject: locking/lockdep: Avoid potential access of invalid memory in
lock_class

Thanks.
Cheng-Jui Wang



_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
	aws-us-west-2-korg-lkml-1.web.codeaurora.org
Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C966C433EF
	for <linux-mediatek@archiver.kernel.org>; Wed, 16 Mar 2022 14:26:45 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=lists.infradead.org; s=bombadil.20210309; h=Sender:
	Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:
	List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:
	Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:
	Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
	List-Owner; bh=Gn1Mw/sIQEod1CdYmTPD6XOqHTAPEPh3IzuEkRkQeP0=; b=FFIu5E7bs+mWze
	ZIfEH20ovDoagAt1IqTzKSk4Lgh03Vc0eSoyqWui6rW4PpLkZtF7nK6ImYrh8QzL2dk7JlXGWXGAl
	Lp0rqjnJ+tMxyfGu76VhaJINaZNaJfnlihfspi3Nb/YDGcEgCffiA0aHO98RrnjPOMk6LXxYvIt03
	b/WST555Rpr7+/eBI8IQYntUzvFQq1qX6muL2lRuFanp6CE3JF4etl1r6Z0GK/2fTq9/UnOHJcyKz
	JdBTm8dug1mCRm4UhGzbqpPTeVn0a8S6W8V/wds+GFnIpFKdfD9UlAfpYGJxzj92i/rg/cJeH8zSl
	a/E1JOm5ETYJ1HebkSKg==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
	by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux))
	id 1nUUbm-00DGNL-J3; Wed, 16 Mar 2022 14:26:38 +0000
Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1])
 by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux))
 id 1nUUbk-00DGMV-2q
 for linux-mediatek@lists.infradead.org; Wed, 16 Mar 2022 14:26:37 +0000
Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by dfw.source.kernel.org (Postfix) with ESMTPS id E09C261521;
 Wed, 16 Mar 2022 14:26:34 +0000 (UTC)
Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9733C340E9;
 Wed, 16 Mar 2022 14:26:33 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org;
 s=korg; t=1647440794;
 bh=JW6d5LJkYtWBuryX3EDJNepPYt1eYaCSXr2vEEtyRCQ=;
 h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
 b=C3BiPtAKtITlMJ3sNAkXDmllp06sGntMD9bba5DAnLXPCXEBaIbZbv0+cL0EkfBfh
 EtyO0j6TLOIkwilTuMOlU2zliSuJJe+7Ni/jSI8BKo772pjkhzdhOabeNs6nyKjEjw
 BlOQyQXtrSoF4xKLPgz7jQjnZn9rIfMvh6tn96fo=
Date: Wed, 16 Mar 2022 15:26:31 +0100
From: Greg KH <gregkh@linuxfoundation.org>
To: Cheng Jui Wang <cheng-jui.wang@mediatek.com>
Cc: stable@vger.kernel.org, Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>,
 Waiman Long <longman@redhat.com>,
 "Peter Zijlstra (Intel)" <peterz@infradead.org>,
 Bart Van Assche <bvanassche@acm.org>, linux-mediatek@lists.infradead.org,
 Eason-YH Lin <eason-yh.lin@mediatek.com>
Subject: Re: apply commit 61cc4534b655 ("locking/lockdep: Avoid potential
 access of invalid memory in lock_class") to linux-5.4-stable
Message-ID: <YjHzl3Arey7KH0CB@kroah.com>
References: <6eb2052f463d323b0a82e795d765afb9d5925f6e.camel@mediatek.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <6eb2052f463d323b0a82e795d765afb9d5925f6e.camel@mediatek.com>
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20220316_072636_206167_E504415A 
X-CRM114-Status: GOOD (  11.92  )
X-BeenThere: linux-mediatek@lists.infradead.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: <linux-mediatek.lists.infradead.org>
List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, 
 <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe>
List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/>
List-Post: <mailto:linux-mediatek@lists.infradead.org>
List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help>
List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, 
 <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org>
Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org

On Wed, Mar 16, 2022 at 02:01:12PM +0800, Cheng Jui Wang wrote:
> Hi Reviewers,
> 
> This patch fixes a use-after-free error when /proc/lockdep is read by
> user after a lockdep splat.
> 
> I checked and I think this patch can be applied to stable-5.4 and
> later. 
> 
> commit: 61cc4534b6550997c97a03759ab46b29d44c0017
> Subject: locking/lockdep: Avoid potential access of invalid memory in
> lock_class

I do not see that commit id in Linus's tree, are you sure it is correct?

thanks,

greg k-h

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
	aws-us-west-2-korg-lkml-1.web.codeaurora.org
Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.lore.kernel.org (Postfix) with ESMTPS id 4F979C433FE
	for <linux-mediatek@archiver.kernel.org>; Wed, 16 Mar 2022 14:31:26 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=lists.infradead.org; s=bombadil.20210309; h=Sender:
	Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:
	List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:
	Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description:
	Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
	List-Owner; bh=M2LYgQ296kg/RH6W3fIC6pr10effDhjfmZ1ndeeFTGQ=; b=RTAM7DkXpRju0Y
	2/RZ4Qgc3IZTz6vAsZbp18LTxSoTxVklg3QWz+hX0XMtScf0ZdmSOEAeUKrEOsnW4EPEiaqk4tZL9
	zo0sIyteclf+H4dN828ifHyn/dx4P0qg9f+L8z8+qKx8OYPVxNPtjEz5XND4ynsFGfbzoGUOr4E5W
	FAzZp23Ee249TybnQ4ZxnR0hegCJstMy/pm6CM302MCaar0MMEM2E3o4XUqvdf+27DlN7pWxY82RG
	PX3+6NgEKD2b0Q2biZPk+UoGrJUkWOo4TJ3VgkVl4m9bNh8zd6HkC+9CEPPsdj0l8/BxPbWLb+Wbq
	r6rTod9lh9t523zfT92g==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
	by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux))
	id 1nUUgH-00DGvB-BU; Wed, 16 Mar 2022 14:31:17 +0000
Received: from www262.sakura.ne.jp ([202.181.97.72])
 by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux))
 id 1nUUgE-00DGt3-Pb
 for linux-mediatek@lists.infradead.org; Wed, 16 Mar 2022 14:31:16 +0000
Received: from fsav115.sakura.ne.jp (fsav115.sakura.ne.jp [27.133.134.242])
 by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 22GEUxXM013765;
 Wed, 16 Mar 2022 23:30:59 +0900 (JST)
 (envelope-from penguin-kernel@I-love.SAKURA.ne.jp)
Received: from www262.sakura.ne.jp (202.181.97.72)
 by fsav115.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav115.sakura.ne.jp);
 Wed, 16 Mar 2022 23:30:59 +0900 (JST)
X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav115.sakura.ne.jp)
Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33])
 (authenticated bits=0)
 by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 22GEUwhw013760
 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO);
 Wed, 16 Mar 2022 23:30:58 +0900 (JST)
 (envelope-from penguin-kernel@I-love.SAKURA.ne.jp)
Message-ID: <fc88e012-ff4b-8746-5f9d-d60018ff88a8@I-love.SAKURA.ne.jp>
Date: Wed, 16 Mar 2022 23:30:57 +0900
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:91.0) Gecko/20100101
 Thunderbird/91.7.0
Subject: Re: apply commit 61cc4534b655 ("locking/lockdep: Avoid potential
 access of invalid memory in lock_class") to linux-5.4-stable
Content-Language: en-US
To: Greg KH <gregkh@linuxfoundation.org>,
 Cheng Jui Wang <cheng-jui.wang@mediatek.com>
Cc: stable@vger.kernel.org, Waiman Long <longman@redhat.com>,
 "Peter Zijlstra (Intel)" <peterz@infradead.org>,
 Bart Van Assche <bvanassche@acm.org>, linux-mediatek@lists.infradead.org,
 Eason-YH Lin <eason-yh.lin@mediatek.com>
References: <6eb2052f463d323b0a82e795d765afb9d5925f6e.camel@mediatek.com>
 <YjHzl3Arey7KH0CB@kroah.com>
From: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
In-Reply-To: <YjHzl3Arey7KH0CB@kroah.com>
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20220316_073115_099422_6B386746 
X-CRM114-Status: UNSURE (   8.73  )
X-CRM114-Notice: Please train this message.
X-BeenThere: linux-mediatek@lists.infradead.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: <linux-mediatek.lists.infradead.org>
List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, 
 <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe>
List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/>
List-Post: <mailto:linux-mediatek@lists.infradead.org>
List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help>
List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, 
 <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org>
Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org

On 2022/03/16 23:26, Greg KH wrote:
> On Wed, Mar 16, 2022 at 02:01:12PM +0800, Cheng Jui Wang wrote:
>> Hi Reviewers,
>>
>> This patch fixes a use-after-free error when /proc/lockdep is read by
>> user after a lockdep splat.
>>
>> I checked and I think this patch can be applied to stable-5.4 and
>> later. 
>>
>> commit: 61cc4534b6550997c97a03759ab46b29d44c0017
>> Subject: locking/lockdep: Avoid potential access of invalid memory in
>> lock_class
> 
> I do not see that commit id in Linus's tree, are you sure it is correct?

It is in linux-next.git, and will be sent to linux.git when next merge window opens.

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
	aws-us-west-2-korg-lkml-1.web.codeaurora.org
Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.lore.kernel.org (Postfix) with ESMTPS id DDA10C433F5
	for <linux-mediatek@archiver.kernel.org>; Wed, 16 Mar 2022 14:38:20 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type:
	Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive:
	List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject:
	MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description:
	Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
	List-Owner; bh=A5VUpbPBL912Mk0zvD2gfF1eJA1L2MWGMBQnZoeL7J8=; b=Z80Rdg8gI2zLKs
	OfvCdttplgF2f6sc33jueOxt5hty15HKLXyMGztApfuiGmSr5jpIi78kN0ctFKp8tJHz8+s8m+EB0
	3uniFt8LXvHw9qbtL32WPSjdI1JeO91t7ZIHOwxlEIErBV0OZfnqFb9mFVW+/Fkwl1uXVVgoo/mdE
	i6gk6WvybaIXEhGy8AfBIG28XXFImPLrYsCtfpA8n0mulmT3ERGeWs96MEIsAH/RATwSLqiKuw4L0
	JdGbpdkdHXt99TgBGSDtppSZD6zg+gwbicn9L8k0zvxusTpyvxS6W+OzeQreGUzPr+XU5Tx66D8K7
	inon71meZkKWh1It+Hrw==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
	by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux))
	id 1nUUn0-00DIDJ-B7; Wed, 16 Mar 2022 14:38:14 +0000
Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124])
 by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux))
 id 1nUUmx-00DIB7-6B
 for linux-mediatek@lists.infradead.org; Wed, 16 Mar 2022 14:38:12 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
 s=mimecast20190719; t=1647441489;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=4pZBLggxKdz4L37gBgUJARXj4G+el7mKfdePMsD8X+U=;
 b=S17u8BiFJV3/ZmxJhrPx3Ud2stE87JeczjD1D3QvKrChoPn3pbB8g/qSAQvwRqan+WsLbX
 ZBxv2upY9T3IyAMkhrslFPOl7HfOzOujhnpulJFceSu4eSg6rpizu6CStOdaMcvDpjubkq
 X+KW6eCjkaqRxuI67DQKdQXeptu39zc=
Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com
 [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS
 (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 us-mta-539-m5rIbwTQNDeiO5ku6RDWHA-1; Wed, 16 Mar 2022 10:38:06 -0400
X-MC-Unique: m5rIbwTQNDeiO5ku6RDWHA-1
Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com
 [10.11.54.9])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 982AE85A5BE;
 Wed, 16 Mar 2022 14:38:05 +0000 (UTC)
Received: from [10.18.17.215] (dhcp-17-215.bos.redhat.com [10.18.17.215])
 by smtp.corp.redhat.com (Postfix) with ESMTP id 224F9432470;
 Wed, 16 Mar 2022 14:38:04 +0000 (UTC)
Message-ID: <ee1e2ab4-c498-c047-ad70-fc46b508fe74@redhat.com>
Date: Wed, 16 Mar 2022 10:38:04 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.5.0
Subject: Re: apply commit 61cc4534b655 ("locking/lockdep: Avoid potential
 access of invalid memory in lock_class") to linux-5.4-stable
Content-Language: en-US
To: Greg KH <gregkh@linuxfoundation.org>,
 Cheng Jui Wang <cheng-jui.wang@mediatek.com>
Cc: stable@vger.kernel.org, Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>,
 "Peter Zijlstra (Intel)" <peterz@infradead.org>,
 Bart Van Assche <bvanassche@acm.org>, linux-mediatek@lists.infradead.org,
 Eason-YH Lin <eason-yh.lin@mediatek.com>
References: <6eb2052f463d323b0a82e795d765afb9d5925f6e.camel@mediatek.com>
 <YjHzl3Arey7KH0CB@kroah.com>
From: Waiman Long <longman@redhat.com>
In-Reply-To: <YjHzl3Arey7KH0CB@kroah.com>
X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20220316_073811_349801_06C3745E 
X-CRM114-Status: GOOD (  16.26  )
X-BeenThere: linux-mediatek@lists.infradead.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: <linux-mediatek.lists.infradead.org>
List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, 
 <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe>
List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/>
List-Post: <mailto:linux-mediatek@lists.infradead.org>
List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help>
List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, 
 <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org>
Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org

On 3/16/22 10:26, Greg KH wrote:
> On Wed, Mar 16, 2022 at 02:01:12PM +0800, Cheng Jui Wang wrote:
>> Hi Reviewers,
>>
>> This patch fixes a use-after-free error when /proc/lockdep is read by
>> user after a lockdep splat.
>>
>> I checked and I think this patch can be applied to stable-5.4 and
>> later.
>>
>> commit: 61cc4534b6550997c97a03759ab46b29d44c0017
>> Subject: locking/lockdep: Avoid potential access of invalid memory in
>> lock_class
> I do not see that commit id in Linus's tree, are you sure it is correct?

This commit is currently in the tip tree. It have not been merged into 
the mainline yet, though it should happen in the upcoming merge window.

Cheers,
Longman


_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
	aws-us-west-2-korg-lkml-1.web.codeaurora.org
Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.lore.kernel.org (Postfix) with ESMTPS id 5DCF0C433F5
	for <linux-mediatek@archiver.kernel.org>; Wed, 16 Mar 2022 15:33:09 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=lists.infradead.org; s=bombadil.20210309; h=Sender:
	Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:
	List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:
	Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:
	Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
	List-Owner; bh=GyfToEIyyLAIW+Y8FpBDb7XVP68pzfm/VTRFYBjuvNw=; b=pHD6DB2VbPh9br
	kAtX9XqoM2vG52cveTDA0Kjto4PSze3VY/SyY0pCtDDWx92xKPULGjABqVc8pXdrWOYSR6g3hKrH+
	6yHac/7sFOYcybgFKZRKlpSqtCc9gerBIF814sLuw06V6vOCxO8vn5xztIzijKk/0ZVZVTh0V0n2N
	VxfFUmwTeAYjl5Wd11B6rMUVpOJgRRkNuj3K4dEUibc6QxlNOD4I5YgPtps6V3yIvVkNKIFIxkpjh
	Gg7icwEOgwiTmCDLkgCBXADp771XQhOcZdBuhkmzzBkdSQ0V4kp4Ttrd8YllcwTB7vtTJROlHdsrz
	EY21vvy7dVJL6gbTS75Q==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
	by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux))
	id 1nUVe1-00DaIX-4h; Wed, 16 Mar 2022 15:33:01 +0000
Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1])
 by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux))
 id 1nUVcR-00DZWc-1D
 for linux-mediatek@lists.infradead.org; Wed, 16 Mar 2022 15:31:24 +0000
Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by dfw.source.kernel.org (Postfix) with ESMTPS id 43C79616D5;
 Wed, 16 Mar 2022 15:31:21 +0000 (UTC)
Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57C7BC340F3;
 Wed, 16 Mar 2022 15:31:20 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org;
 s=korg; t=1647444680;
 bh=9ctp6RO64kNLGedDE5QkD08/qc84M9aO0xsGgkUdehw=;
 h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
 b=rbdgDUxuV20gBW39s5SKCt2nvq2SBNoQ4CZ8CvVauZuAhkOH6ykjfmVUJyK5lT2sS
 siH4lKCSC6pZY+c4rM2Cuf4+hXJA4gGUXrs7LdePLkGUS7LorSIXrgxrWUAeEFAtEH
 gN7mqVQsnmO3N3HccK2YMl4GaQmAThBpy0U5x/ZM=
Date: Wed, 16 Mar 2022 16:31:17 +0100
From: Greg KH <gregkh@linuxfoundation.org>
To: Waiman Long <longman@redhat.com>
Cc: Cheng Jui Wang <cheng-jui.wang@mediatek.com>, stable@vger.kernel.org,
 Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>,
 "Peter Zijlstra (Intel)" <peterz@infradead.org>,
 Bart Van Assche <bvanassche@acm.org>, linux-mediatek@lists.infradead.org,
 Eason-YH Lin <eason-yh.lin@mediatek.com>
Subject: Re: apply commit 61cc4534b655 ("locking/lockdep: Avoid potential
 access of invalid memory in lock_class") to linux-5.4-stable
Message-ID: <YjICxcNVK+1VBNtz@kroah.com>
References: <6eb2052f463d323b0a82e795d765afb9d5925f6e.camel@mediatek.com>
 <YjHzl3Arey7KH0CB@kroah.com>
 <ee1e2ab4-c498-c047-ad70-fc46b508fe74@redhat.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <ee1e2ab4-c498-c047-ad70-fc46b508fe74@redhat.com>
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20220316_083123_141468_B845AA09 
X-CRM114-Status: GOOD (  19.27  )
X-BeenThere: linux-mediatek@lists.infradead.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: <linux-mediatek.lists.infradead.org>
List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, 
 <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe>
List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/>
List-Post: <mailto:linux-mediatek@lists.infradead.org>
List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help>
List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, 
 <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org>
Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org

On Wed, Mar 16, 2022 at 10:38:04AM -0400, Waiman Long wrote:
> On 3/16/22 10:26, Greg KH wrote:
> > On Wed, Mar 16, 2022 at 02:01:12PM +0800, Cheng Jui Wang wrote:
> > > Hi Reviewers,
> > > 
> > > This patch fixes a use-after-free error when /proc/lockdep is read by
> > > user after a lockdep splat.
> > > 
> > > I checked and I think this patch can be applied to stable-5.4 and
> > > later.
> > > 
> > > commit: 61cc4534b6550997c97a03759ab46b29d44c0017
> > > Subject: locking/lockdep: Avoid potential access of invalid memory in
> > > lock_class
> > I do not see that commit id in Linus's tree, are you sure it is correct?
> 
> This commit is currently in the tip tree. It have not been merged into the
> mainline yet, though it should happen in the upcoming merge window.

As per the stable kernel rules, the commit has to be in Linus's tree
first.  Please email us again when that has happened.

thanks,

greg k-h

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

