Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5286925yba; Wed, 10 Apr 2019 16:01:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKM1NG4RuMMAeeTAqb4Y5irdMt6KCTmVssKoS46AWrnhz+JNGnlOsaHglm4Y65fRiUJ7sv X-Received: by 2002:a65:5343:: with SMTP id w3mr43410292pgr.232.1554937273461; Wed, 10 Apr 2019 16:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554937273; cv=none; d=google.com; s=arc-20160816; b=y32zMQrbQToJ3hXhRqGDDUMo5NJpjsFqxEiyN7d8RhRKpIldcuAAy9C/Q5kDMW2iL8 y5HX4ODFcAaUIJ+Be19nOObmDPOXbIQ9MOAnRq0zKrpBlKwFO0cCxlGHw9csPOTeOw+F aS+hxGp+hk8MbCyvrxEIVxYrqtTjaCIAYC49QBQDJ7N9PZ6iGCH4+YXJsyM+c16G08HX RKLVLjyJus0M2WgNbff9xqtAzOqEORkWuh83DeQoCJ4MCWH5IKST6h+2r1kiQdXmw/Py BNogM//x69DZQN58JELcrxsTDzAkNFpKPBwXacZ/ieyAmpH1GbO4GeAKjrwNpxq3rByz R0sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=V/mnOiistNskyNyWzFJ110XGM52BtYbw7mnMXoOf9ss=; b=CQLA1UW8E2G7KUZoBH6whaKmI7QNvKudBmogA/j3QprCGcv6R9i7MN5/dp47ZBmECI yKNG0xa++8ss0u0fzUd+5gzOH+a/Yqa89N3JbjlotGyFWla7evKIUNpuJTKi4F03ryWK JrlXpWpkmQfiz6Qm6RJlLJwO19Ls3EMhI4L2W0ixFBnHF7sM+WyHnAU5YDGGLgCr4pjn oa/vd5xZ2b9vP3+NlZRxh6uSE6vom1lW0A4zcuDXrgkngIugA9JJua+/kIPBB+VS+0hU HSX/ViTsRbPeot+8lhyGQedYj/IcK7u82Lh53WVsRCSZhX3EaMWjzs4w0q3uQ7MRE3op anNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fiRbnxmF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l66si32731671pgl.474.2019.04.10.16.00.57; Wed, 10 Apr 2019 16:01:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fiRbnxmF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726680AbfDJXAJ (ORCPT + 99 others); Wed, 10 Apr 2019 19:00:09 -0400 Received: from mail-vk1-f193.google.com ([209.85.221.193]:37231 "EHLO mail-vk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbfDJXAJ (ORCPT ); Wed, 10 Apr 2019 19:00:09 -0400 Received: by mail-vk1-f193.google.com with SMTP id o187so959340vkg.4 for ; Wed, 10 Apr 2019 16:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V/mnOiistNskyNyWzFJ110XGM52BtYbw7mnMXoOf9ss=; b=fiRbnxmF4EUFn5589zrjF8mmaXq5M7XTmHAYNR8VIlPO5hdvGO4J901KeKS8ehuB9u sSFMnyWDz1LaxmPxuFgwI1ajPAV+oyVGmAtgV4/ByPP8Okd65v1lsbRBlpMEwORppXwt fYH3kBjdxPwDR2nSy4EjhX+IqBMADhWhyBnps= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V/mnOiistNskyNyWzFJ110XGM52BtYbw7mnMXoOf9ss=; b=bHk6n4yvFmsOT5gDW2tLWkJLpp4JVfjbCxhs3R3aUTk/khIZUtgkgqQno0N30Jq7lF WWndrDwEFtz+5zJw6Cbm9CIZdaPnX4ZTFa9qwtH73p2mAFPsZnZyQk/E/n750j+S3Ytz a1Y8rsDvQcfFSYGFVFmZgCWZFWjqWhsjZe+Y+g9x3DKEjqjvtrZ7VEtBwrGDaRcsDySh 0AEYE8VEhB/ddwT9Jprq4+/nu0j6l9IKzOEJl5Ro7CONKAahrhkh9ydVOuEYqxKvn2Qv Z0Z4dHIjZxuFOBNHoYB4+IXPAJkCeV8zSTB2vJ/y0ATK7qeFY+7ingND+33v+4kzQH+W 1Biw== X-Gm-Message-State: APjAAAXfDIdf1c9M9DE4sV70vKdg7bK2K+BCD6Ab80vJW7sdMGQVynIc Ap6BL0X9VjAIBz087CpBJ3QP5C8BGL0= X-Received: by 2002:a1f:2b8e:: with SMTP id r136mr25471936vkr.48.1554937207890; Wed, 10 Apr 2019 16:00:07 -0700 (PDT) Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com. [209.85.217.50]) by smtp.gmail.com with ESMTPSA id p12sm4545108vsc.30.2019.04.10.16.00.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Apr 2019 16:00:07 -0700 (PDT) Received: by mail-vs1-f50.google.com with SMTP id g187so2362339vsc.8 for ; Wed, 10 Apr 2019 16:00:06 -0700 (PDT) X-Received: by 2002:a67:76c7:: with SMTP id r190mr26927257vsc.196.1554937206551; Wed, 10 Apr 2019 16:00:06 -0700 (PDT) MIME-Version: 1.0 References: <20190408220925.13077-1-mcroce@redhat.com> <20190408220925.13077-3-mcroce@redhat.com> In-Reply-To: From: Kees Cook Date: Wed, 10 Apr 2019 15:59:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] kernel: use sysctl shared variables for range check To: Matteo Croce Cc: Andrew Morton , LKML , "linux-fsdevel@vger.kernel.org" , Luis Chamberlain , Alexey Dobriyan Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 10, 2019 at 3:54 PM Matteo Croce wrote: > > On Thu, Apr 11, 2019 at 12:34 AM Kees Cook wrote: > > > > On Wed, Apr 10, 2019 at 3:30 PM Matteo Croce wrote: > > > > > > FYI, this are the stats from my local repo, just to let you the size > > > of a series with all the changes in it: > > > > > > $ git --no-pager log --stat --oneline linus/master > > > 2 files changed, 4 insertions(+), 9 deletions(-) > > > 2 files changed, 7 insertions(+), 14 deletions(-) > > > 6 files changed, 15 insertions(+), 30 deletions(-) > > > 1 file changed, 16 insertions(+), 19 deletions(-) > > > 1 file changed, 3 insertions(+), 5 deletions(-) > > > 3 files changed, 15 insertions(+), 20 deletions(-) > > > 12 files changed, 93 insertions(+), 116 deletions(-) > > > 3 files changed, 98 insertions(+), 104 deletions(-) > > > 2 files changed, 9 insertions(+) > > > > Tiny! :) Seriously, though, I think this should be fine to take > > directly to Linus after patch 1 lands, or see if akpm wants to carry > > it directly. > > > > -- > > Kees Cook > > Nice. Still as an 8 patches series, or squashed into a bigger one? I suspect a single patch would be fine, but let's wait to hear from akpm. -- Kees Cook