Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1303246imk; Sun, 3 Jul 2022 23:38:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tLks0J/3bmufzaISgA1c7Y26ORFB3jxsUUmAUjvRchVUzGtKnKaq+iNI+07cZ9U6R+Z+K2 X-Received: by 2002:a17:906:a10e:b0:6f3:e70b:b572 with SMTP id t14-20020a170906a10e00b006f3e70bb572mr27284001ejy.546.1656916713826; Sun, 03 Jul 2022 23:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656916713; cv=none; d=google.com; s=arc-20160816; b=P1ZEhn64mNxoiFJEuhT47z5VH7qx+HBL2XIblyOK7uUFc/qdpspRk2fGyWICABPU3Z xE7mWaAt8g4EKBFqeo8E7hnWxETJ+0PRR2HDIhsy7PPhVuo0uzFAEM8lHeuKpx2cYQWg hcfTYFbpHF5HwUP3sc8J19Q/TxbJ94sUqCnZ462UVI5KgUeZwcqqYLJup4K6xjzUMT7L F93lveIEsWV2Gew6dM2r9oVcspqSUM2NQ23coYjagTzhNJRYqzPUskmXNLbAD1o6GdWm w+ESZ1CO71oMYYEf1/1QaqlpBMkzA8Ma8XupvYEjB9/baaUpo1PG8zlyGEzQO50/FLe4 Cxvg== 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=yrvtS4/CetUunA8Ng+oU0i0AGmFFjOviHSWGXS5/frg=; b=ATGZt5/YMGsjyYff37g4HvCHyEi7Ic3KrNQRhiq4hqqGmZ2ew9MwtwG94SrDLfgBIC d9MP7alL7GmpRx+J5JZUVON/ahY9X/al1kkBXI6muFaiWPnzG8/7ee7puotdkiy/KYdr LGv+ZiE+UaiT60U2yVcywwFpWLAB4TVEcSMioBpCYAjJVF8i6RoD+ztXcUW/3sxzDmfq zQ9Yiaz85/hWlSiNUgeaE/VOrbNsWO4BbFml1d37pransz8/FoIyNNq4/5nzXXR9Uc/V e+nzuCggxg/dFLSSKiE0ounwNr59fGFj79ejhFNY7tWYfY4XxzHLEgXlJMGsxpnLcR0f 09dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ulMYdXnk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht11-20020a170907608b00b0072a87f63748si13748420ejc.908.2022.07.03.23.38.08; Sun, 03 Jul 2022 23:38:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ulMYdXnk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231513AbiGDFyA (ORCPT + 99 others); Mon, 4 Jul 2022 01:54:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbiGDFx7 (ORCPT ); Mon, 4 Jul 2022 01:53:59 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60BA96390; Sun, 3 Jul 2022 22:53:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=yrvtS4/CetUunA8Ng+oU0i0AGmFFjOviHSWGXS5/frg=; b=ulMYdXnkyrnIHS8wa55jT80W8W GTjxvHPZ9zXmfJPTboZ88bkqyEedL9hA216B6IrWZtlpYCmBz7tRe6RgeLG13QQCm3Y9VYvkKE4QD /lqnSHkCo2Qz9/XofJ6apVv6eOIqV9H0tJJJBFyDX7NJbyNuHOil7g1hSf2GgWYprbrNbzzqeSFwS 008olUcPnpCNpTa1FrTCTESJAPx1osPc+RdqJ0YsB5bAMwXBu4cg3zw6x4marFNn6EfqDPEB5M5be tWgb96tCQSI4J4Dz4AHRJEuoHMcrKm4US4wJVudKq1A0x0HqNKdnwJDLsfrL90ZjZCt2OYmjOf30F qVrKxFEg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8F1h-005Bve-Ib; Mon, 04 Jul 2022 05:53:41 +0000 Date: Sun, 3 Jul 2022 22:53:41 -0700 From: Christoph Hellwig To: Yixun Lan Cc: Palmer Dabbelt , linux-riscv@lists.infradead.org, Paul Walmsley , Albert Ou , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH] RISC-V/bpf: Enable bpf_probe_read{, str}() Message-ID: References: <20220703130924.57240-1-dlan@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220703130924.57240-1-dlan@gentoo.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 03, 2022 at 09:09:24PM +0800, Yixun Lan wrote: > Enable this option to fix a bcc error in RISC-V platform > > And, the error shows as follows: These should not be enabled on new platforms. Use the proper helpers to probe kernel vs user pointers instead.