Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1397946pxk; Thu, 10 Sep 2020 14:24:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHMEnUkVn9dz9WEc5wnWIX1kHT02YCy9BXF6eqLpuUOdQN8u7Dlx39ZIXvs2BB97IMAvb7 X-Received: by 2002:a17:906:e87:: with SMTP id p7mr10531536ejf.547.1599773068771; Thu, 10 Sep 2020 14:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599773068; cv=none; d=google.com; s=arc-20160816; b=qAijerxQPyfM4ABvVgnBjRN/Iz4G51/GQnkE1qwL5tHWBH2vUy4807B3usmRAp1rXH WCkecCy9ZboohDpJCCFh4kC27GKn/H91QCBBWLf4eu5i1tf7w4LcQkTwz2Q1XrLA6Nwn bVqEUHmzId345QcUrgpPACCXwdzDU20MQC9riNHpMVnz+zBBflpm/nhExfaYrzeO67XX 8fykqkmd1V+wFGA7cMGlg7Rst321kE83RWDtY0EbiCFgnSzw4IgWiWcS53hqk2++9b7r b83WsXUruPUv80wRqlsCX4ZiUoVwIQxVzHjSnwn5m5oTiHvWohpfPZEG6qHNJyVAShzq wc+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=N10c9+tEMvd+V1v5/kjFg7uIplbi+YryLR/t+QNnqsU=; b=UhmG4t2EOnJitCE+O5jo+sKq4FreK26qJGXlSgznhmTATaWtqdkot7ZTp1VVFSgq2x VorLcMQ4zAJ7JK9i05FQXG4AajWvvLxs0vz8CNOHNY472F1+YE7J7sHU6IRh6mo5Clnr TX1nL+drEvS8nkHyjncgOmiYmKysq/cQph31y7SrmtVlmoqK7JR3vUl2J6qWGeetSCmC 4zqDQAs0snkcqmlFSY+MiiOQLYQ3G9edbjkFScb7ObZTLPpcs89rlLPU9oNDMUi3SgUV G0/9nuN/dCmNrmHhNZv0aHeqTxJnB5gM2Ack48BNvcnK7dBB3b86Y48ScthqA8LS10kl gNAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="Pmbtzx/w"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si4400955edv.181.2020.09.10.14.24.06; Thu, 10 Sep 2020 14:24:28 -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=@google.com header.s=20161025 header.b="Pmbtzx/w"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728262AbgIJVXK (ORCPT + 99 others); Thu, 10 Sep 2020 17:23:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728089AbgIJVW1 (ORCPT ); Thu, 10 Sep 2020 17:22:27 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A21C8C061756 for ; Thu, 10 Sep 2020 14:22:26 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id u21so10861798eja.2 for ; Thu, 10 Sep 2020 14:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N10c9+tEMvd+V1v5/kjFg7uIplbi+YryLR/t+QNnqsU=; b=Pmbtzx/w5PJRKpuyzWZgUthB5SqsFujhymQl5gJo8f6W3hvApNoms7SWH1Ie3t+Xhv G4BzucZpRgNaCDRkBPiUSWCjEuLpi8agAsdGI/QBUu92rYGZ8Pp3MkAt2a24+m/S5x3B 6epqPgVItTvZ5dHCiaBsFReRRMDht3h8fKCaRGh1IkHnw2lateEx0y9mDjHKtpX8Y8Nz pj8E/O7vvbiRPAFHA3pzg1fCXA5Q5JExBVpXPTHZUF0gtsfus/hcwcxmf9RfgHDwtSxq 1bx0ofN7Nm21fcXiPRlbKh/d5ruR2ePp3ji5Py5uWlztcfvuDu+7GtC29bjR7vEOzNWS NI6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N10c9+tEMvd+V1v5/kjFg7uIplbi+YryLR/t+QNnqsU=; b=TQnYljPGrcYyxKGu/sNhIjOu2lfA7WvqbaTCRF9MRWH2ndNlVhlUyzivt36v593tzu z9dOsHopgVnaiEQC/jaMXV0uRlGdkOiK8uCyf+lFNHkKLUZ8PHu9qAVaWWELoeDjZuhA a0c4DDCqy0YRzop/h2jg3m98tZ3X+5GCHd35vEsXcPtZAPF5KCCyhfmo4o1lWP5P+t+M RrdUgH5nXzdm85/ZMtAgN58bKwvtDU0Lj9zeW2NllT4mmAQpK+9rzylYMxHkDtczcze0 byArGRFxykQTfP4wbtphri2LskOBC0z2SdmE07i6NzimzHu5+zPGfKUYptQ0SHMAixTM XkHA== X-Gm-Message-State: AOAM533XddVLWeeCmodypvZ0lumIGmAVDjbvT3bYyAH15+vofbMy+Wg2 UknF5zsA0VQaAbPY18WjCtLX9bXQLRsDGtbxpz37lA== X-Received: by 2002:a17:906:4088:: with SMTP id u8mr11408126ejj.184.1599772945031; Thu, 10 Sep 2020 14:22:25 -0700 (PDT) MIME-Version: 1.0 References: <20200910202107.3799376-1-keescook@chromium.org> <20200910202107.3799376-2-keescook@chromium.org> In-Reply-To: <20200910202107.3799376-2-keescook@chromium.org> From: Jann Horn Date: Thu, 10 Sep 2020 23:21:58 +0200 Message-ID: Subject: Re: [RFC PATCH 1/6] security/fbfam: Add a Kconfig to enable the fbfam feature To: Kees Cook , John Wood Cc: Kernel Hardening , 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, kernel list , linux-fsdevel , linux-security-module Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 10, 2020 at 10:21 PM Kees Cook wrote: > From: John Wood > > Add a menu entry under "Security options" to enable the "Fork brute > force attack mitigation" feature. [...] > +config FBFAM Please give this a more descriptive name than FBFAM. Some name where, if a random kernel developer sees an "#ifdef" with that name in some random piece of kernel code, they immediately have a rough idea for what kind of feature this is. Perhaps something like THROTTLE_FORK_CRASHES. Or something else that is equally descriptive. > + bool "Fork brute force attack mitigation" > + default n "default n" is superfluous and should AFAIK be omitted. > + 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. This help text claims that the mitigation will block fork(), but patch 6/6 actually kills the process hierarchy.