Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp306858rbe; Wed, 28 Feb 2024 23:13:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWuq4kF7vh+YfskWxikJMC9Y56MF6cVxHAfGYP6G9h7LGIfnhcAQp6AiIAp0rHCQ3bOFsxVqRbncWqB6y/v28ejy1eUKIWm2MYJl7YznQ== X-Google-Smtp-Source: AGHT+IGKMnlBQ83youqGYGBECcjno0ZkmptxFRTH8RArTekF8jKuuXj7v4Dgf0U3fJ6PSXqWdNeI X-Received: by 2002:a1f:e0c1:0:b0:4d3:3f2b:dc63 with SMTP id x184-20020a1fe0c1000000b004d33f2bdc63mr1114590vkg.5.1709190822679; Wed, 28 Feb 2024 23:13:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709190822; cv=pass; d=google.com; s=arc-20160816; b=HJt7uFJNE4PjW4nngzh/c/W5WnV+wmkn5QP0+s7eyHtsjq0TUgESJM3sp/6LL5ZDSO rdFtyHx3viAoOoq05HDQgH9yRH31Z2YFE73B5MVzEVTICEDSebRW5H2Ab/DpsV5BVykB By6bQAAkILVCMnsUv4m/Rg0Yz6t4BWhmiARzkEokfSwxbVAPVkyPrs7jOJ7KPDTG+TLn BG4bE7CsJgxNfev5DbMhRwVM7AJNI3D9lOkL3FRpyfl96d/do9N4bpkNV3k2NcB2vdTT Ba8aKAwNlZO4sQAKGu2o39skxtRM/QnhDgk/XgjKYAme7xFFmActuy7VihAFpASPCjnu n9fw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=CJiFNZPgsGm3njd81nAD8wjy8j82Am2q3tRT4b1oN3k=; fh=GZ3hBNN7A3v/lButcpOijLAs06CZYqAhqOKWAt+e9fU=; b=lUV4MITCfAeRXg3wyg/pCLLNqBviIx5rMHU8JZly3t+lzbc5jRerlZ0WdqT2CTdyJf 5GzO9Pi+57P93KjKI8jF2wfH7YdjpUgrGYK9UWxbCIasZrOpgziONGfeUk7pmh3jofCu jff59KMbnmjVqCqvwQAmz3gCq982/vVuYPDufEuce6Ac66rKptscNghYXjmHZWT4haMB Zok2fm+CQdIv4i/Zb7WIvKdCraVNSNc3FfYzswbVyqubZY7yBMy26e1+eHGvr1fyDipc jJnnBprPl9gSLWqChrdmIac3ETsiSpqf0aeAos/EyYQY50NOqsFMR2fKMunaxs1NOGOu DgoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OUGlU738; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d6-20020ac85446000000b0042e75c14eb4si804790qtq.806.2024.02.28.23.13.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 23:13:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OUGlU738; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6C92B1C2170E for ; Thu, 29 Feb 2024 07:13:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D0854503B; Thu, 29 Feb 2024 07:13:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OUGlU738" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14855446B8; Thu, 29 Feb 2024 07:13:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709190805; cv=none; b=p6lmd6WfsVkv8V8EhFuiCZd4qyXAR9UR4exEcOJIS9OrB55CBMVN0Zd1KbczT3HszLEhG+os1jT604Q/naEdnncUtK6DZVVPkad5jsTjHyLFe+4ll5abluIfQXC/hfHYiTZza8l/OkKQAe0pVhqcEWuXE6phoR7pSPgtWxahpTc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709190805; c=relaxed/simple; bh=sTFRZabajf/krYk3PM4o4UwGsA4jCPH/kYX/YIBaFFQ=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=rrou+qyt/mZB5i6rY5HjB2GFYmu6UMU3/LcpUhAgwEd4c9Zu4+zUl8aykqOr0l00V2QjOaY1o5AISgPbM5x+zONjMpQMkG6puRABdnaUn6RCS1g77m8sWIoVMsmshvVR9GH24SpsNrEPe0V7V3VsvjdV2CwDpeazsjhwQbiiw2I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OUGlU738; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98225C433F1; Thu, 29 Feb 2024 07:13:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709190804; bh=sTFRZabajf/krYk3PM4o4UwGsA4jCPH/kYX/YIBaFFQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OUGlU738hUpRVx01d84rqAhOzR10pyvcWXzBPl3tO/bB0Ve/kdCrehO4Nvx7CNknc zrpXNjLeKSA8R10DDUlU9Euuer0LPnly3RInbJbxAd3H7CTMDjQUXxjB6PzSbM64UQ 94U86xoToN7HwCt8P917HtYwhQdXb1ENvc6Dj5pdtv/I0KC2QZfhVqYj8HyVtbBHtI L40MwM5UeB/+WMvCHr3E7OZ7koK23UXGBLX/alScaAmG5kFCKjKboruwtYlov6xQOa diSK0jIl+0u04MeA5uel3UHKZA8Cz6573rDBfoiZcAj0nZlS/+zZKnm1jFzoJffcKA tw+pk4LjuB1yg== Date: Thu, 29 Feb 2024 16:13:20 +0900 From: Masami Hiramatsu (Google) To: Masami Hiramatsu (Google) Cc: Jiri Olsa , Steven Rostedt , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2 0/7] tracing/probes: Support function parameter access from return probe Message-Id: <20240229161320.978190f42dcc1a521c192e7d@kernel.org> In-Reply-To: <20240229153855.6fe3fb454cf56eebc6ea9953@kernel.org> References: <170891987362.609861.6767830614537418260.stgit@devnote2> <20240229145139.a215085c44add62302463312@kernel.org> <20240229153855.6fe3fb454cf56eebc6ea9953@kernel.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 29 Feb 2024 15:38:55 +0900 Masami Hiramatsu (Google) wrote: > Hmm, this seems arch_rethook_trampoline caused the issue. > > And curiously, it depends on the number of stored data. > > OK: > /sys/kernel/tracing # echo 'f vfs_read%return $arg1 $arg2 $arg3' >> dynamic_events > /sys/kernel/tracing # echo 1 > events/fprobes/enable > > NG: > /sys/kernel/tracing # echo 'f vfs_read%return $arg1 $arg2 $arg3 $arg4' >> dynamic_events > /sys/kernel/tracing # echo 1 > events/fprobes/enable > > I also confirmed that on 'vfs_write' caused the same result. 3 arguments(24 bytes) is OK, > but 4 arguments (32bytes) is NG. And this may be the fprobe bug. kretprobe events doesn't show this issue. OK: /sys/kernel/tracing # echo 'r vfs_read $arg*' >> kprobe_events /sys/kernel/tracing # echo 1 > events/kprobes/enable But this is strange because both uses same rethook... Thank you, -- Masami Hiramatsu (Google)