Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp724845ybe; Fri, 13 Sep 2019 05:22:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXH/vblDD9qosDu94EYtz2ulo4DfLHW17JwCPidBIa84TWXj2Qs6QXLdih8Cm1CeA6Rx3n X-Received: by 2002:a17:906:29c7:: with SMTP id y7mr39535790eje.287.1568377352151; Fri, 13 Sep 2019 05:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568377352; cv=none; d=google.com; s=arc-20160816; b=GgS8SlwdrFj4QvDT1lqO1gZIATW1Y/1JG63bKdtGxunKyXqTKYNayChiM61ckkcx+3 t3VjyLYch3JWeZUYuzWz37RLNfXlWGhRwVN/+ansisMUElS5ve3y4bAql1OmGbDUy3+D wLAVFOj/bc+CQrRoflHHsjPDBl9wIXAi9S9ngu1e8skVTttR5PHk64A2FZjZSxxaUjuD wlbkRhuTgSknPa/BqSot6yrzZC0EadWLfXgO87R4EgFadxHlq7oT2SyG69VUvRgzuGuV 0m2rNenF6M7AKUQUVttbxDAxd5F+S9NM2zlxAFNB93IqB347gRcCegHjUtW49rqtF2og KofA== 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 :message-id:date:references:in-reply-to:subject:cc:to:from; bh=kt/sSy59eP+sH9tt/fMxWn5H90FHCIkwQ28lJRQajfc=; b=jgNA/ZjobtwhVjRNzKMqaU8sig6vxvQpBQ/Cb28luN3dLjiOCdO6Z+K0FAGlq9S3FG wJzDtwNgSDUytq4CMOP+a38GNqRc6naPsJ1NvYT+tqYWr2UHrMQe/cbeVkLtUhihJ6O2 q/O4G/PIgzovlDmqWDVZ+Q0P607tlDByQDQrFwNW0ECnpFSsKPWSFVA17jsYl7mNukCn Y8z1odMyqOl/FQWH4ycMhSQ9DL217DDhlfY2ZZVepI1YenIyi5S6A7qgmfeJPmf6Vu39 pK+pvIdJwkVGDON5i/Dgl3wKXFQEhaNcgy6lYf4Kp9eDMhezQi1n6WUKmLp4xy0biT1J cEww== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck26si14791251ejb.285.2019.09.13.05.22.08; Fri, 13 Sep 2019 05:22:32 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388350AbfIMMTk convert rfc822-to-8bit (ORCPT + 99 others); Fri, 13 Sep 2019 08:19:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51160 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388308AbfIMMT3 (ORCPT ); Fri, 13 Sep 2019 08:19:29 -0400 Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2B7AB3A206 for ; Fri, 13 Sep 2019 12:19:29 +0000 (UTC) Received: by mail-ed1-f72.google.com with SMTP id c23so17053106edb.14 for ; Fri, 13 Sep 2019 05:19:29 -0700 (PDT) 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:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=FUyOcPi0NHmHBGgNXqP+P7obEs5/r8uMUZC4jE6n+fs=; b=PbtLQIkRrMR3Z3/4aBjbVpRMQ/VB9wZuM2nR8DO5u18K4MUo7vVZEoj5v5TM1t2vMC 0owQfWefKo3kXcQYn3tRb5gXkHb5/V7kITQ9mmzbcxu4v+/1hCnP+ucEi0eruG/Cm942 XBvx0Am6BQcAI/jIuSidulcIAOxB5cE42BDCMzOrB9gbk1VB3ipzgvM2LwkrBDjd2m6B 2sO+LYAqs79B5dcoS8YrEmjIcgVivZFIDJzCTJ+pQncFp1hAg6Sshky8muYkaUDX10Jq u4v/+IfedsZj+spM2H+0KLJ02hNTxLbN/I0HcpQD8j5f/2hC15W3tEsoMWnea1eYYHuA 2gfw== X-Gm-Message-State: APjAAAX2UdrdZYlXWzhVD2PS1iFSM+QUMz+FfEzivQEIV7e6+O96jNg/ 3oRoRXwLgsaQXPV+lgJYA/3Y9dobfysgTSkg/omLkBRoSMnDvtbtJwO+FrHzonJVS60UyAOyYT1 mz67mueRiaihAlPoEkA2Mwj73 X-Received: by 2002:a50:f30c:: with SMTP id p12mr46858204edm.299.1568377167967; Fri, 13 Sep 2019 05:19:27 -0700 (PDT) X-Received: by 2002:a50:f30c:: with SMTP id p12mr46858177edm.299.1568377167788; Fri, 13 Sep 2019 05:19:27 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk (borgediget.toke.dk. [85.204.121.218]) by smtp.gmail.com with ESMTPSA id p11sm5241842edh.77.2019.09.13.05.19.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2019 05:19:26 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 68597180613; Fri, 13 Sep 2019 14:19:26 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Sami Tolvanen Cc: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Yonghong Song , Alexei Starovoitov , Daniel Borkmann , Kees Cook , Martin Lau , Song Liu , "netdev\@vger.kernel.org" , "bpf\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" , Jesper Dangaard Brouer Subject: Re: [PATCH] bpf: validate bpf_func when BPF_JIT is enabled In-Reply-To: References: <20190909223236.157099-1-samitolvanen@google.com> <4f4136f5-db54-f541-2843-ccb35be25ab4@fb.com> <20190910172253.GA164966@google.com> <87impzt4pu.fsf@toke.dk> <87sgp1ssfk.fsf@toke.dk> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 13 Sep 2019 14:19:26 +0200 Message-ID: <87h85gs81d.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sami Tolvanen writes: > On Thu, Sep 12, 2019 at 3:52 AM Toke Høiland-Jørgensen wrote: >> I think it would be good if you do both. I'm a bit worried that XDP >> performance will end up in a "death by a thousand paper cuts" situation, >> so I'd rather push back on even relatively small overheads like this; so >> being able to turn it off in the config would be good. > > OK, thanks for the feedback. In that case, I think it's probably > better to wait until we have CFI ready for upstreaming and use the > same config for this one. SGTM, thanks! >> Can you share more details about what the "future CFI checking" is >> likely to look like? > > Sure, I posted an overview of CFI and what we're doing in Pixel devices here: > > https://android-developers.googleblog.com/2018/10/control-flow-integrity-in-android-kernel.html Great, thank you. -Toke