Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp720916imp; Thu, 21 Feb 2019 09:49:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IYzo96HEe0wIDdApP9Gn4r6L1Ore5uZezHu5gbi/dPNyhHaEeozrsK3BgCIyybNloItDxYX X-Received: by 2002:a17:902:8692:: with SMTP id g18mr15359311plo.149.1550771349011; Thu, 21 Feb 2019 09:49:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550771349; cv=none; d=google.com; s=arc-20160816; b=x6fUOUwLgpca7L1dMreIa5QKs418QpA9gpbJKv06fncnMSR4GGAWFAy4YndviwqgBT EHMejKWHtbXJQvPrbJ1WFt42gfaVvJAes3cC4mYkPHJeQ3fIgisE6/uSe+Z21zlofpHY k3tdoB4TCa6mT07qNu8M4Q7kPABIp7ACS4n/NVLcuCds+vx3NebgdKTfML4jc6m/o8Iw G/8csg/SBV1L2un9KHJOyFuD4YiLGHJxHv8FVfHFRjP/6CXtyHXZF97Ta2I/Ee42R2wh 7Ha1Xuvntsum0C7k7CyuKUitsZ5OWJguvHHfrN/Q3yF4eluEKRDKhpw+a3ChMu3QlBeQ zurw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=7bgTZc1LDoBsOi4KtB3GEj3EJVGB/Ub2KtSflVRa7Sw=; b=jLCwq5WvkjofI9R/gKSBiMksUchu31ERgM0MJVkHuTLaJxjWY1LgRg0gT4mV2wGrP8 NVw7fmcKAAjOM28x2bw0bzbpBQN62RdKOK7vmxa3gu3/r5xKgxM50EKjj3m6hQLzPgpL kUL+7Sd9IWgaHDJZvRlgZ2TY8EPxCokRDkoo+ZgQyejqVyCrcsOphOwQjyA4zUj+UrXQ 5Ncxu1Xg8FWD9eGMgYqdf7/sC2ZTPIfa8qEB5vznq4Vtw/HIsSap/XS/g4yGAEUU5W5z /8a8wRzsY0xHt871eYZlzkcVMNs3VvqBb+kPDTL8/Pzk6MllzLesaB/GczqruWo6+TTw bvug== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si19000052plg.318.2019.02.21.09.48.53; Thu, 21 Feb 2019 09:49:08 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728720AbfBURrv (ORCPT + 99 others); Thu, 21 Feb 2019 12:47:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45054 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbfBURrv (ORCPT ); Thu, 21 Feb 2019 12:47:51 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EC916C057F40; Thu, 21 Feb 2019 17:47:50 +0000 (UTC) Received: from [IPv6:::1] (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4B42D1001DC5; Thu, 21 Feb 2019 17:47:50 +0000 (UTC) Subject: Re: [PATCH] sysctl: Fix proc_do_large_bitmap for large input buffers To: Luis Chamberlain , Eric Sandeen , Andrew Morton Cc: Linux Kernel Mailing List , fsdevel , netdev@vger.kernel.org, Kees Cook References: <53be40fc-6ec4-c714-a64e-f69c96f7058f@redhat.com> <76eca432-8dfc-18f3-4977-567ac1707ff5@sandeen.net> <20190221151854.GJ11489@garbanzo.do-not-panic.com> From: Eric Sandeen Message-ID: <72a6d9bc-cfb9-a21a-960d-bb01331c0dd7@redhat.com> Date: Thu, 21 Feb 2019 11:47:49 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190221151854.GJ11489@garbanzo.do-not-panic.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 21 Feb 2019 17:47:51 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/21/19 9:18 AM, Luis Chamberlain wrote: > On Wed, Feb 20, 2019 at 05:35:04PM -0600, Eric Sandeen wrote: >> Here's a pretty hacky test script to test this code via >> ip_local_reserved_ports > > Thanks Eric! > > So /proc/sys/net/ipv4/ip_local_reserved_ports is a production knob, and > if we wanted to stress test it with a selftest it could break other self > tests or change the system behaviour. Because of this we have now have > lib/test_sysctl.c, and we test this with the script: > > tools/testing/selftests/sysctl/sysctl.sh > > Any chance you can extend lib/test_sysctl.c with a new respective bitmap > knob, Done > and add a respective test? This will ensure we don't regress > later. 0-day runs sysctl.sh so it should catch any regressions in the > future. As you know, learning somebody else's test harness infra is a PITA. ;) Can you find me off-list and give me a hand with this? Thanks, -Eric