From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43B1ECA9ECB for ; Thu, 31 Oct 2019 20:08:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 073A12086D for ; Thu, 31 Oct 2019 20:08:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hkgEr9Bt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729712AbfJaUIk (ORCPT ); Thu, 31 Oct 2019 16:08:40 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:45203 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729711AbfJaUIk (ORCPT ); Thu, 31 Oct 2019 16:08:40 -0400 Received: by mail-qk1-f194.google.com with SMTP id q70so8318410qke.12; Thu, 31 Oct 2019 13:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sIHGBGkRByUbNKcTS1HJ2y+rze5TgM36p6Hcwx2lbUA=; b=hkgEr9BtZlF9VVTtz/g/BL60TiKecrtoA5JBegmEcOWPYJOVTzb61uxB8pwYnZfarl fB6ES77NdnzW9jDnk4Onvj41WV6nI47vnfDpssIaJGnvl/vtcgLzspoM+QiWf8S/S6pR WX16GJWGEW5x6LwzbNvBHoyIBgN8JJCde+eIa4nWleasXQ/qUUncGDFnTrMdxDZr/jpx Ar532N7SzcIgUpFgP4kh1jnAJhGwH10sAbow6TUWjRfXKxQxTVrsFg7DeS90INElAXyg r8NfluuVgU3KYfS6tdsZ3Mat+nzbFeboUNzdC6lgYVv8cV0LgvsfQ/ANGQLgAZuYV5SB Ov1g== 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=sIHGBGkRByUbNKcTS1HJ2y+rze5TgM36p6Hcwx2lbUA=; b=tYxTZDDWz6qQtCHB+g3v7/cLyovYBuBgcfLqYIwauZBUS5gEOpKsKxPW/9f7kgeh35 iflqm8dPylaELfabkBy1+46YXfX58zwpGq/E3vlPGIHfDOLU3BDHVBiCecCPiiK8vGDY 3WzdfqiyI2x2SDOKzOj7hGKQ6nd6XhwaOYCGeek1ZQefeFnsxB+zxo+JgGjzGOJ1DSva t7SbCCzeq6J+BmZHbNlXDg652OclGyYo8MrvT8CbYfaSyrI/eHlG7JOLeZ5LoNMaT3OA IVPwpaJzXH05YgIjFofs/BfyVMUxcs7+qhobpwPUPH1FNYUP8QwQYHqwQEUVJUSd44aF 1DTA== X-Gm-Message-State: APjAAAVAfY61KIRXmkUp5AG0KXUCgll6NBlgnkz8zcjJm2Z86RMtq68i HMofkhSM61zdb7fcZifKAf8Ql5bmilsQhAyfz7E= X-Google-Smtp-Source: APXvYqzEBpOrHvI2T8D00kh7ZiL5/T7glgvayI0nzwhpAiJMzMHt96RhTLWCPaUTEvlldFnBicfsV0H7HNoRAZoUxcE= X-Received: by 2002:a37:a7c4:: with SMTP id q187mr651732qke.437.1572552519570; Thu, 31 Oct 2019 13:08:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andrii Nakryiko Date: Thu, 31 Oct 2019 13:08:28 -0700 Message-ID: Subject: Re: [PATCH bpf-next v2 5/8] bpf: Switch BPF probe insns to bpf_probe_read_kernel To: Daniel Borkmann Cc: bpf , Networking , Alexei Starovoitov Content-Type: text/plain; charset="UTF-8" Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Wed, Oct 30, 2019 at 6:00 PM Daniel Borkmann wrote: > > Commit 2a02759ef5f8 ("bpf: Add support for BTF pointers to interpreter") > explicitly states that the pointer to BTF object is a pointer to a kernel > object or NULL. Therefore we should also switch to using the strict kernel > probe helper which is restricted to kernel addresses only when architectures > have non-overlapping address spaces. > > Signed-off-by: Daniel Borkmann > --- Acked-by: Andrii Nakryiko > kernel/bpf/core.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > [...]