Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2375190rwd; Sun, 28 May 2023 14:22:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6sJKnFo7fgcs2my/JMqG4acgF8WGuv9ZnFdWnROniIvq1/NjpFJ9ycWRoQ30Egbr4iGKUZ X-Received: by 2002:a05:6a20:a11f:b0:10a:b2a2:a301 with SMTP id q31-20020a056a20a11f00b0010ab2a2a301mr7344231pzk.12.1685308973295; Sun, 28 May 2023 14:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685308973; cv=none; d=google.com; s=arc-20160816; b=RlhPRuVMIvNlS/G7zlaUUPw4nBo5YRDEU60KHIsCI5yJ3/wqn6vrvAisoDxkJh/HRZ Vz+M1wVe053skWyOTm1TzANJMJXSQIrPtcsJElGhPnzIYtrEcm4umk4jJoQZYaHNMJ01 vjlhGzPKPWtHb2wq7Ckmnl4PnmvOi60/nxLofNLzrNgWq/FgKa7bFdxTJPdEGUzjErx0 toL1WjRb8qasE8DpxU+X8Y40WrHktiXoh1IqUFP9sO4F3S7gb26QuAYZMoxFNCRdj42M kgjWGofsuWtwSM66ApFT74skjlM5Mn8M3BLXalMKXSGoN+Sj0AK0WycDys2+Dv9b53c5 gFUA== 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:date:from:dkim-signature; bh=Zo6CAhX/gKpTGl7xNzss4y9YGs7PPZhQ0B+6ZO4rHpo=; b=DT9z4AU0IWUOnIJ6HfH9FvXglmnMgyYbZVSBZlmIQWn+TW9OKNmiHUv+DfohQ7U2Bl dEs4GFOsc8qnIUd/IcAjrBZ+7PGCLpSyOAmHxFojfcXRxSer97+zIXRtwJLOdxy3taWb iAfVg6NbfO5VrFPv1cecwPH61xIBcSsKfIESrl4hVMcNkGDlRHHglXo91YB4pzT3WNcM QmjU5lehgKB+2v+ml4wBlQGBPsbcNf1lvohSidWw0NaKyop7K4qfLXVf+2QbXGg/omwU hhyyz1O+hU5Mj9FB2rjjWGJGgbhaFAmrxObm+NLbBBJjd0RrhXNWd0Ck0hr2avc1whGu /jUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=lmyAX8Yv; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 186-20020a6306c3000000b0051ba2478f50si6035002pgg.511.2023.05.28.14.22.41; Sun, 28 May 2023 14:22:53 -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=@gmail.com header.s=20221208 header.b=lmyAX8Yv; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231442AbjE1UC6 (ORCPT + 99 others); Sun, 28 May 2023 16:02:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjE1UC4 (ORCPT ); Sun, 28 May 2023 16:02:56 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13144A8; Sun, 28 May 2023 13:02:55 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-970028cfb6cso521288166b.1; Sun, 28 May 2023 13:02:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685304173; x=1687896173; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=Zo6CAhX/gKpTGl7xNzss4y9YGs7PPZhQ0B+6ZO4rHpo=; b=lmyAX8YvijPl9JTnu/+1ez+IEbz4YIX0RKM0OEzi8J793Xt/s9RCgCl7j/nm2Ge50J kKYDFBKL9WNE87XQdkgWWJiFktlw7XZpElXXGp/XQ9XBJ1EFmxgWgCHelRV1wqjbdrV4 AngIoQgk1xxWX/Cdw3tiTOu4g1ZI6pWpjvF8s2ckLO5giUYibQaVO+NC5FdWYE4nenO9 +FHom1aw+edwFW6s0Y+QaUhHtRAifMTuj2HGIyRgmUFrjwIv9iMAjEW6kuEYYnhFO9tY xyLM63K5Zzg92QWMHd2aO4qscr9I2wK/Q8PzFPeH4rybNacWDLqFBFrmnjhi9BxQ4hIr j2VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685304173; x=1687896173; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Zo6CAhX/gKpTGl7xNzss4y9YGs7PPZhQ0B+6ZO4rHpo=; b=eeb9lHRvkJGIkUGJ2I45xkApmYT5172Sjvr2t1BeAgFI9f4It4XknE2dODpX6HR0Dz YCNTiYEP3xzdcZJ9DiOv9DcI5oYL0/izjBXIKQiRQ7BN+2Bu5rltvYStqkbYCUrV1IlL a74KcRUMLRptfAJjCBEhTLRS2rY01aOQVi3ZTyHXm+GjX/NTw0vuiIy0tPFvEplMhAV7 g3dvbbgrT3JQe7BaSV3/bDCMp/VYdSMz/hivHt3u0+TsjksHz1nYZjNdI+/2nJRe5U8b KBwBCs53G7pF/Cd8SjHOpqrmnDVU1a0vV7lwCGJmOQgZ7hoJWquDf2ag4YiOYl9amZsU gjag== X-Gm-Message-State: AC+VfDzwYF+MojJipuFEr00l78b1t0DEKSZeQ0Ein9suvPh9q92KnR5O iXrctYXVz3QaGgRC0MqKf1Y= X-Received: by 2002:a17:907:7251:b0:973:d953:4bf7 with SMTP id ds17-20020a170907725100b00973d9534bf7mr6095191ejc.48.1685304173207; Sun, 28 May 2023 13:02:53 -0700 (PDT) Received: from krava ([83.240.62.205]) by smtp.gmail.com with ESMTPSA id v19-20020a1709060b5300b0096621340285sm5027344ejg.198.2023.05.28.13.02.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 May 2023 13:02:52 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Sun, 28 May 2023 22:02:49 +0200 To: Greg KH 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: References: <20230522203352.738576-1-jolsa@kernel.org> <2023052646-magnetize-equate-2b24@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2023052646-magnetize-equate-2b24@gregkh> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 Fri, May 26, 2023 at 07:54:17PM +0100, Greg KH wrote: > 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? we have a customer running ok on x86 v5.4, but arm64 is broken with the same bpf/user space code upgrade is an option of course, but it's not a big change and we can have 5.4 working on arm64 as well I can send out the change that will be closer to upstream changes, if that's a concern.. with adding the new probe helpers, which I guess is not a problem, because it does not change current API jirka