From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (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 78CFCF5513C for ; Sun, 8 Mar 2026 11:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:In-Reply-To:MIME-Version:References:Message-ID:To:From:Date:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Lw1nFt6gb25/WE8IAz60QM268yCUiFSLBwp1IyPsTj8=; b=T3SHJvGAamGUFo9/lY6PnqYP/O oDVDkRq8S5SGoS/lyu4+UvwmORtcET/W9qXSAuBnVS6cGTcveZtENIdIyDlQkxAA4wFH9Z3ENhhOz Q7YokMUtgv/ofOvJuLV5yfB83sZfUnS8flV4zWd1VPNKXjjMTrBlLsQV+jJHMAx8IVm4=; Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1vzBvr-000569-4w; Sun, 08 Mar 2026 11:04:23 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1vzBvp-000561-S6 for linux-f2fs-devel@lists.sourceforge.net; Sun, 08 Mar 2026 11:04:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; 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:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Er5cat7IeSsScdTn0K/gJbSyeUdZl6C/O0hkcgq7XkI=; b=OugIkJcH5+RyCZu36eKED+Oe95 hUvgt8p+RwkylsXnZ6HpfBGgs1S5Id6s9yLUUuXXO20Vxki8BsswoSHQqMt9C157bg8+WLM9IQdop yjT5ylr7FqCA/gYWCgjLwew83CCg/8z0zuvxmwX1T1IpzVfpBBvLRhH4X7p8UaXRHgeU=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; 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:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Er5cat7IeSsScdTn0K/gJbSyeUdZl6C/O0hkcgq7XkI=; b=ckRcF8DVmJ1L8mDj1QAXlHtorQ mdg40FeUbrX+6Y7a2nc4Eo7La52Zf7qPrN/KfxMkMBinOguQ6NdH5E2UetI+Sg75BJ83nFoNFPChP XBNq60yJyfCS2flc4VuWFFNEBqvcCo+ui5cUjOAsDmM6trJkNaVCwsu2h40r+5ouxyCs=; Received: from foss.arm.com ([217.140.110.172]) by sfi-mx-2.v28.lw.sourceforge.com with esmtp (Exim 4.95) id 1vzBvp-0003QA-Gl for linux-f2fs-devel@lists.sourceforge.net; Sun, 08 Mar 2026 11:04:21 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EFA891570; Sun, 8 Mar 2026 04:04:04 -0700 (PDT) Received: from arm.com (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A63E23F836; Sun, 8 Mar 2026 04:04:08 -0700 (PDT) Date: Sun, 8 Mar 2026 11:04:06 +0000 From: Catalin Marinas To: syzbot+cae7809e9dc1459e4e63@syzkaller.appspotmail.com Message-ID: References: <698a26d3.050a0220.3b3015.007e.GAE@google.com> <20260302034102.3145719-1-wangqing7171@gmail.com> <20df8dd1-a32c-489d-8345-085d424a2f12@kernel.org> <925a916a-6dfb-48c0-985c-0bdfb96ebd26@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Headers-End: 1vzBvp-0003QA-Gl Subject: Re: [f2fs-dev] [syzbot] [mm?] [f2fs?] [exfat?] memory leak in __kfree_rcu_sheaf X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Qing Wang , "Vlastimil Babka \(SUSE\)" , lorenzo.stoakes@oracle.com, jannh@google.com, syzkaller-bugs@googlegroups.com, linux-kernel@vger.kernel.org, Liam.Howlett@oracle.com, linux-f2fs-devel@lists.sourceforge.net, linux-mm@kvack.org, vbabka@suse.cz, Hao Li , pfalcato@suse.de, linux-fsdevel@vger.kernel.org, jaegeuk@kernel.org, akpm@linux-foundation.org, sj1557.seo@samsung.com, linkinjeon@kernel.org, Harry Yoo Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net #syz test diff --git a/mm/slab_common.c b/mm/slab_common.c index d5a70a831a2a..73f4668d870d 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -1954,8 +1954,14 @@ void kvfree_call_rcu(struct rcu_head *head, void *ptr) if (!head) might_sleep(); - if (!IS_ENABLED(CONFIG_PREEMPT_RT) && kfree_rcu_sheaf(ptr)) + if (!IS_ENABLED(CONFIG_PREEMPT_RT) && kfree_rcu_sheaf(ptr)) { + /* + * The object is now queued for deferred freeing via an RCU + * sheaf. Tell kmemleak to ignore it. + */ + kmemleak_ignore(ptr); return; + } // Queue the object but don't yet schedule the batch. if (debug_rcu_head_queue(ptr)) { _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel