Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2797748pxb; Tue, 12 Oct 2021 13:46:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHoMBJF4OnltJxLVS93rBVQc3pc02xc3NtDxhM/STYwJaJy8G4cXwLL4UJdRbTbss1yepO X-Received: by 2002:a17:906:1bb1:: with SMTP id r17mr35076837ejg.533.1634071604329; Tue, 12 Oct 2021 13:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634071604; cv=none; d=google.com; s=arc-20160816; b=TT6eP7gzdIucvXFmJ3Eo7KX5A4PhCDpUlW+SCj0/Ho7qZwj+5AMIgNA1b7BD8M7qQg A4ugISMzKPJtcIqWEHRaiZolLKlSR8TEIGorr/x/g9X/TRM2NZnO1IHjGMQsAYkV18EO WfykRoUv1p052q2DTul013ed8ufeVbfRiErrpnbDUPEyY8DuBtZDkmGeetLP7ybOUsGO Yp9o5op2jsgrhNsHflMva7cI4AegtVdm10Kb/32txsD6X0+UX8Z5/eTnTi4+QQ6IEIKm /zo1fuBZ7GZ8YLsZl0TeMQ2Y58Nwz+fkBcVQOCUFKjsswOAvWp//ZehZR7dQPgytvXSF 5L+g== 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=aAvBisvD5uKvA5RO7yB30BmmbBzJB0pVdHhzuc6Jf8s=; b=Oie53BBGDp4yh8tx7Q0H4A0IA15IgilHkNgIxXG47+SmeCtu7EA5NAH6medp+JN29F 3YFDnGgsXc8LnvpDR5gb/ssWQLMnvuy1G318iuwmcDUQ/FlhfcltFjdaqMn6JGG6lWgH nH1QPNX5GlSyo6f4jn4AB3hutiESC9XJ8IwFDmM7oFbiyVwIXJAyYOD04VKrKqfBozmD Z7xeRY33hahYrMfm24kmIUMrvh7kM4wxLywLIXlBdt9JJYnDiWr5ZxA2de2R+ty26lmb 9VVWiDR22W4+vKC0jsLiZreKSzcAieJVi7FxK0zQDtM7rQWPRBAUDwNpmz513WoZlF4T 09vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uEThPios; 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 gb9si1009866ejc.301.2021.10.12.13.46.18; Tue, 12 Oct 2021 13:46:44 -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=uEThPios; 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 S234787AbhJLUpy (ORCPT + 99 others); Tue, 12 Oct 2021 16:45:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:58830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234757AbhJLUps (ORCPT ); Tue, 12 Oct 2021 16:45:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CA12260E09; Tue, 12 Oct 2021 20:43:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634071425; bh=q61LoQrLGHHMBvmawEYfkt6DnUrNORR1prK1fiM18ZA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uEThPiosyyrbJ4oy20wf2VLQNoPPVJxrr7w8jRKgrJSKn2ukj1kohMQza/+0d2pO6 yRlD2jC0/EsF1SWAMF48Ki40jtsW7eaR636VJgs0TZx2XM9ppxGfdvjPJ+WX9I0hkX Xrl9rq7ZnGE0t7KObzY2eQXdnfvyvIgJrMI8WsnbEgYh0DOSokYebdUXO9iCTiZo1h 8rD2jFMIJiQois0naFz2COeKuhTPyem/pK5xhXlMqJixUPECLB1P5smrct/KJxbCYT pNrCAC3uZzAhusWCSxT8zpVXHk8teiGxxkqt7mgQ74BqK7N2NVtg2gVWvlfQJ2l/Rd rGwbXgqgNuHsA== Date: Tue, 12 Oct 2021 13:43:45 -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: <20211012204345.GQ24307@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> <20211012204320.GP24307@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211012204320.GP24307@magnolia> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 12, 2021 at 01:43:20PM -0700, Darrick J. Wong wrote: > 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. Also, the obligatory Reviewed-by: Darrick J. Wong --D > > --D