Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp723921imp; Thu, 21 Feb 2019 09:53:17 -0800 (PST) X-Google-Smtp-Source: AHgI3IYD1crf54+mAClAaJTAxGRGutdm+OvS0gLKIfy5JUcaImfQeChdKHUB6IMUfmo/mHrrKGoD X-Received: by 2002:a65:60c7:: with SMTP id r7mr2945709pgv.37.1550771597700; Thu, 21 Feb 2019 09:53:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550771597; cv=none; d=google.com; s=arc-20160816; b=du+5BOhzmY/PyPxnxnkgHhatv6/8Z7W1kVPJHAgBaO1p/xb0YdNFT6TmldjU0zdXJI 7K0HqX4ukmK21sK9ORhVBF5L5V+tOS2J7/EPvEQY13EfsULR/YwA7+PM0ilgeWewzbAM ljbgMc3i2NLc8gIQrXm+k5EGnlPq0o+Jw8izild41shgvue6uykcWAlw8bVoeWQKKWvg N70+wLYWPNZGadVmSoWDdvJCvB7YCXN2wp63K9ENyEs8duHGPH8xUaDDCSunPErMM030 Qdl1owpRdrqNXPUHx7NVJw+IFxPkbfuCsGV/vpQ8ZQvpvQPapEgkKfBSEUphpgjkqOo6 HMEg== 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=99V/TpmgY16yPJsDDUmemDd6inHJjzEgGkZndTVMWVg=; b=NBUWu4oYDVjpj6b/wNs1Rze0VI9lTVsogUiyIypWXPXD/JveTy9xyKnK5lJKtEAqIc kecisEhkpQgAXQsLwzeiLfdE/A4ARPHHPF6i8l3TU9GCu/4EByJo6Zkm6IEGRBG39q57 lEd0kVm6hZp81s5ESPGwh9Y/EoLNkl/jocw3KyxU9YQE0YV4hKlAjW1LHHvZ+siqldcx o9o7A0z3ZPENm0Far/9ZySWUS1gUbvbxdxkr2uRjh7Z3/Mk6pCf+Uzyd+8I9hz+xY6gG vUnVD0wMHNH9Qy0Zco2I3SoawJeBNgmrKvdZd5gx6DAOeXQHUB0Px0lrx2hkY2xcwe4Q D9UA== 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 t135si3089693pgb.467.2019.02.21.09.53.02; Thu, 21 Feb 2019 09:53:17 -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 S1728607AbfBURwj (ORCPT + 99 others); Thu, 21 Feb 2019 12:52:39 -0500 Received: from mail-yw1-f67.google.com ([209.85.161.67]:44433 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbfBURwi (ORCPT ); Thu, 21 Feb 2019 12:52:38 -0500 Received: by mail-yw1-f67.google.com with SMTP id x21so11133694ywx.11; Thu, 21 Feb 2019 09:52:38 -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=99V/TpmgY16yPJsDDUmemDd6inHJjzEgGkZndTVMWVg=; b=nm4TiY9FR6sv5OKDkBq6gijoc1hDHHK9HW3D1uSBYHmnOxYmuEFa+fnQ3qD+pFyMxe mcfd5/rxY2Q6MQw1YL/GangZwhJpGeNIfrt3UeWrT66lqQ/qYIhY/3SlTCdJmJBdj180 JcRXAU9DQiRmRsd+geVkJSpxH0f8keQrrrWiDhT+etvMUnMtJO6egea1Q+8aaSmpuZHf fEPXkd5o/MW9H/+k7SdndmYBn7pCmZ05bhXYBDVrxroacKxSUwDUJJ4FAMvUQ9udad2C QI1OM7lpaS7j4a4fM0EYhekVfXsxuAbd0NKb9eLLE6LBojE0OrU0x6TErgVPySAg6tQ2 ln4g== X-Gm-Message-State: AHQUAuZLBNe2GDe7k24m70mRlLgae51ZPcX/a/sOexRnxwgP9r2m2mWG hbY6Q9Fif+6QU8603vv6yUM= X-Received: by 2002:a0d:f881:: with SMTP id i123mr34197689ywf.453.1550771557819; Thu, 21 Feb 2019 09:52:37 -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 j65sm7277830ywf.21.2019.02.21.09.52.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Feb 2019 09:52:35 -0800 (PST) Received: by garbanzo.do-not-panic.com (sSMTP sendmail emulation); Thu, 21 Feb 2019 09:52:32 -0800 Date: Thu, 21 Feb 2019 09:52:32 -0800 From: Luis Chamberlain To: Eric Sandeen Cc: Eric Sandeen , Andrew Morton , 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: <20190221175232.GM11489@garbanzo.do-not-panic.com> References: <53be40fc-6ec4-c714-a64e-f69c96f7058f@redhat.com> <76eca432-8dfc-18f3-4977-567ac1707ff5@sandeen.net> <20190221151854.GJ11489@garbanzo.do-not-panic.com> <72a6d9bc-cfb9-a21a-960d-bb01331c0dd7@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <72a6d9bc-cfb9-a21a-960d-bb01331c0dd7@redhat.com> 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 Thu, Feb 21, 2019 at 11:47:49AM -0600, Eric Sandeen wrote: > 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 Thanks! > > 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? Sure, its actually quite simple, just as root, run the script. Luis