Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2987038ybk; Mon, 18 May 2020 12:54:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeA+7Xj/TTqAFufRggyNxf4zE9kHVijjhRWbhASeB736vMXnSMmY7ypM7qT69Hca5ycwYR X-Received: by 2002:a50:afa3:: with SMTP id h32mr15503584edd.63.1589831664159; Mon, 18 May 2020 12:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589831664; cv=none; d=google.com; s=arc-20160816; b=mqyKCU8gkbbDrrD9kN5NMVoerwAB1tqGQbOoGT3BCg7STgizRNh5LkJH0f14beBaMQ I3ZZhlI5Yf9aaGyH6WL3a8mfY2i0ozNRfGxPBn641qsVFb4vq77DW6HCo1F1Ety2JPw2 n+SBpblLffV0jL7lSo87rurB9qpDoc6v6c89hklg1njyHUUXPY41XoXdSuwNIJXHhYlq x9yeBke8sh7tZ8XcuLWTsW6xwfEcq0EJsjexlwbDDqS3g9lcrz+gyhZOTR+g3GyFZ8rI sZNKW4B531R9gy+Le7W1WjPu66aXt2B1zwqVEmPXVoHmFgHOnFdgCXSWbwSjRaFxkr8x SqNQ== 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 :dkim-signature; bh=Q9RvB5nbI09wHpLfw3yLJLanIbQbqsip0Oo5ChvdNdM=; b=igXAwzc/uWxjACaXk1/WxaICvcc8/zShdiW8qMpBYHV9Lj23DZ4juwP72uJMUaaYYc ZjddfYd3jNww126BywcbhLkzMGnzqtdKQKn5jZlcCLh8gow2y+t/FJhjm5JFvnQhcIKU E3slG6CEoz9w2gz6i/teWFOzdUC6p+PmhEQWlDVj8/cKFIg4LhVfPz2CqX+yr1Y8Fi4+ GCvWPx2424tQxJN146v5sdvQb/QqToQUjcXt+XF9tzFDlGZP2XMNa1gGxKkUNPH5aVFt i0ZNl+Y87Nhzsu1WrO9fpKwtzjvrz6RKFnyrNNiH403TZfW3Nd5twH0CxNawrCrShFJM w9SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="QHkMv/We"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si6645920edk.69.2020.05.18.12.54.01; Mon, 18 May 2020 12:54:24 -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=@chromium.org header.s=google header.b="QHkMv/We"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732376AbgERSRw (ORCPT + 99 others); Mon, 18 May 2020 14:17:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729764AbgERSRt (ORCPT ); Mon, 18 May 2020 14:17:49 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF182C05BD09 for ; Mon, 18 May 2020 11:17:49 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id f6so5229735pgm.1 for ; Mon, 18 May 2020 11:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Q9RvB5nbI09wHpLfw3yLJLanIbQbqsip0Oo5ChvdNdM=; b=QHkMv/WeF/pAoW2hxh1xX1qlre1qL6s8OM9laV1Dprb2X+Kv+QDkyRApG+Qv54H+xi mFtUOtyNXm76nMSWE2RvWWDyrdZ8YCY0Aln67yOEVQrVfwph+FoiZfxlbucNEqpnQfzl oHDRJomHU8uO4ZYiUHp5YyuxUewGtX/XVK1BE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Q9RvB5nbI09wHpLfw3yLJLanIbQbqsip0Oo5ChvdNdM=; b=LFPZ924aGqpz1aP5MdvdI4rL7blhrL6P6jEy5Bdv+qNuT82d29ywL0G1iqMPMCkHWH EHkQ22PNq1b/oGTGa/SX4X3YmWSS5dZn0+b+jrIiXC40Va6/XdQeVAfyIoB2YyX2SPJj ap66aTbkM+0zRKucnsEdPK3YQMIxMHvEz8X/C4+LPq+sis5Cpp5NKz9d3snTie8wza6Z Eoq/06J3WBv/s4bxQLzvQii1fOc6nssGhIrqXGDFJfyhmTx67XaRuM4oW6InKN3T+HBp VZzvC72Tsofrkuf6GtE9gT6e4DMPxD5VrQGPrbCdBBvPSqW1vVeB1x7bIoSBbEMOgO/0 F4RQ== X-Gm-Message-State: AOAM531u+o2r4SabC5mcPI5Nj98YouD/Uc7UgJutqeeG7UQw9QOgBo9t kmN4Us5K6azMtsUnlxpi7XAxbQ== X-Received: by 2002:a63:3c17:: with SMTP id j23mr15579357pga.343.1589825869244; Mon, 18 May 2020 11:17:49 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id w7sm9014646pfw.82.2020.05.18.11.17.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 11:17:48 -0700 (PDT) Date: Mon, 18 May 2020 11:17:47 -0700 From: Kees Cook To: Luis Chamberlain Cc: Xiaoming Ni , Andrew Morton , Stephen Kitt , Iurii Zaikin , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sysctl: const-ify ngroups_max Message-ID: <202005181117.BB74974@keescook> References: <20200518155727.10514-1-steve@sk2.org> <202005180908.C016C44D2@keescook> <20200518172509.GM11244@42.do-not-panic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200518172509.GM11244@42.do-not-panic.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 18, 2020 at 05:25:09PM +0000, Luis Chamberlain wrote: > On Mon, May 18, 2020 at 09:08:22AM -0700, Kees Cook wrote: > > On Mon, May 18, 2020 at 05:57:27PM +0200, Stephen Kitt wrote: > > > ngroups_max is a read-only sysctl entry, reflecting NGROUPS_MAX. Make > > > it const, in the same way as cap_last_cap. > > > > > > Signed-off-by: Stephen Kitt > > > > Reviewed-by: Kees Cook > > Kees, since there is quite a bit of sysctl cleanup stuff going on and I > have a fs sysctl kitchen cleanup, are you alright if I carry this in a > tree and send this to Andrew once done? This would hopefully avoid > merge conflicts between these patches. > > I have to still re-spin my fs sysctl stuff, but will wait to do that > once Xiaoming bases his series on linux-next. Yeah, totally. I don't technically have a sysctl tree (I've always just had akpm take stuff), so go for it. I'm just doing reviews. :) -- Kees Cook