Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2365835ybv; Fri, 21 Feb 2020 14:15:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzZ3W3kgqV8C9WJoN0ThHZMZN8Y8Pprrky3kGYQJCdPhutYr71zO36vbGFUOd7QMtuW6Inf X-Received: by 2002:aca:503:: with SMTP id 3mr3945952oif.106.1582323356317; Fri, 21 Feb 2020 14:15:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582323356; cv=none; d=google.com; s=arc-20160816; b=vg0iBx1/L5tuapnCD+6Y1yJ4MlBUWnqeMgsgrrJrqyGSopAfSjdHJu5Gp8rKkPrPAk dkS2YjvpwNddGp1ZTQJSM1FYjMdJJYFkY1KHUux7EDt++LeZaPiU/d9ZOXQsb4MOvU3S YbeBLsnPh3nLo9DvoVNIgTew5z5wXbivm/DFvtq7n2qHAZHamyuLQLwHtWJs/UTxICbn KmW37z12s8czo0dPm9DE9H+J58HQfe43bFSF8MPAs97IH26MgF2etkzcNIY+8rXshFOU S30o2e2mQh0vVpxiLKER0E1oow/qTKimN8x9tI1cVUzCdRTURO1nhglElQvLiwF5mnrp IAGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=kXLJzM+fudX+dk2vxGD8qXAlS6NHJlq4l43rKFobmIY=; b=t/hOidzq8DHgDufZUMKhcbssAVt/LapcP13X7k8uykP/E3lm9UrtJeyxfGoHvhBAB2 SFN82kQnwW0iAnDBNxrD+VMzb1PDTo3tIrzt4tuORjv7WM2Ee/I2aFhgedEMzU956FRI 3lanD6zqIVWX9MA24HhuUbnjGB3Rl1LSQc1tyAcJpRRQOBwBUJMipC4ofMy60DBJdxjW 49asMh2pVNygWxOTvCrVydLqO4Tl8T2pbV9WJlrgS/d/sy+JXgi/1fJ+6hkN7WaFLWH2 kl9/wnxOwNEEvSGHrsVp9rLBBUA1fQ+jQgSf0gvHqysvwd5R6rdJ4vxAAWMuEITHkUnf Gwhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Gc7qTHn7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id u1si2142897otg.113.2020.02.21.14.15.43; Fri, 21 Feb 2020 14:15:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Gc7qTHn7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728815AbgBUWPf (ORCPT + 99 others); Fri, 21 Feb 2020 17:15:35 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:39126 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726725AbgBUWPe (ORCPT ); Fri, 21 Feb 2020 17:15:34 -0500 Received: by mail-pg1-f193.google.com with SMTP id j15so1685734pgm.6 for ; Fri, 21 Feb 2020 14:15:34 -0800 (PST) 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=kXLJzM+fudX+dk2vxGD8qXAlS6NHJlq4l43rKFobmIY=; b=Gc7qTHn74XmNFUGT18DRPr/JsTZZEH/R8iCK7yOVNokNvtxMq24mQGS/A3UBa734Oe ok5JEGXxkAGI5niBWfu8iTF3dy3cbSvEQOUiHM5bk8+K/i1B54Ha/ZTIyDMIPNepANzS 2JlhVJ9Y4Q5Jos3/06GoKWW6fEoxhqP/wI0ck= 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=kXLJzM+fudX+dk2vxGD8qXAlS6NHJlq4l43rKFobmIY=; b=B8+Q9cVbCFuiikRsR3lZrN5RRv6M2UoCuQTwoLklzC1wOEnMEsRO3n7HjSc23B/m9O ufF6MoSrrStNq6Cdcx0oEMIyP3hglZzbAat+jW0saixQm5lDynN5AsBS8z7lfgwOsZm7 6LvYWiFCMUoMukYu5hhAqVGMtbOhurkT/1sGvaHqgbKRvPddfn5JlIHlnGalwf/SU2bw TAmbOW9O1PR23Zn8Ih7kKSoolRtCKjvqdyIR76huHXGMwVq8/NqvYqrOOOs9kAE1cZz+ exD6l25hQJLh9AAGNpzH9xNxRAjOxKw8dsbHI+AuyP6HtszrYSeKE6iWIkOOOZcVGWbG YR0Q== X-Gm-Message-State: APjAAAUdFbe5H+7eQEkXyFk5HNnxCxPiG2tKEb8EYaakRAGw9vRdlfnp RKEHj8bxuzAVi7slvrx04IZwIA== X-Received: by 2002:a62:36c2:: with SMTP id d185mr41244236pfa.203.1582323334247; Fri, 21 Feb 2020 14:15:34 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id k2sm3477608pgk.84.2020.02.21.14.15.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2020 14:15:33 -0800 (PST) Date: Fri, 21 Feb 2020 14:15:32 -0800 From: Kees Cook To: Thomas Gleixner Cc: Vinicius Costa Gomes , LKML , David Miller , bpf@vger.kernel.org, netdev@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Sebastian Sewior , Peter Zijlstra , Clark Williams , Steven Rostedt , Juri Lelli , Ingo Molnar , Will Drewry , Andy Lutomirski Subject: Re: [RFC patch 09/19] bpf: Use BPF_PROG_RUN_PIN_ON_CPU() at simple call sites. Message-ID: <202002211415.4111F356A@keescook> References: <20200214133917.304937432@linutronix.de> <20200214161503.804093748@linutronix.de> <87a75ftkwu.fsf@linux.intel.com> <875zg3q7cn.fsf@nanos.tec.linutronix.de> <202002201616.21FA55E@keescook> <87lfownip5.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87lfownip5.fsf@nanos.tec.linutronix.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2020 at 03:00:54PM +0100, Thomas Gleixner wrote: > Kees Cook writes: > > They're technically independent, but they are related to each > > other. (i.e. order matters, process hierarchy matters, etc). There's no > > reason I can see that we can't switch CPUs between running them, though. > > (AIUI, nothing here would suddenly make these run in parallel, right?) > > Of course not. If we'd run the same thread on multiple CPUs in parallel > the ordering of your BPF programs would be the least of your worries. Right, okay, good. I just wanted to be extra sure. :) -- Kees Cook