Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB42DC678D5 for ; Sun, 5 Mar 2023 00:00:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229650AbjCEAAw (ORCPT ); Sat, 4 Mar 2023 19:00:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbjCEAAu (ORCPT ); Sat, 4 Mar 2023 19:00:50 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87A63196B7; Sat, 4 Mar 2023 16:00:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=GFZU3Vr031k0W6AOiBuxkRp/WomquZxxmMw7RSoYHIA=; b=mFptCZUCgRYLzFH1ts+We08mpb hEMOVNREw6u+CJkwBA3vzRQ6lqpmgxsVNX8toK5l0rtpeilw1wSZQLxqgwnBzpHSwsHklzEuAVfC8 42TcF0GiKHIh/Gb+Vj9jDxHd3wXRsq1IcN0Bsp6lFLVHlmsYZRkr3/nZ3x45+hocFrzkeLGUc7S8M teCVj5FJ3MzpUSODowjI6rCwia4u4Fc8Tqlw+9TQxnB+FfhIh03iqCD7LqnTSdSO+cgDTQmNAJrtk +wrA2hN5JK/Uj7o/ifYxz3jVYoC8JBMv7q+EbkgVeamd51qd5Tc77LBtmWK/M/dn+BxrhJsrfPOCY 8pccAU3A==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pYbnY-0047NX-Qn; Sun, 05 Mar 2023 00:00:20 +0000 Date: Sun, 5 Mar 2023 00:00:20 +0000 From: Matthew Wilcox To: SeongJae Park Cc: Andrew Morton , Kefeng Wang , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] mm/damon/paddr: fix folio_size() call after folio_put() in damon_pa_young() Message-ID: References: <20230304193949.296391-1-sj@kernel.org> <20230304193949.296391-2-sj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230304193949.296391-2-sj@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 04, 2023 at 07:39:48PM +0000, SeongJae Park wrote: > damon_pa_young() is accessing a folio via folio_size() after folio_put() > for the folio has invoked. Fix it. > > Fixes: 397b0c3a584b ("mm/damon/paddr: remove folio_sz field from damon_pa_access_chk_result") > Cc: # 6.3.x > Signed-off-by: SeongJae Park Reviewed-by: Matthew Wilcox (Oracle)