Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2690093ybz; Sun, 19 Apr 2020 07:23:58 -0700 (PDT) X-Google-Smtp-Source: APiQypJrsEzo9cO8ZxIlAxhKy2Pvl7iiZbpBBgF6Cln7UrFVtScFJJXFtJAmo7JS6Dp30UW27fP1 X-Received: by 2002:a17:906:7d02:: with SMTP id u2mr12039300ejo.48.1587306238491; Sun, 19 Apr 2020 07:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587306238; cv=none; d=google.com; s=arc-20160816; b=BsO+/79mDajxqmZAS5VNlNg+wcXw9OZg0MCmIm4xlcQq91pxgzjSbVLG/ps/8IZlde ua7iw6VP1F+bTjrV97aXBANyxI8x1KZJ8rlZJIMxziBO5vMbMbLJaPU3FFZg7jGC8Ly/ 72LH16bPC2QEGYgTwx9mfYqepa8gP3r38RVbV8WR/cu+b7NIELb5R7kqVQwWHIBFSU2n KVSARjL9A2tmCGmlXPLlSCyikznH5VvIA1x0bRvHukiJublBi1Xv6ZvqbCUnqqOpVy/O PvScgKYEIawdyEAd63aytZnVVBDwE8aJKqjH+DTo/ChjTjjXfIV/bHKRIQy2cfWafYZt XJFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=7Rrzm9tuiyCjRdP2CgllZKMlaMa4k9X6gArYxP4+e4A=; b=kSTbEpq5O42+2qmBnsrpwxiuAj4lKdmcmw8JcLrm41c4f/Mv3QJqSee9C6tDEu5lFo BZHb0yXK4VaULaFZgnaWVrYTlJHohyxJQ5w3qLvT1pIrDPCUQM5X1OGFghx/Beqn7Pyn IOgGRmkMSGSpp5KHfE4gZn2egpLNvMthxfgw44+L/SS4H5Kk1yebltoFe52+UuFvjbnG BKwqx50Ktgd4CH6wk4ht9K34n5xOBQoWz74GbVc3gRJzFO3lafqfmh8w2SbWlyu6gF0E jFV3knl6AK5OGVM3jf/VcTmAJTVKWgUTTs/oCsq4Duzs4rsuP2BwYKbCIco5JD9kjdcO 3qoA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f23si9817643ejf.414.2020.04.19.07.23.35; Sun, 19 Apr 2020 07:23:58 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726416AbgDSOTY (ORCPT + 99 others); Sun, 19 Apr 2020 10:19:24 -0400 Received: from raptor.unsafe.ru ([5.9.43.93]:60052 "EHLO raptor.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbgDSOTY (ORCPT ); Sun, 19 Apr 2020 10:19:24 -0400 Received: from comp-core-i7-2640m-0182e6 (ip-89-102-33-211.net.upcbroadband.cz [89.102.33.211]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by raptor.unsafe.ru (Postfix) with ESMTPSA id 4282B209FA; Sun, 19 Apr 2020 14:19:20 +0000 (UTC) Date: Sun, 19 Apr 2020 16:19:15 +0200 From: Alexey Gladkov To: "Eric W. Biederman" Cc: LKML , Kernel Hardening , Linux API , Linux FS Devel , Linux Security Module , Akinobu Mita , Alexander Viro , Alexey Dobriyan , Andrew Morton , Andy Lutomirski , Daniel Micay , Djalal Harouni , "Dmitry V . Levin" , Greg Kroah-Hartman , Ingo Molnar , "J . Bruce Fields" , Jeff Layton , Jonathan Corbet , Kees Cook , Linus Torvalds , Oleg Nesterov , David Howells Subject: Re: [PATCH RESEND v11 7/8] proc: use human-readable values for hidepid Message-ID: <20200419141915.g4bdjbwvhpre7mra@comp-core-i7-2640m-0182e6> References: <20200409123752.1070597-1-gladkov.alexey@gmail.com> <20200409123752.1070597-8-gladkov.alexey@gmail.com> <87imhyaq5t.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87imhyaq5t.fsf@x220.int.ebiederm.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.1 (raptor.unsafe.ru [5.9.43.93]); Sun, 19 Apr 2020 14:19:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 17, 2020 at 02:05:50PM -0500, Eric W. Biederman wrote: > Alexey Gladkov writes: > > > The hidepid parameter values are becoming more and more and it becomes > > difficult to remember what each new magic number means. > > So I relooked at the code. And I think I was misreading things. > However I think it is a legitimate concern. > > Can you please mention in your description of this change that > switching from fsparam_u32 to fs_param_string is safe even when > using the new mount api because fsparam_u32 and fs_param_string > both are sent from userspace with "fsconfig(fd, FSCONFIG_SET_STRING, ...)". Sure. > Or words to that effect. Ideally you will even manually test that case > to confirm. I will add a selftest for this. -- Rgrds, legion