Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2242681pxf; Sat, 20 Mar 2021 08:52:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfbuiAxmKuwddQ9x64AKOGVsc/D2OC1WmC2+c9ueG58tOwMq3rtzmxKyHK8IhjM+KCD/8t X-Received: by 2002:a17:907:37a:: with SMTP id rs26mr10263955ejb.336.1616255524970; Sat, 20 Mar 2021 08:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616255524; cv=none; d=google.com; s=arc-20160816; b=ltOkvHy/JWGHgB3xCFMK+PdbbHaHbPWbqf2s5PX3y/ehNEds6gnn73mo2+cZnh8glN Negfcr51hptVuMfEwwOODbptBqO8GTesg4qjwSCoLzolr+pJFms0UptRFCWroJoEVFTs 2qZkxcfuFGzE/UJTsfxWzLhPQKtA8rjOCTCuC554lUNuj7EP0v9bLRRDyZFcpdkkVFWv rjSJf0iZx+OtYqUCHZ8H5PBKubits67K7RnfbqGFr8V3OR31uZfd/7MRlXLvYpeZfHQ8 jHSgnkXcZOmlSJ8UGOPMwHH/pGAz5INsJSUAbcdM2m5/kKzCHiTfM5HV0Y2aTy5lYYQk 0GQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wriVjl7OJ60Yb1B8eRGA4sfDULbv2x8qu1FPT8RANS8=; b=QK4uuNEnwNEUWoNpocZIzv+zIvfoMyUMFGdnsamHEd9w0qJJxMcip/E0ngUd+BRP4M uQoALE8ReYFk6Za700TDHDvoQezTnJIIljy5Do6lYWg6nIp44aswNq9OO2ZpO32udSwM aJgIWK4wr9xlK7LZ0My771LM8RzRbrkMj1jMUzFHXvp/0fyWIc0TW3YvYjFzF2I9tV3S yCB7DsemIu4Yfkz/GiVdej/ycDZX2MZseD0pjMSYG/OrVS2UaGaIv3Y5oLV8zqGus+6f LdRK2kEi02n7DbePpt/xZSRB4O7nejJaMAE6Rix+SSPGYaP3aTSkmoyy310gj4LLnWM8 3RRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ZrpfWcx4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q9si6818030edd.324.2021.03.20.08.51.42; Sat, 20 Mar 2021 08:52:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ZrpfWcx4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229936AbhCTPuV (ORCPT + 99 others); Sat, 20 Mar 2021 11:50:21 -0400 Received: from mout.gmx.net ([212.227.17.22]:56877 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbhCTPuS (ORCPT ); Sat, 20 Mar 2021 11:50:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616255380; bh=AD3PrN+vf2mQ+8MKDbQ8ZeCfvzIHl3vXZnPV0wZtj5o=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=ZrpfWcx4qLiCVKdBZb9jsRreKGVU4XjsPhtS8dJj3xCXnBUEUeyx/fZsqQR0D6dcK Rw498Q7k36nJ7r7QHR2kERzsmrjxD9JpHjTJc7HcBGzOmwV1wZRWx21IeZ7//+jdvB kLQqvxnPw++zbDxm55SGU0buSzhELsMb6M98jH1w= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from ubuntu ([83.52.229.153]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1N95eJ-1liUhH0mkJ-016Auk; Sat, 20 Mar 2021 16:49:40 +0100 Date: Sat, 20 Mar 2021 16:49:36 +0100 From: John Wood To: Kees Cook Cc: John Wood , Jann Horn , Randy Dunlap , Jonathan Corbet , James Morris , Shuah Khan , "Serge E. Hallyn" , Greg Kroah-Hartman , Andi Kleen , kernel test robot , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCH v6 6/8] selftests/brute: Add tests for the Brute LSM Message-ID: <20210320154936.GE3023@ubuntu> References: <20210307113031.11671-1-john.wood@gmx.com> <20210307113031.11671-7-john.wood@gmx.com> <202103172105.F88F6745@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202103172105.F88F6745@keescook> X-Provags-ID: V03:K1:EeL7EnPKcSmX1if1wHYmRNesWmU0Wkazr3PMeRYXhdRSg1a6ggo yg+MD7nT2DiQJFysClafW8A2qO7MROy7qBtV1CF5wMWNamxAw6lxq4IEoThIWCO6V1O70Y5 kGY5YGfnxojkkC5RA12bes65ZPxFKQoI8rR8XZeyoTCNgpHcNwkveOTvMis/bODP2lrk1UH 8JOAdenmseC/yktwz1TRw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:qAfb5bWlDgc=:FV7wh3gVsW21/3bpO8jU48 AWXiqMbRLm4bToSaVxj0FvuYscejs0zbeSfh2406n1c12nQg8CRGqsGBY9fqh+ccmLIRxLZVL rgsp5u2VX6ozU8r1ui1zsMBM533kyjusDC/aTQJHglGIm1Ql2S6YoKX/z6246SpZdSy+jRf2E 9YDttU6eMqro5/fz0jDWtv7XKgGWNYh1rKtyjC8PmXZdFVtW193aV1+PaV3OSUt4o++glqw/J XFnIoOP+k5/c5bxbuHT3IxuwSCZM7212buofgkJe0QqMGGXL0usR7dmrkoesv7EHvTEp/ssKZ D55mgYertyJ5rZ+Y3QaYeoBDt+cPPF6P+hOl39cUWivHtC2Vydex/eYM1wIywoqSaKyhwEXbf UaYB7XnBRvq/00GkZ5BnptLXvcCGVcmxC6cIaIt2Qxi1wXIKcSAE630zj4ASvqWPqsNnZ192q Ceasnba1iRxtP3qxNkN3oRf1EHd5eaS0vhC96aXVUssZOK4ifGLtpxaTSW1amI6z2AOm6WY5T KDCe0UQT29IefWG8c0Y5QLnUcENiPbsfOsOpnrCV+L1Jf5UsrZKc9SEH8UHJBiwBLFSZ3aT9B h2X712bfatiB5B3nnFIKbeNBgssH8eaEvU7PQHL/QTryrnO4LOge7IcGaZZ2tTjoBqYBJsEAL h49Fl3f5IBNBLaahEgSaaFhON6D6oBs2mpdg1DgzElIsOVGHHdFLH9Z8506WV7RfM8dHW5HDb o2HHpcrVQbOgYZ79qSnfH6ds7djMbfVRIdYP5tDwK1Zc6p7qjyXKABjwTA7q9Dlh0KPD8Hkfo DKR+ynm20ZsgaNAnpTKXQMeFH/OmvqR9ZLDWGxxDrOHFfxNmtmSVD4FDt5nTCJ1mNwICuuXTd VTlTQpw5QZg5AWNxfKUA== Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 09:08:17PM -0700, Kees Cook wrote: > On Sun, Mar 07, 2021 at 12:30:29PM +0100, John Wood wrote: > > + > > +count_fork_matches() > > +{ > > + dmesg | grep "brute: Fork brute force attack detected" | wc -l > > This may be unstable if the dmesg scrolls past, etc. See how > lkdtm/run.sh handles this with a temp file and "comm". Thanks, I will correct this for the next version. John Wood