From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FCF4190462; Fri, 4 Apr 2025 08:41:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743756091; cv=none; b=Q2XHnIC9+GNzwDv0mUdmFl2bmrSFhMMC+hEY9rEtzON/mGNTv3uN7vesge7v+HctgQERXig42MtZDP8Oi60r9jKRcJ7zXDsPKBpZdJ0vfy59DzSEtPEW9KXhCrqYXJ9u0iPiDaTwYMNtFK6id2cJx4RAR35K7W1bhcCRxWFRDoo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743756091; c=relaxed/simple; bh=RBISfYxq+Tt92jGYsQSu/LEo5kK/QPuFRMtiyjl9NnI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Nr8ReJRbw60tRrEAOpO/nTouJOx6U89k3s6xIFB2LhbNiiycSGaStGO7dJMZasrtEuv57Gb9LB+7ENBlwWQauM2HGVHN9J/9lbjlS0TAHpYNXN1bdOr7o5084eZ6fo/P+JYD6lnDdv3trPNTPH3SKiG1QWAKglYOFcZx/4ke8v8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=xrkeCsbF; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="xrkeCsbF" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=hfehnCfQM6q1kv57vTplEJ1zzuNM6ali28S5Ie+bjJw=; b=xrkeCsbFAdbec+iPrIUS6dSJKf PJ3zTWXW4LSPxtqiSGXRBaIyBVd6ZrIN+0snan2M5KES0r2gVec6tWofV0kfoiue/iN2xGCKLmy3v NO/V6b2VTdEHMrjmw84Jm3bnq0e3/2O3J5/FkDHqS1T3+SGNgyMznzPVv3YggMLrOalJR9YS/4GMS 7EwiK5wjjCrA6w83nKJCw8MhIKcniUsv3EL5nhHcolNYC4M7VnS/YSeLRQIi6FBmNStYVwpRLOVrJ OoktbceTFJ/x3pSES82/74eOgm76bSBd53N6YThxnNxr0S+gR49abY7pXkURfhOBnyAMY9K9WobSr OlynjY/g==; Received: from hch by bombadil.infradead.org with local (Exim 4.98.1 #2 (Red Hat Linux)) id 1u0ccB-0000000BAwY-1Smo; Fri, 04 Apr 2025 08:41:27 +0000 Date: Fri, 4 Apr 2025 01:41:27 -0700 From: Christoph Hellwig To: Andreas Schwab Cc: Mateusz Guzik , brauner@kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 2/2] fs: cache the string generated by reading /proc/filesystems Message-ID: References: <20250329192821.822253-1-mjguzik@gmail.com> <20250329192821.822253-3-mjguzik@gmail.com> <87h63bpnib.fsf@igel.home> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87h63bpnib.fsf@igel.home> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Sat, Mar 29, 2025 at 09:53:16PM +0100, Andreas Schwab wrote: > On Mär 29 2025, Mateusz Guzik wrote: > > > It is being read surprisingly often (e.g., by mkdir, ls and even sed!). > > It is part of libselinux (selinuxfs_exits), called by its library > initializer. Can we please fix libselinux instead of working around this really broken behavior in the kernel?