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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3349C433EF for ; Tue, 12 Oct 2021 20:43:24 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 567F960E09 for ; Tue, 12 Oct 2021 20:43:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 567F960E09 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id DD90D900002; Tue, 12 Oct 2021 16:43:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D88976B0071; Tue, 12 Oct 2021 16:43:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C5051900002; Tue, 12 Oct 2021 16:43:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0062.hostedemail.com [216.40.44.62]) by kanga.kvack.org (Postfix) with ESMTP id B4D9B6B006C for ; Tue, 12 Oct 2021 16:43:23 -0400 (EDT) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 6A0623947C for ; Tue, 12 Oct 2021 20:43:23 +0000 (UTC) X-FDA: 78688960686.08.386EA10 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf18.hostedemail.com (Postfix) with ESMTP id 12ABE400208A for ; Tue, 12 Oct 2021 20:43:22 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 9896C6023F; Tue, 12 Oct 2021 20:43:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634071400; bh=qSRTLhh6AyfiudCxLkFvL8P1dGGMhRf6B1OWORkwoKw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ue6l9ezEMMCy87G2pv2zr0SUcuCQdpYH3vzmAShXxdWr7o6PhZf6/t1z9Q8rv9veP E+eeWK7xSBxZLAvOe4Su1hDkaooEsB3KF5H+aNo/9uDt72d6kpGJGQ+uyRW09PIgSD JD6B5Y5LgJn4RezDwDLiHszdqgbkAy3AjZjXMSTOk9ed8kLtO6bqTlyDn/687zyDZf GjrBk5WBUd/fpVS8qYmuaakUtZEGPGqDbWfktM6H+5fylI0f42ucPbxvRnkBp4s9q4 1iLFDJcOP1Tng5cTpv0FjuTVJdkj0b0BJju5oFAbR6Hi3oiXziUVBtwa3I/aA54iEn J6kO2sgaqJ/9g== Date: Tue, 12 Oct 2021 13:43:20 -0700 From: "Darrick J. Wong" To: David Rientjes Cc: Rustam Kovhaev , Vlastimil Babka , Dave Chinner , linux-xfs@vger.kernel.org, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, gregkh@linuxfoundation.org, Al Viro , dvyukov@google.com Subject: Re: [PATCH] xfs: use kmem_cache_free() for kmem_cache objects Message-ID: <20211012204320.GP24307@magnolia> References: <20210929212347.1139666-1-rkovhaev@gmail.com> <20210930044202.GP2361455@dread.disaster.area> <17f537b3-e2eb-5d0a-1465-20f3d3c960e2@suse.cz> <1e0df91-556e-cee5-76f7-285d28fe31@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1e0df91-556e-cee5-76f7-285d28fe31@google.com> X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 12ABE400208A X-Stat-Signature: 7koyy66stec49kzrpyb9358xnedi66s9 Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ue6l9ezE; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf18.hostedemail.com: domain of djwong@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=djwong@kernel.org X-HE-Tag: 1634071402-701282 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sun, Oct 03, 2021 at 06:07:20PM -0700, David Rientjes wrote: > On Thu, 30 Sep 2021, Rustam Kovhaev wrote: > > > > >> I think it's fair if something like XFS (not meant for tiny systems AFAIK?) > > > >> excludes SLOB (meant for tiny systems). Clearly nobody tried to use these > > > >> two together last 5 years anyway. > > > > > > > > +1 for adding Kconfig option, it seems like some things are not meant to > > > > be together. > > > > > > But if we patch SLOB, we won't need it. > > > > OK, so we consider XFS on SLOB a supported configuration that might be > > used and should be tested. > > I'll look into maybe adding a config with CONFIG_SLOB and CONFIG_XFS_FS > > to syzbot. > > > > It seems that we need to patch SLOB anyway, because any other code can > > hit the very same issue. > > > > It's probably best to introduce both (SLOB fix and Kconfig change for > XFS), at least in the interim because the combo of XFS and SLOB could be > broken in other ways. If syzbot doesn't complain with a patched kernel to > allow SLOB to be used with XFS, then we could potentially allow them to be > used together. > > (I'm not sure that this freeing issue is the *only* thing that is broken, > nor that we have sufficient information to make that determination right > now..) I audited the entire xfs (kernel) codebase and didn't find any other usage errors. Thanks for the patch; I'll apply it to for-next. --D