Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp587288imp; Thu, 21 Feb 2019 07:19:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IaSO6LCCdw0AZY+2/MAEEmhz+aDmnUJy3qJrTH7NLW8AXQts1PlFuM0Uxi3TljmQdstQ0BX X-Received: by 2002:a17:902:4324:: with SMTP id i33mr42324962pld.227.1550762398325; Thu, 21 Feb 2019 07:19:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550762398; cv=none; d=google.com; s=arc-20160816; b=Vtfmajcx32MZ9ul6TZ3wzzMuWPGmnAE9nhRNd63iU2Z/LOLUL/HlKhhVj7yHLd/RY4 6iafrMfKVUMQHzqNEToe2uKhvmFge2CsQ3G+MqhqL7IuoXSFuod/+QOgqHkCjhNxaWGn 43uqOkpavep5cJRcvN92d4QPbZ4y6h3MpzF9/DUI+ZIcaM55tANqi3hGwxIHTpsEm39W gc2x7Hw25iOnPvLtuXOy7qTk8WM7qbV/7p7UNRhEBElk3cSbvBGr1UiC1+ZLg3xo8XEm gdz6Vjt5xJFCuEuwsIoMrKzr7U/CDRLKqc1jqqTFmJhi1/ZXhI03MFrRH229kl/39ktV 8wHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YidAc/GoTVUX/8OegPrX96ZaUFBqzwe/YT7gCS30oSs=; b=pJt9A4Z5zv3+hbC04tRm4iWhf93fBdcxjDwVkspmr1/hIiLAv5384q5jX5yxAF3m5C GYhnuamL69POTOphaCskdpDKyhxdO0dkJxrc9nolTFygXqOtNaUkriNX75ClvZRPbiI/ Ynzx8LZ1gE5uXDM5/od2z7pgeClnaRHSUrr4H3eMAxE6IQqrb3e5ZDP6lPw7gtgloHIk 9NvF9FlMCZxq09uhFjzCyLVkd1cxP+WQCW1d4e9O88VSXnbt7vDtX1VRQBrp8viaKSzc z3m1+pzTo241qD2/VlnveBES/jowpDohANe96cgatyjfmn7ajNsZPIE2+6VnWPOjEyNi 8Clw== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si21495699pfe.203.2019.02.21.07.19.42; Thu, 21 Feb 2019 07:19:58 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728274AbfBUPTA (ORCPT + 99 others); Thu, 21 Feb 2019 10:19:00 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37127 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbfBUPS7 (ORCPT ); Thu, 21 Feb 2019 10:18:59 -0500 Received: by mail-pl1-f196.google.com with SMTP id q3so6949145pll.4; Thu, 21 Feb 2019 07:18:59 -0800 (PST) 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:user-agent; bh=YidAc/GoTVUX/8OegPrX96ZaUFBqzwe/YT7gCS30oSs=; b=uLL6pY1DqbvEgfABKCmBWCc/BM2y6g+/Cr5u2cWP0r7ll04/qGAfSMjhiJogUWyu2R llkDRkfFH5vql3SsfMoxTqLQUEOvWcmLbNwFGagF/dbiS4zMW18h/EoaX8PqQ0P/Bq53 iMZ/mpyvkgsLSyrHfT8UWl7LyHReHloFMz8tfuhz9Ql4tht4BMbMXPyj1z3ri9owIP03 AfORgOf9dmv5EQ3aVnP/3A2ytBFNy9bYuy6zPk3JgPmEg5LNZdAR0HCao1BG030l3pjW WKUlYcoMS5A4Wa6sketHLTlVH/0MuXyRvVC7d7s5Dviv7a347UC1uLiF6xE+1lXxQXON g+XA== X-Gm-Message-State: AHQUAubOkMlswNkNr0/aobhLj8zaRtH8592LNVAScZVvi/epblLIYvVp gtkqFjQYiqGGlsE7b19dYWCv5ZBIZN8= X-Received: by 2002:a17:902:6a3:: with SMTP id 32mr43089330plh.319.1550762338743; Thu, 21 Feb 2019 07:18:58 -0800 (PST) Received: from garbanzo.do-not-panic.com (c-73-71-40-85.hsd1.ca.comcast.net. [73.71.40.85]) by smtp.gmail.com with ESMTPSA id t12sm55412945pgq.68.2019.02.21.07.18.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Feb 2019 07:18:56 -0800 (PST) Received: by garbanzo.do-not-panic.com (sSMTP sendmail emulation); Thu, 21 Feb 2019 07:18:54 -0800 Date: Thu, 21 Feb 2019 07:18:54 -0800 From: Luis Chamberlain To: Eric Sandeen , Andrew Morton Cc: Eric Sandeen , Linux Kernel Mailing List , fsdevel , netdev@vger.kernel.org, Kees Cook Subject: Re: [PATCH] sysctl: Fix proc_do_large_bitmap for large input buffers Message-ID: <20190221151854.GJ11489@garbanzo.do-not-panic.com> References: <53be40fc-6ec4-c714-a64e-f69c96f7058f@redhat.com> <76eca432-8dfc-18f3-4977-567ac1707ff5@sandeen.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <76eca432-8dfc-18f3-4977-567ac1707ff5@sandeen.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, 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. If you can think of other ways to test the knob that would be great too. Luis