Message ID | 20230304193949.296391-1-sj@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1064250wrd; Sat, 4 Mar 2023 11:47:12 -0800 (PST) X-Google-Smtp-Source: AK7set+Cv1A9q6dP96pxDaX4SY+CHWt0Ur16kAJtH+O+8/5DmNepmysRfTgR6gzuL5A+rKE7y2Vm X-Received: by 2002:a05:6a20:7da6:b0:be:e0c3:5012 with SMTP id v38-20020a056a207da600b000bee0c35012mr6085917pzj.1.1677959232630; Sat, 04 Mar 2023 11:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677959232; cv=none; d=google.com; s=arc-20160816; b=uQcLnjNFb8/P8UUNrrOz5LpGUFkpX+iMzIWcc36SWyzjzbiucYJ75u5rui9Rq2OBBY rEAwzTkygFT97r2QnfBBoWNYYzICPafr1UatR4hCM65gD4a7tNL+2AKgoRC4j75yS/g/ MglGLqED6P5/SC70FP3/sjbaePliNEMYi3L86fqcwDBbs5QLqQpdZcO+NJykB5YJVhn4 HdO+XJdIdYXYK5rzpyALpJw6hocEOHIteRdhrCLH7Gf0WN6rQ0/Uy2OdezaMRJ/hrc8o 7XMxpD3td/BJrXRwtjcDzJtoQntvZGHTNFA+3mg0L5YwXsQFLTfd3lU48qukIuDEhPP7 g7tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9eArX/oJLg9CG3DUzVE45jmOXdqZF4gqZbGoTCjH31c=; b=jN03RYcH4/4lDs6giX4bKXs3Nd77DSMVOL2BFJG8nv6uMQcKoW1sLLpCqG3YNLn+nh 7BX3rsA3SjO7Zib5F5B6zSqeEPJlgyPSX9CswIQKKRghqNekCOxWLCL6kJy4yMe9oTnA frjMIS2D0b7IT69MHVB4NCrlDe0nwIgVP8BXAKwd/ByelfOBoqqsxEY+t3F6mJonGneB 0uyc1DaaGRbOuc4VRjhiklycJ+mEFT0/IafZ9Vz3ugfu4YrULZqZsHk3NmmddWuedNCs 2YEkX2nbENNhwXVgAVh/ACh4UdjjaEHe4P/ZprI03AtkIa8vSLgQDR1Hpps1TnOqYnHy +tgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Fw/AwxpS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a631a55000000b0050318fe2b1bsi5183974pgm.147.2023.03.04.11.46.59; Sat, 04 Mar 2023 11:47:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Fw/AwxpS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229658AbjCDTkE (ORCPT <rfc822;kernel.ruili@gmail.com> + 99 others); Sat, 4 Mar 2023 14:40:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjCDTkC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 4 Mar 2023 14:40:02 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A623ECC27 for <linux-kernel@vger.kernel.org>; Sat, 4 Mar 2023 11:40:01 -0800 (PST) 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 4A74860A55 for <linux-kernel@vger.kernel.org>; Sat, 4 Mar 2023 19:40:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D67BC433EF; Sat, 4 Mar 2023 19:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677958800; bh=6TeDbR5GXJJF54b96kNnySeQoyETESDXw9WrPqnw/VI=; h=From:To:Cc:Subject:Date:From; b=Fw/AwxpST4BRnmybFAJfo3Nj/+vYbZKVoaSa9sAipEycxpJGLaFSszOvb/ysWG2jJ VXBIITE+AAcbftEmWT0cfga+EKGTg4i8xf6/YJv3zsJvQFq8bqeUP9zdUnL+BiokZj yfNWULFx3tTWr5pHWx7nocG0143d9WM5WFZlKnHGfAO0oC1CSNRdFpFdPo0n7fkr9Q 2mi4zYhPjP+8E/yjG8B+S/L54IPPOJuLOsi8fLXJp/mY0qXBl4aa75IsJyskcq3OIb C0BdMqOtsdBgMpxjFZI8AmHXkDxlSTtS7PfBR5CD6GyuFwsdwP/Hid9xU1G99hXRtT 0+oV4gHxOIVSg== From: SeongJae Park <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, "Matthew Wilcox (Oracle)" <willy@infradead.org>, "Vishal Moola (Oracle)" <vishal.moola@gmail.com>, Kefeng Wang <wangkefeng.wang@huawei.com>, damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] mm/damon/paddr: Fix folio-use-after-put bugs Date: Sat, 4 Mar 2023 19:39:47 +0000 Message-Id: <20230304193949.296391-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759467780501344344?= X-GMAIL-MSGID: =?utf-8?q?1759467780501344344?= |
Series |
mm/damon/paddr: Fix folio-use-after-put bugs
|
|
Message
SeongJae Park
March 4, 2023, 7:39 p.m. UTC
There are two folio accesses after folio_put() in mm/damon/paddr.c file. Fix those. SeongJae Park (2): mm/damon/paddr: fix folio_size() call after folio_put() in damon_pa_young() mm/damon/paddr: fix folio_nr_pages() after folio_put() in damon_pa_mark_accessed_or_deactivate() mm/damon/paddr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)