Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1376412pxk; Thu, 10 Sep 2020 13:50:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQlqSJaOPtFI2hCsbqTFtCPaDOMnfDz7iUtclqqwQR4gDb6D/enjJYJLAu6TrV0WmfSmLv X-Received: by 2002:a17:906:1484:: with SMTP id x4mr10541201ejc.81.1599771049119; Thu, 10 Sep 2020 13:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599771049; cv=none; d=google.com; s=arc-20160816; b=Jvp8WlQ7dCKiJGhnubo1gagEQ5Fv0xDBlH6sGU5KNQzQmX1h8N5TQLoPIZXkWg/FMd 3SFmXAR8vudwT0iK/oLkoeGkBGEEcjVx8AQNLqA3w9RvUzcV4U+cqCDnebYnZ0qEHkz5 KHLLRZo/NNNHTiRoWqzLw6ngDMxb22XnRbrYYjInPcEuLs82CSfG4bhy9lkcrLzKWieD d9oCWtPP7MCNsxqsfWduPCm7IAdnEbLQgq9nqR+HkuhqjQk7fYArKsG2xhzePw+EfHdn Zv1vUm45hqG2xp7FLTvqQSzSyGBk+VTuF7xgrq+jRGAfhnxgyoB7eLrsMS2nNO42tZnW o1WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t7QYn1yhWQ40fqsjl2bkOVXNzJEardYI1LG85/i6U4Y=; b=jXyGJAlgG/8C1RC5t+lMeWYIDEnexlccnYRtIlxuWmnITboyg/AKW1augYawqN4i+C xcqjkge9ohy/PMkdKScFxCZ9K+gwovBYpdqoKzXyss+DsNmcAo5QNVbXNjQjVmDSupSK vJWObdde2SXLQ+AdvCMFT8kWKEvxEBIID2Y2nrlMOugU3+velgep7386hJAj4mSpS4NG MyNgJWRr0EvIEmTMm2HcJ2F7v84LramnVZ0ZlNEDMqpW9I4Hu+L2ILUReUILdHhH0xJD OBfhU1s9lwuXYj7w5BpW4B2lLWvPKgdyNmfKADzXsENYosrsyRMrNYVx5Hq2Lx4lr4Ci 4mZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BclfH4h6; 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 z9si4356582edp.477.2020.09.10.13.50.26; Thu, 10 Sep 2020 13:50:49 -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=BclfH4h6; 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 S1726996AbgIJUt4 (ORCPT + 99 others); Thu, 10 Sep 2020 16:49:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbgIJUVS (ORCPT ); Thu, 10 Sep 2020 16:21:18 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25B63C061573 for ; Thu, 10 Sep 2020 13:21:18 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id o20so5357486pfp.11 for ; Thu, 10 Sep 2020 13:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=t7QYn1yhWQ40fqsjl2bkOVXNzJEardYI1LG85/i6U4Y=; b=BclfH4h6+3Bniz3hlYX1B8/uwcukDuLERmdv/too1YSZlXK9dBtB6T76hiHYKxbvf9 ygrdCHBb2d1zvH8fNVjO46IvyeFd1UQ1/ZyJKm4z7MgXVjH3rg/TxqlBaSg381uGWgSp a0ksHPHgB/X4oFDK2ba/ovfJCDRHiImWHRs4Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=t7QYn1yhWQ40fqsjl2bkOVXNzJEardYI1LG85/i6U4Y=; b=eU0ia4zHRfHThzh274IptxNS0TvdlbTrzvoX5tF+LKvrci0KKapQ8Vh8w6TEmvjm9m 8vFqjkvrfI1OLwuQL0rXcm6E2VYZvaGgTifqhFVd4qG1SDeCmvOCzdIfwzC8l0jgl/+G yOAP4kR+uJC0uIUt5UDfGcJQV/kRivlXstGVXOug10Nu/Ha0pErbO4wd5KzGFexvnyHi NnzmGdihL5LlpHGflYmY/DRin8pz+MyiFY869NfOnTBegoPwYnY6iCRToBxMqcMcSvpL h2kWqfBdpRJTyF3PXZUFwGgBQgCYy4on8nYYfIh2TCXr6tTRmyrx+ViL8aTeZ2AzasSV E9mQ== X-Gm-Message-State: AOAM531ihn9n3YaolxZgJixJW/6fDDQIOygL3IjsvGpjV1ZahU4MGtyy jp7GDOh6NWEU4+W3BP3WTNXi3Q== X-Received: by 2002:a63:4418:: with SMTP id r24mr5838961pga.8.1599769277620; Thu, 10 Sep 2020 13:21:17 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id a13sm5241229pgq.41.2020.09.10.13.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 13:21:16 -0700 (PDT) From: Kees Cook To: kernel-hardening@lists.openwall.com Cc: Kees Cook , John Wood , Matthew Wilcox , Jonathan Corbet , Alexander Viro , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Luis Chamberlain , Iurii Zaikin , James Morris , "Serge E. Hallyn" , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [RFC PATCH 1/6] security/fbfam: Add a Kconfig to enable the fbfam feature Date: Thu, 10 Sep 2020 13:21:02 -0700 Message-Id: <20200910202107.3799376-2-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200910202107.3799376-1-keescook@chromium.org> References: <20200910202107.3799376-1-keescook@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Wood Add a menu entry under "Security options" to enable the "Fork brute force attack mitigation" feature. Signed-off-by: John Wood --- security/Kconfig | 1 + security/fbfam/Kconfig | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 security/fbfam/Kconfig diff --git a/security/Kconfig b/security/Kconfig index 7561f6f99f1d..00a90e25b8d5 100644 --- a/security/Kconfig +++ b/security/Kconfig @@ -290,6 +290,7 @@ config LSM If unsure, leave this as the default. source "security/Kconfig.hardening" +source "security/fbfam/Kconfig" endmenu diff --git a/security/fbfam/Kconfig b/security/fbfam/Kconfig new file mode 100644 index 000000000000..bbe7f6aad369 --- /dev/null +++ b/security/fbfam/Kconfig @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0 +config FBFAM + bool "Fork brute force attack mitigation" + default n + help + This is a user defense that detects any fork brute force attack + based on the application's crashing rate. When this measure is + triggered the fork system call is blocked. + + If you are unsure how to answer this question, answer N. -- 2.25.1