Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1443743yba; Wed, 24 Apr 2019 23:06:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqynjmJKvcaxjVvSXv7U1h3CHtmUCrfQaPJLqLTmMn5yGUfUVwLhPpne4NoF9yZ4DlQJk88S X-Received: by 2002:a62:3849:: with SMTP id f70mr37682183pfa.46.1556172400806; Wed, 24 Apr 2019 23:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556172400; cv=none; d=google.com; s=arc-20160816; b=to9DEoGz7hcth4heNaip2ERjhNVT8BeBNXZjnFhLYqwUyDWbFfUEuaVlG9teQ72CR4 F7tvuXKC0yCqeuo2rTeRYSWEJ9CroIU8Gzr0kO6/3T38wB5TTXjDs7d1BVZZF2Q4E0L5 8/W5y+sYCo7slCJ8dNcLjYKT+Zrzy/kp4pKgIJN6is8B975KYRDWzL5RDAUsz1+FKdja Q4URl+TBXtyEqUnFTwy+BSs/XMWrsqUKJyjDexuj7NBQVO/gIu6hcEgnfBSie571U+xT c11tA5nkpyTe52CX9cz0A8LiLdVqZfzJEofRjMcn8/1kIBueZw1m+CG5UgShNp7hJb/F Qr9g== 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=BYlYZIp9lVnO/LNggOaWNdZ4LmpCU45Xr9GtlfTw+Ig=; b=hvShAhGoifEIH7kWcMWAmcSDljreyUVh4VEUL41i/VfBjEP5UYG99AMxswoQfP8Eum tgjQCmHU0HZs7va2OLrXigQR51jbiSVWDwSNJ1Iuaht8cWnle0ndIxNTIv4CvzlEsBXC 2ApEwq3xD8JewQpW3UnmKOSWvZH+LEfJc5ut9EYMo7xSrJnklFqS/0y/rmvU3vrJlLz5 gGDqb9Gu7UlyLR1hgyQ7PDQ+kysaWND8GGRnzxl8EcPO/glbdOgyBs4LiV1ksvsM7Kg0 EnqiIeb4tnCgFxX2KsWyyJs9twADrCP+xYkh8Mojtu3+b7myZ52NzoNivxmMMYoYVxBI hVsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="IlO/27Bi"; 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 q128si19739554pgq.430.2019.04.24.23.06.25; Wed, 24 Apr 2019 23:06:40 -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="IlO/27Bi"; 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 S1730446AbfDXTGJ (ORCPT + 99 others); Wed, 24 Apr 2019 15:06:09 -0400 Received: from mail-vs1-f65.google.com ([209.85.217.65]:43155 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728079AbfDXTGJ (ORCPT ); Wed, 24 Apr 2019 15:06:09 -0400 Received: by mail-vs1-f65.google.com with SMTP id t23so11042572vso.10 for ; Wed, 24 Apr 2019 12:06:09 -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=BYlYZIp9lVnO/LNggOaWNdZ4LmpCU45Xr9GtlfTw+Ig=; b=IlO/27Bi20zcbrxsGvdgGo/fRy3nfNfBe0ISD3MwMQI/5k+Hgc0336YP0WN9cVlC4h LPsefUpAgeUnh5I1oREBOpqsvdcyzcnsRteVn8YdE1BquO2SadyY+SeKCTq9+IYHdQ73 27nhRDP+rPwW7brWevnpQRWY2N5bVOUk8mKKs= 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=BYlYZIp9lVnO/LNggOaWNdZ4LmpCU45Xr9GtlfTw+Ig=; b=flvENPOSquiTazxB3CI5psWr6nwraiKg+XhLnWBTbrbPNAYzTFMYtjyLowngofbq0D gm4qlLgF6lrGGN0DRpQVUAjhfoO7jKrJEW9KZBgx1qH/iUSnLrhbiXT1qH9/nNr1pRmj o3EuO/4BEACLK6fDgz1qQH5djYhaV+ccSXleRn2G0dH7v9DBuWbzYoqq56yOFbih2o7t 1MlI5ZiuNwKDWb0RYgoVVXprss+hacfoFmxUSqYqJ9yWZvDn/7MHv6V0ov9PtsGY2ml2 wMbMckiHihdutKTNaiFQxPFXBZFuPXN4h2r3LYnXcPrv1LwfjPalv2N5StY13DwDloZd YXRQ== X-Gm-Message-State: APjAAAVJXFvNwa53rrpcqO05i6zR9yL3YVlYTk04Xd9XYyoYxTe4ns6G qrJUrJ5J5NbcYP5w3tzTBtR+EI6By1Q= X-Received: by 2002:a05:6102:398:: with SMTP id m24mr18526851vsq.23.1556132768014; Wed, 24 Apr 2019 12:06:08 -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 r3sm14977651vkr.18.2019.04.24.12.06.06 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 12:06:07 -0700 (PDT) Received: by mail-vs1-f50.google.com with SMTP id f22so11054438vso.7 for ; Wed, 24 Apr 2019 12:06:06 -0700 (PDT) X-Received: by 2002:a67:eecb:: with SMTP id o11mr18354214vsp.66.1556132766437; Wed, 24 Apr 2019 12:06:06 -0700 (PDT) MIME-Version: 1.0 References: <20190320222831.8243-1-mcgrof@kernel.org> In-Reply-To: From: Kees Cook Date: Wed, 24 Apr 2019 12:05:54 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/6] sysctl: add pending proc_do_large_bitmap fix To: Eric Sandeen Cc: Luis Chamberlain , Andrew Morton , Eric Sandeen , "linux-fsdevel@vger.kernel.org" , LKML 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 24, 2019 at 10:42 AM Eric Sandeen wrote: > > On 3/21/19 11:42 AM, Kees Cook wrote: > > On Wed, Mar 20, 2019 at 3:28 PM Luis Chamberlain wrote: > >> > >> Andrew, Kees, > >> > >> Eric sent a fix out for proc_do_large_bitmap() last month for when > >> using a large input buffer. After patch review a test case for the issue > >> was built and submitted. I noticed there were a few issues with the > >> tests, but instead of just asking Eric to address them I've taken > >> care of them and ammended the commit where necessary. There's a > >> few issues he reported which I also address and fix in this series. > >> > >> Since we *do* expect users of these scripts to also use them on older > >> kernels, I've also addressed not breaking calling the script for them, > >> and gives us an easy way to easily extend our tests cases for future > >> kernels as well. > >> > >> Before anyone considers these for stable as minor fixes, I'd recommend > >> we also address the discrepancy on the read side of things: modify the > >> test script to use diff against the target file instead of using the > >> temp file. > >> > >> Eric Sandeen (2): > >> test_sysctl: add proc_do_large_bitmap() test case > >> sysctl: Fix proc_do_large_bitmap for large input buffers > >> > >> Luis Chamberlain (4): > >> test_sysctl: remove superfluous test_reqs() > >> test_sysctl: load module before testing for it > >> test_sysctl: ignore diff output on verify_diff_w() > >> test_sysctl: allow graceful use on older kernels > > > > Thanks for collecting and updating these! > > > > Acked-by: Kees Cook > > > > Andrew, can you carry these? > > Ping? This seems to have never made it off the list into anybody's > tree. Andrew, do you want me to send this to you again, or carry separately? -Kees -- Kees Cook