Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2847523rwd; Fri, 26 May 2023 12:09:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5sZ4lLMsvvJGQ+6u+el20CG6yUyRhMZ8OeL67OReOiu1f99LsHMzMgu+3mNgVgq53Vapjv X-Received: by 2002:a17:90a:ca88:b0:255:2e48:70b1 with SMTP id y8-20020a17090aca8800b002552e4870b1mr3364591pjt.26.1685128190578; Fri, 26 May 2023 12:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685128190; cv=none; d=google.com; s=arc-20160816; b=ej4mo7ygNNNg3weivchz29/YgbwBgL9ctTLGU+PRH3X5OXFiqzaaxsgeOOY50O2B+s 7eZzhguyQwOOuVSYD1XnYQWE7qR6npZRKQle6s2xXa+fhgOsLNsLxjfaMtzMdxZmkEcj T+VlWiq6I9Xfz53EUJ+vZAY8vLFr/hWy9gNmjt/fLkR0GYaVT8lhemDF+MPj3bsfF+dB peh4p+jaIgzeSpJBexyen268pZVqWx3RBWabZLHNOtzWKQSXExRkRH/pRW7eGK8aW4Cw jUmlNOuBUGHDIbBWfyQdQQ2mwmlaQrnzLMA0mCN+rqxv1edDWgHR6FtyksMsXtlpxcA+ 7Xow== 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=FvdzceZomaXiAP8zg+dxcckUNrrnHH3YQFppRqWPV3Q=; b=CP6WSVZSh+oLUeF/tSwVsBq5jecGJ7uXtgQ40iMUt2d9k2yfJG3JEd4Cl6uiM8Ore2 FbVhjMk/6XH8Ri5ad6IpsdwMYfQ14g2wfYaqkFwh5NVEM5Efx7B7ci+a8Og6fVs795TG PJSU0cvodE7cAEamPl98v71XRt/R106ymc3PsG4MWASkf1B2taVhqp9V+PZ0ZkOFnWqK OsjTDLVjQkz9ccS5qP+NAOHN/W5hazBpYzESnZKJE6fIlBttK0p0vXhcpunMI6dQRPBb pbG1uPiz54KFmEKgLqokJl6BYRuwVJKmfOA6OtqpdrA4xbn+ddbQP0VoDw92YzvSY3xQ dmqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j+nYEZTg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot4-20020a17090b3b4400b002478bba4da2si1819720pjb.127.2023.05.26.12.09.30; Fri, 26 May 2023 12:09:50 -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=@linuxfoundation.org header.s=korg header.b=j+nYEZTg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243561AbjEZSy0 (ORCPT + 99 others); Fri, 26 May 2023 14:54:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243572AbjEZSyX (ORCPT ); Fri, 26 May 2023 14:54:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FA8D19D; Fri, 26 May 2023 11:54:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 86BD860F5A; Fri, 26 May 2023 18:54:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6055DC433D2; Fri, 26 May 2023 18:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685127261; bh=Urg86fkvb89N1W4EU22LaP2G2rEesdWCWKmXrLhixPA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j+nYEZTgiX0csmwuA4GsCM/V/trUTp+2wIJY1+q0YXr3lfeWIc0JQ8XaLhi81frAG u5uFSqDQBRakCBxnbiR7o/6J2w7YB5QmbfVH0JJuATcydi0/Flu1+0Cw/T1dtCz6Mr OHf5lqgpAN9lXal0ddy1I44pvXiYtrIseirqKkY8= Date: Fri, 26 May 2023 19:54:17 +0100 From: Greg KH To: Jiri Olsa Cc: stable@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Tsahee Zidenberg , Andrii Nakryiko , Christoph Hellwig , Daniel Borkmann , Thomas Gleixner , =?iso-8859-1?Q?Mah=E9?= Tardy , linux-arm-kernel@lists.infradead.org Subject: Re: [RFC PATCH stable 5.4 0/8] bpf: Fix bpf_probe_read/bpf_probe_read_str helpers Message-ID: <2023052646-magnetize-equate-2b24@gregkh> References: <20230522203352.738576-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230522203352.738576-1-jolsa@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Mon, May 22, 2023 at 10:33:44PM +0200, Jiri Olsa wrote: > hi, > we see broken access to user space with bpf_probe_read/bpf_probe_read_str > helpers on arm64 with 5.4 kernel. The problem is that both helpers try to > read user memory by calling probe_kernel_read, which seems to work on x86 > but fails on arm64. Has this ever worked on arm64 for the 5.4 kernel tree? If not, it's not really a regression, and so, why not use a newer kernel that has this new feature added to it there? In other words, what requires you to use the 5.4.y tree and requires feature parity across architectures? thanks, greg k-h