Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp680858pxf; Thu, 11 Mar 2021 12:10:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwM1vwoomDhXyi6IYBFvwR85b+Jkz/khyYSY8VVEbs4plAYG/yABA5FPrraftHmtJ4i8Mbg X-Received: by 2002:aa7:d841:: with SMTP id f1mr10161735eds.286.1615493447339; Thu, 11 Mar 2021 12:10:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615493447; cv=none; d=google.com; s=arc-20160816; b=muq/wY+ujmO7IXqPWA9w8jhxa8eGpH5cr9Flx0Cu1PY+L4nHYGPDjNFYpiwrklRy2w 45hl15oj6arFV7WxA/pmRw+jx05ZOihy6HoGRrSBt+8cbBjjaxwH7f1pEuCci1332T9L t8RVF59BWKEsxBDNDcywtQIBSiIG/vOkTHiPVxUJjLHYoHRUYaYvHCte/V3ClQ/6O3qO auEeNaCHzQpbrL+yZmVYNQjgYuICmJwkUgxFegV1lmAWc9SEfECjKD0LYZQznKTL+BA9 8l5ZywZOpYWKanx9mvJGx9CCcfcWLC/WyQnBKCv1p9dR4yzE6fXsmZ3b1cNXs0HEKh9d wNog== 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:ironport-sdr :ironport-sdr; bh=/+KXT4UrKOrm4E4Px4DejE+qSnD6rfe07ugCaNF2R9Y=; b=LQVkVUgOSQ520tAxBFT4QTayhQsLfihnSKAzBP8LSaemvdDEb1gnqVMMXMiLHZ9KGV utLpgA/BEtH3giG4JtgqEbYqCGhoL3jPKBax4t/OR29LFS+k5CuHOBKBLkFvFdi1g5FL gBWGfnGqdYbmmGCu2c5+zSqyMM8//eQ0dEMsGx3f+sqa3qjtOZNG88YYWGc+e2EEeLXg ufuad77wP4Ex/irVlLLdXMZgs3zHD2DO0CE8iF7suK+SpKXo+ZizCQ84EPAsvhhb3hhy 7XyYHfpT9HOHRB9y8za6jn/WdyEi/8Ia36LUeSPrsXaIZFPlJ/kwkjEy935hRLp9KQtf Gp5w== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr14si2536652ejc.394.2021.03.11.12.10.24; Thu, 11 Mar 2021 12:10:47 -0800 (PST) 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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229688AbhCKUIp (ORCPT + 99 others); Thu, 11 Mar 2021 15:08:45 -0500 Received: from mga09.intel.com ([134.134.136.24]:58343 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbhCKUIX (ORCPT ); Thu, 11 Mar 2021 15:08:23 -0500 IronPort-SDR: 6ux7mApO6T0UIC2xMvfNfvIy2VBXZoB65X2Defpxhy3sPL1ctqTM+Bcehgbu83BMVG9idfkT/0 cSxrZCoXx71g== X-IronPort-AV: E=McAfee;i="6000,8403,9920"; a="188829210" X-IronPort-AV: E=Sophos;i="5.81,241,1610438400"; d="scan'208";a="188829210" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2021 12:08:23 -0800 IronPort-SDR: KjMxJMyU8wBcqzcezN9xDQb+xk6wNl0Cwu+bdMoU7Efbs+0g5YtEQEXOORxIL7v1gEYy3MflXo XC0C20dAjegA== X-IronPort-AV: E=Sophos;i="5.81,241,1610438400"; d="scan'208";a="448398607" Received: from tassilo.jf.intel.com ([10.54.74.11]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2021 12:08:13 -0800 Date: Thu, 11 Mar 2021 12:08:11 -0800 From: Andi Kleen To: John Wood Cc: Kees Cook , Jann Horn , Randy Dunlap , Jonathan Corbet , James Morris , Shuah Khan , "Serge E. Hallyn" , Greg Kroah-Hartman , 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 v5 7/8] Documentation: Add documentation for the Brute LSM Message-ID: <20210311200811.GH203350@tassilo.jf.intel.com> References: <20210227153013.6747-8-john.wood@gmx.com> <878s78dnrm.fsf@linux.intel.com> <20210302183032.GA3049@ubuntu> <20210307151920.GR472138@tassilo.jf.intel.com> <20210307164520.GA16296@ubuntu> <20210307172540.GS472138@tassilo.jf.intel.com> <20210307180541.GA17108@ubuntu> <20210307224927.GT472138@tassilo.jf.intel.com> <20210309184054.GA3058@ubuntu> <20210311182252.GA3349@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210311182252.GA3349@ubuntu> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > When a brute force attack is detected through the fork or execve system call, > all the tasks involved in the attack will be killed with the exception of the > init task (task with pid equal to zero). Now, and only if the init task is > involved in the attack, block the fork system call from the init process during > a user defined time (using a sysctl attribute). This way the brute force attack > is mitigated and the system does not panic. That means nobody can log in and fix the system during that time. Would be better to have that policy in init. Perhaps add some way that someone doing wait*() can know the exit was due this mitigation (and not something way) Then they could disable respawning of that daemon. -Andi