Received: by 2002:a17:90a:bc8d:0:0:0:0 with SMTP id x13csp1481200pjr; Mon, 18 May 2020 14:16:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6T4DAOeU4LTruKeHBayR630mfCTLF/nYvGJ4TlQkhw2iurR+TaiXhrMA/BRJrjmkfJ0hN X-Received: by 2002:a50:cb85:: with SMTP id k5mr16001776edi.152.1589836585265; Mon, 18 May 2020 14:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589836585; cv=none; d=google.com; s=arc-20160816; b=T03ocpnZbwSKHIsy0pKrmEAnpCc8EA4p5yJZeNApXH0GuZ7RVVEH+YF2q54Z6WTm8h V781s6PykDzUIcBih5x9s1ZhkTfPs2zeq/vuU+pai/bFvF+bK+quR34NtMWydYApFmGS BqRRFiLbzw7eZQbK3eyTdtvCoXo8gal0jsoFpXRzz0OXb+wrtbR7tmHvhHeXUS+8eTx3 UUKpGB2ZhuhqIPxA3x3KI7bDz8eytvlE296eIZH8EdAMqyQmHrKoK5MRz+TLJMqiD2PZ Km1AmN4F+ebpFfN+iWAcjD5M8OQlZAbN9RIAo3mzfDTj62NHZdfkCshe/0DJ1hYVxACB S4cg== 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=iOTqBFjbUc15JVKUZQ3fGM2L6h0BsYo4USOrm5zOjvU=; b=N3ZIkaveRXNjA5YUWr6NXjV3h8bAxDsE+JmDfRHE7ROqT4/PjVx5/xIcozhiHSTpch PwQ+9YaxwKiZfHsMB6wxY5/KRwAFLyCSE7wbgWVSrU3eILSZDMZWol6tYo6yiXuikEHJ gOHQ0C9GArl+nqc/Vg93T43N8z+7DQxc0lG2TO7ub1sxtpukyNo8DZ84pKHzYgGKpLfN D9/DcLiVpXDdFCEE5tB8mcUMNQbIHq2ZLb8j7CrMd+mv0Wj4ZkqrtHM3QPbKkCUg3Uam +ATJZyuT542lnN+FoInEKJFM+6RqJsKaFd4fREoBMqqfqWsw7Cr16snqYQUUtHPwVZxN d6SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QyJ2yabW; 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 gl22si7374754ejb.297.2020.05.18.14.16.02; Mon, 18 May 2020 14:16:25 -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=QyJ2yabW; 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 S1727944AbgERVOP (ORCPT + 99 others); Mon, 18 May 2020 17:14:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726250AbgERVOO (ORCPT ); Mon, 18 May 2020 17:14:14 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AB92C061A0C for ; Mon, 18 May 2020 14:14:14 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id ci21so405267pjb.3 for ; Mon, 18 May 2020 14:14:14 -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=iOTqBFjbUc15JVKUZQ3fGM2L6h0BsYo4USOrm5zOjvU=; b=QyJ2yabWgeLSe3uhlxGEGCdqXI7GGUQMHdHhZaMMgw/WkN7Ij2ODRj0KXr2ScfSqjB jy/FL1DUlvhZhUope/ZuuMXh4KneVfXf2MmI3mlhTREqRQ+7xz8aAy4xZmKt0svsG2Sa +2I9yrT7Ek3YJ30F1VDFRrtaLFmPpqUusgWm4= 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=iOTqBFjbUc15JVKUZQ3fGM2L6h0BsYo4USOrm5zOjvU=; b=QToCOJTBR9cPW06OC1QqUna5EwXc6a1u09/P1faldOEm3FKU3Nbkhk/5Zwar/p4/PX QmcR+uAqd4aWivfL07STHL0DuRU3DwJ+aAIJGI/CZq4n4p/PACGRam6wRIO+DaJO2+J4 5DT0UXu8a5OaoCxDQO0ghG+O/Ovb8Op8uOhbxOxSPwJMQd7szYHwmQNiWXip3bzIB0SP YTtGJKR0hjai6uUdMmqDCdWbETCDOWeC1drFFz67v8d+LYVzAit00ppFaEHOfzchmjAE EA+h9RuRQuJ8booffq22Ihz0HzJZcR4AyKdphXDKpZpU8dkMv1ZHcWhJVSliPu4Ei556 bIzw== X-Gm-Message-State: AOAM533PI/DLI3yi1HmOejmFYnX5Ej/U7Bpiwh46ybD+Xhp2sLD3oOlb bgeIvt2o+st+0NfEiPRct+Le4mqgfjk= X-Received: by 2002:a17:90a:8c83:: with SMTP id b3mr1395133pjo.141.1589836453742; Mon, 18 May 2020 14:14:13 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id k4sm8280834pgg.88.2020.05.18.14.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 14:14:12 -0700 (PDT) Date: Mon, 18 May 2020 14:14:11 -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: <202005181413.A9A985574@keescook> References: <20200518155727.10514-1-steve@sk2.org> <202005180908.C016C44D2@keescook> <20200518172509.GM11244@42.do-not-panic.com> <202005181117.BB74974@keescook> <20200518183055.GN11244@42.do-not-panic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200518183055.GN11244@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 06:30:55PM +0000, Luis Chamberlain wrote: > On Mon, May 18, 2020 at 11:17:47AM -0700, Kees Cook wrote: > > 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. :) > > Oh, I don't want a tree either, it was just that I can imagine these > series can easily create conflcits, so I wanted to avoid that before > passing them on to Andrew. Yup, that's cool. I happily defer to you on these cleanups! :) -- Kees Cook