Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp154110pxf; Wed, 17 Mar 2021 18:24:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkeW507xPhW9hK6/ySZNksTmdTxiTKahAPpK/Rs26x8jsmPgEQxiy/u+9XcBW7oC7n0Ctk X-Received: by 2002:a17:906:bcc7:: with SMTP id lw7mr27037116ejb.209.1616030687964; Wed, 17 Mar 2021 18:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616030687; cv=none; d=google.com; s=arc-20160816; b=b/GATgEs4D9x6F0651eUpOI9mPgqPwv77TRiZTWli89R8M6ssdsZJnhV2qTSSHMGAz ntqATszkDGMTUq2MXPXDAA6JieLGnmdDmPFCeMxJ/KA5ViQrGO3iO/x4jD8SMwwF0WpT y+b+QY/xjrMePgtSTA0EGA1Fu6IG7SbCG+z7KSaqi/DYqjttChVcaiUxzPSipeKCA0yS 0H5k1UosWI8OkiQVwwWJ+Zo7pX1T3Y2mxNbgn+Ch3/ydRpifCu9F5gya9nACAr21P+rK GQ4yB5/yi2qYpxPzM6SCAl24wblkQVSTv7P+1GQljSBkkOre+rKn7qiaF5kiyYcOj2/i pLgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EalAswFOAcFp0mMFCKv9AaiQ3ouyPCG+tDog26PGvcI=; b=LYcPcmhmqSBa9s4lDjKV6bVWMA5jeBm5QUHO0geTwAyn87ZgJa7Ofr6XRYz/lCnlgK 2vMWuoGAAGxObMbbL6Sx4eoxyo8yBZY/f1n+1TPi7mLV1VPGu6ZDSQdV1ZhHCpgKHrKR GrGTiourlp26HuiKGqjeFvcoJJPGIA/OE+Sz9jumJtVE8J9xBt7rKHqvouS8ZF9sj9S5 8Mmzd7aPbSrEx3TQ1XqTnbPHKqMsHmN3WXsvSBvxjHVwFRTi83qZZZjWfGqaqkrxXfkn 9PxY9RhochDXVC68HS+dfhKJPHzb8jNBlsqhBmLFPVTcGcsJ6Fn5mBYMx5d0Dpiy/4SD DFzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TSffuJwr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si414867edt.78.2021.03.17.18.24.25; Wed, 17 Mar 2021 18:24:47 -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=@chromium.org header.s=google header.b=TSffuJwr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230045AbhCRBWv (ORCPT + 99 others); Wed, 17 Mar 2021 21:22:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbhCRBWe (ORCPT ); Wed, 17 Mar 2021 21:22:34 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B8B9C06174A for ; Wed, 17 Mar 2021 18:22:34 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id y200so2343521pfb.5 for ; Wed, 17 Mar 2021 18:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EalAswFOAcFp0mMFCKv9AaiQ3ouyPCG+tDog26PGvcI=; b=TSffuJwrnV2vab8/yGoahUmuVCMDXKwUtsys3/bDoxiRWc2F+tAbiwWP2aKGYHhGV8 gzbjPnRuubA6uxOalwf/Z67un8+OC/fwBeJ8Upsa2Pv1pu1E+PVITOIEVPFFO+PQW43A yV0DB8OU4s1DHxtjiTSy0K6Yf3Xh0c37cc+7Y= 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; bh=EalAswFOAcFp0mMFCKv9AaiQ3ouyPCG+tDog26PGvcI=; b=dkf7FauFhB345hmO4wxJig2pXNi/arLDF/zYFjrssi4QG6ULUf37FgJiOpaTg1KsXC nKs85LeXXg3YVSZD1qIonifcLHso9db6jUaCgR3GY2aj6lSpDsU8i4kKgrX9jLPUdYt3 s1SMImZzEa/vOd9ZXO83WwhdFl2N9S7mHKdI5BQID6ltyfKBzhVOfLNyfhrDOKAqJ/nO uxclxs80L7n7ATA/mJjvZ11SOWAnUJp0zBSHoDtEe8C+VBT/doJrm3sttM7743SMW80h HeL48IiSjyD76eNAtm6x78sns0ENwjUnzOP2u0hFxAjonf/YUDYwVt7s/yhqykgsY1f2 X7yQ== X-Gm-Message-State: AOAM530Vj238T9QaG9fTGAi+inNER/b6+CsvXUXtj/stJzIWy+fl/mVU D/UsdMFDu/xW+PDeGvYxyDpifg== X-Received: by 2002:aa7:81cb:0:b029:1ee:5346:8f1d with SMTP id c11-20020aa781cb0000b02901ee53468f1dmr1683154pfn.4.1616030553695; Wed, 17 Mar 2021 18:22:33 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id c1sm272445pfn.131.2021.03.17.18.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 18:22:33 -0700 (PDT) Date: Wed, 17 Mar 2021 18:22:31 -0700 From: Kees Cook To: John Wood Cc: 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 1/8] security: Add LSM hook at the point where a task gets a fatal signal Message-ID: <202103171821.C851A2D189@keescook> References: <20210307113031.11671-1-john.wood@gmx.com> <20210307113031.11671-2-john.wood@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210307113031.11671-2-john.wood@gmx.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 07, 2021 at 12:30:24PM +0100, John Wood wrote: > Add a security hook that allows a LSM to be notified when a task gets a > fatal signal. This patch is a previous step on the way to compute the > task crash period by the "brute" LSM (linux security module to detect > and mitigate fork brute force attack against vulnerable userspace > processes). > > Signed-off-by: John Wood I continue to really like that this entire thing can be done from an LSM with just this one extra hook. :) Reviewed-by: Kees Cook -- Kees Cook