Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1215078pxb; Wed, 27 Oct 2021 22:36:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJa+LXcteqlPJ1Lg4LjJ+hoT1pPYcxET0j+ZWwo6kMrMzXgywBY7UiKN2l4TMyKRMqGYPZ X-Received: by 2002:a17:906:1456:: with SMTP id q22mr2568890ejc.291.1635399409045; Wed, 27 Oct 2021 22:36:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635399409; cv=none; d=google.com; s=arc-20160816; b=0lKSwfEOJUnJkGNOeDK6yU9HJjnKHTFwxrgyOjBKqRmg/VvKc84UNfbPAEu79Lx3rU goFMD5Z+IFqUWY/nXeVUTJsOSpjMmOt29kMhzLUFoPoPheRdmVKVmd8Azyyc76v+ni5t SwbZjbX9989S/RhmwD0se1AyC1VOiu4Fh/EQdSQB++t/FB3pi/ZJfXSq7m5Zezdk/LsI naKMuL9QrjyyLbVgRcyTT7qaHzCDXVlA3mAPiFbFIMLWb9Gkk2Sg+oB1IpS3TpvMAipK 2QGG0HQFEbdZW+j4/C1oFNzZQ0XyU4rSHmxUbA/OIeaJGC3QNyZ7ZpbRIoNKxR6obxly 3Y7g== 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=FzgMEhNPuzCJdQVPobNw/EQcb8ad/MKNbDKctRsA7G0=; b=03f2BLpQu43xSQqhU+XMRKfu2V6kxiWJuMYt2zQjU41Bu3ZbsLDTkHS2H0w3bFPwTo SxkJLKxG2rG8hVC7U+Wa5BH+gR93znWsuwnoZh0IDTIYIed7rKHJXKqhGzMZIt7nV/Yw l5t3vc9tXg/USZdLv2UQIRsW6D168jK2fAoDzG6VkBlFDCk3GxHXcHLCoZYCNmyam8e6 jw24dicT+iRHYq7odOPio6lkhVVXHt/n+SKRUydlt7Oriy48fZQUQgELrSDQxkiES/63 QWL1Sv3XqLe7kUeT2RI4CJLUgR3jnE9AipO0UbuuK3IeQkIPzyAdz9WYDjtq7hIU5edT FQEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vvUNnNQU; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id go12si2677958ejc.299.2021.10.27.22.36.25; Wed, 27 Oct 2021 22:36: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=@linuxfoundation.org header.s=korg header.b=vvUNnNQU; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbhJ1Fgf (ORCPT + 99 others); Thu, 28 Oct 2021 01:36:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:41404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbhJ1Fge (ORCPT ); Thu, 28 Oct 2021 01:36:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 69DDC60FC0; Thu, 28 Oct 2021 05:34:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635399247; bh=AdJsroB2m4N/mcOAS9TBrbsJCkhR18EYD+Bj6Kog6+8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vvUNnNQUQwgRQI/Ve5DoxtG9rFs22IzvE7WMuampCFn3rxohuJxiBa/k/dwllI1Qd 9A702w46K0XaF75Vbl+z/FuWFmNkD8j95WLfr0cpzz/sg/tBsPiToHM2ogIqp6pzyp Uzb7ANh4WX7MDT8K5BtOn0Lnk13gCIpEQmjZeEJw= Date: Thu, 28 Oct 2021 07:34:02 +0200 From: Greg KH To: Pawan Gupta Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, antonio.gomez.iglesias@intel.com, tony.luck@intel.com, dave.hansen@linux.intel.com Subject: Re: [PATCH ebpf v2 2/2] bpf: Make unprivileged bpf depend on CONFIG_CPU_SPECTRE Message-ID: References: <882f5c31f48bac75ebaede2a0ec321ec67128229.1635383031.git.pawan.kumar.gupta@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <882f5c31f48bac75ebaede2a0ec321ec67128229.1635383031.git.pawan.kumar.gupta@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 27, 2021 at 06:35:44PM -0700, Pawan Gupta wrote: > Disabling unprivileged BPF would help prevent unprivileged users from > creating the conditions required for potential speculative execution > side-channel attacks on affected hardware. A deep dive on such attacks > and mitigation is available here [1]. > > If an architecture selects CONFIG_CPU_SPECTRE, disable unprivileged BPF > by default. An admin can enable this at runtime, if necessary. > > Signed-off-by: Pawan Gupta > > [1] https://ebpf.io/summit-2021-slides/eBPF_Summit_2021-Keynote-Daniel_Borkmann-BPF_and_Spectre.pdf This should go above the signed-off-by line, in the changelog text, not below it, otherwise our tools get confused when trying to apply it. thanks, greg k-h