Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp29561lqf; Thu, 25 Apr 2024 20:36:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrrltGQ/xhly+Az3YOXcVLtlpJRc6Y5X6zY+tazaik3GKJcQ7j66pIcT+Os3+Trg/+4jDBVXlnDSQW98O7VzMGvwNhvDsPhu4lKMi7nA== X-Google-Smtp-Source: AGHT+IFwl78A9xyV8tIh3gr1mk6mwmD+JnTy2zbRbPTG+I3t2usiDNJK+W30i7McxdyGTrr0HABb X-Received: by 2002:a17:90a:bb84:b0:2a7:4e38:70e9 with SMTP id v4-20020a17090abb8400b002a74e3870e9mr1465194pjr.13.1714102589257; Thu, 25 Apr 2024 20:36:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714102589; cv=pass; d=google.com; s=arc-20160816; b=QJi5PNGF8UWn96T1mLNlcjMpCUqHkMbMahspNinNsm3iVlinOtVx45uxj1uAjbdO+R FDeFZSqvyrFWpr3hIxBeWY+HTZe1Sr0taWqzVT9kBv9KsFK/BpQCBbrtTRMxAKXx3KOp wddQBzni26H9jZkLHkSpe8gQr4Ccl6tfz4XIGtZymy6M52iikAk0dosXfkZpRAlnq5s6 xWxJIkMsfRX4jhl2x4ytDHl84HZSh0Vdrg0z7u8eLSvGCq3ct+lFlirhzslDYvb2UADL F80yek69kDL/lUJTf4DYiFAvTb18RoWMoZLig2NKou5LXcWb+MXWobiZhKOwxm3Xb95O UlhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=lq3jgwFI2eK/AqWBdtP6e/tZJSaoaYtrwOh2KTK58ww=; fh=Jaw2Qk8U9JRf8gxDbW6mc8j0fHac2sLHt67RtxJfoJs=; b=uTGdDW6TluyYvSXvCToDO/XkwdnU6bIqr9MBe8xmCmLrHGfiFjp5UbtAA/xHVlVIXF q+l7lWHmWP7vqU4CAE5u+Fue7cv4oRM36LK//779T7LHd5v3myltTCcj/9sNHe4OxVsS btU18aUSL6mu0jbGODVvRjJi0sSaODiORuxi0gY+Wmp9BzaqnXJsPEE/A2SK8N1aVDFP O0Q3v9oVDjoBPLdiQCR/R+eORFpN2aSVv9fNFxVcPSeQnhYPw/LGuFTuoxZ18y+4e4W/ sXOsJSxi40U17RRbWSKLvLMFF9i0urhAb0WU01wRXXMI/lii+q/tubmMPxDoVWnRNph3 kefg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="n0/t/b22"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-159473-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159473-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a2-20020a17090a8c0200b002aed8519acdsi5408061pjo.107.2024.04.25.20.36.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 20:36:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159473-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="n0/t/b22"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-159473-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159473-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F3CB9282DAC for ; Fri, 26 Apr 2024 03:36:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D4FC78C6D; Fri, 26 Apr 2024 03:36:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="n0/t/b22" Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (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 C82E778C66 for ; Fri, 26 Apr 2024 03:36:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714102565; cv=none; b=KogthuyGHKCG638TA1bH5McWPmED2f5dxmpZA0ZqyFctCkhd/g7KWh1HpvREasnOEEnj/seg3PWNj+fgRjJk5xHZQImZWTfdEaifMwRSgtnayW1MquKD1kNe8nXIirwRcmihTbOzgiukrQ+Fn0ccFhuKJWlvIkFRMPNPQTQClg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714102565; c=relaxed/simple; bh=Fisk//vwkHKDONtGyDN9Tu18w9nNBcCShAzfkk5gOR4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dOcR1KsvZOUwBbsIQTnGQHSq/b5et5N23m7ktJngg1VYPfgZE2717BXnmU72rgDazb9YOgZ4SvBk246juZ1ZB888l9rj14ahU//7jES7mZKfFdvRJP7P+uvy2g+8W4I8bA8NC6Ly1eEzG5vwcEI0668f7S4hVnp5kb3MxUziIfQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=n0/t/b22; arc=none smtp.client-ip=91.218.175.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Thu, 25 Apr 2024 23:35:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714102560; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lq3jgwFI2eK/AqWBdtP6e/tZJSaoaYtrwOh2KTK58ww=; b=n0/t/b22wNfnfb8kn3HKpoqJIT2HgbpGFQFvB0fPF5W1kCMBBJh/oioE9zEBOOKEY8ENDH BdbxgZ0l0epQSInQ0e8AS1RzHYvqUj6cKIWbiuN3qRQMtywrBwNCZtkYINLR9HIKUnCiM+ JMsj2hnyJlzxPQuPWIP59dlq5gTlCLI= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Matthew Wilcox Cc: Kees Cook , Andrew Morton , Suren Baghdasaryan , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] alloc_tag: Tighten file permissions on /proc/allocinfo Message-ID: References: <20240425200844.work.184-kees@kernel.org> <64cngpnwyav4odustofs6hgsh7htpc5nu23tx4lb3vxaltmqf2@sxn63f2gg4gu> <202404251532.F8860056AE@keescook> <20240425164718.e8e187dd0c5b0a87371d8316@linux-foundation.org> <202404251740.81F21E54@keescook> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Fri, Apr 26, 2024 at 04:25:40AM +0100, Matthew Wilcox wrote: > On Thu, Apr 25, 2024 at 08:58:34PM -0400, Kent Overstreet wrote: > > On Thu, Apr 25, 2024 at 05:43:33PM -0700, Kees Cook wrote: > > > All this said, I'm still not excited about any of these files living > > > in /proc at all -- we were supposed to use /sys for this kind of thing, > > > but its interface wasn't great for this kind of more "free-form" data, > > > and debugfs isn't good for production interfaces. /proc really should > > > only have pid information -- we end up exposing these top-level files to > > > every mount namespace with a /proc mount. :( But that's a yet-to-be-solved > > > problem... > > > > It really wouldn't be that hard to relax the 4k file limit in sysfs. > > It's a lot harder to relax the GregKH opposition to multiple values per > file in sysfs. Which makes no sense for columnar data.