Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2796598pxb; Tue, 12 Oct 2021 13:45:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjBZoN0RqaYRN0d9sRve5JM/MBmGvzE+fv0vpR3yyKbUS22pp17d7vaXeeL7p4Qgb8/nYL X-Received: by 2002:a62:2f81:0:b0:44b:b390:956b with SMTP id v123-20020a622f81000000b0044bb390956bmr33633982pfv.30.1634071501315; Tue, 12 Oct 2021 13:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634071501; cv=none; d=google.com; s=arc-20160816; b=PNuDYds1eGMchn7tKsIH0xGYf+5i/5bgy8L3FHyV4q3rluDuEbmNsq5lpFmbsUlGyv /RiswbyNolDjackDLOBSDU9I50rXR8aqPS3JzFlZtvoArk2Eyi44qrjAQRJX9+jHbkeB RIp3Ph9NBP0onyaod103SmG62dEKd/5pnfBNjUjnVnN7fh1QuqM+O5eDCCg4exytX+Gs j01bn1oAP9jc+q5EB6f/S0Jm/1e1MDQu//yhZyUreSKlfhP0EXpx32AxwyKxP3z4olN1 i8IUVKo1S7Hh+oYX5ZUE+CxdK9XPnYesKxLGGYPJn4r8M/FhpxMcWvZ8Th1d+1Rmpoih Idgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FnLwRXOuXy6dnqYiToFBB+wPVLAqtjeZaDuVYVbd0vo=; b=SmQAOZal0KuWUhYyJd0ad+e0m9HmqvSqaIefbzG2XIhYnmMmmqwCXBLTrORa+eNE48 t1EcT/gmFBZCuzIsz9SxM4HFPDjLWVWTLxmD5H0GqYd+mtxCgC25GmWpB5l0nz781DCh 0/fxmuV2k/9Lm+RWI3gFFLr6FFa27E5ksH5XaUsfivXUxHd2pWqo/2Er7PQx1Ir7yIUM H3P5Zemh+ncIgCodrCU1e/tud2i6pi0xPzjKMSlkK7xCwACT+9+fOfreAYfQ/huEYWMA 21qkHJkmgUXmaX/AQBK+sFMRlMBasnvhz5NBbPmgye0PlqgwWcvS+uNRj2WG+edRZZxH yDyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ue6l9ezE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si4681041pjj.135.2021.10.12.13.44.47; Tue, 12 Oct 2021 13:45:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ue6l9ezE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234902AbhJLUpX (ORCPT + 99 others); Tue, 12 Oct 2021 16:45:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:58686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232986AbhJLUpW (ORCPT ); Tue, 12 Oct 2021 16:45:22 -0400 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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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