From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DDEA1401C for ; Thu, 5 Dec 2024 16:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733414807; cv=none; b=jDrwJNVki8GbRsV/X4qOaXvYNGxuhw/CNQgg+YQekYy7d+k7YR/eQULZwlUyY/Z3A6J3CV7TvG6aLOx3N+G+MAsFX5c9kg3Sjy8DIww4RHhWQ/+1CtzyDpKnUzpOSM/5opkMRWTqTYK/i5fBGWUERXMYNDgYm29s5V6RRLwDo/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733414807; c=relaxed/simple; bh=A2DnTOze90pmj6g5vc3azSV/Ln9IgzLkSP0Xv7QklXw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=T9QO1IQNN26R4RbpA0dXRvMbygbJJxefzSgqBu/6V0Q33Ksc75wwGZBDpLnPamhdtJ6OIQFN+4cBxgiIK7F53ojOlRvdzyNUwo2peliQC9p73b6P+P7M//yFxFQdOLxC/8OKMesWIXv3gXPKZEvmOdU+hOpw3vUxjKSDIt9PXDE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NK4OrzcX; arc=none smtp.client-ip=209.85.166.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NK4OrzcX" Received: by mail-il1-f179.google.com with SMTP id e9e14a558f8ab-3a7d9265e94so7269405ab.1 for ; Thu, 05 Dec 2024 08:06:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1733414804; x=1734019604; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=G7E/0K/5K1BjOut5mLlzCa+24O07aK8RA1Bdk2pEJFM=; b=NK4OrzcXhegQ2guYPm8vkhfQ6ZnqrEEGeafEDW0Hy5rqNhvnm4ENDTIF9HkKheblf5 apjMe7CkhN4zFNg6BNlV1ACwu+vcqFMlThTNSlpN85rKe6R8q6232ni6jciOfFK6Vytt Dee7afaB97MHYXC3qJkTlgg74pkp0rKZ9DIRA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733414804; x=1734019604; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G7E/0K/5K1BjOut5mLlzCa+24O07aK8RA1Bdk2pEJFM=; b=j6UzQUDlOA6FbByhv5d4Be0hpyNajGAck7k8pNgbCEa/pzmQFFOnfmdWj7nKiMqOdG MZnNstnlE7oPaVAlff0n7EmbFJ2LTNcW7IxfZbM+1PeTByML+bF8LpVTMuhhlb+VMge7 rDstOh6KcBloD5lrSKiX1IAD6ZgQvNXEfPxCgOPSz4kUEzwX4jEqoNzQJOgGwJt/TlUf CBBwxqdS+0Rx60kVbU3DwmEq6e3UwjObcMoYedTdZOjgisyqf53ayUfqDrJWlbZ+bZdw TFdsz9pPgDCMyl+vcvQJti2kS+H93FukzWM9DAuXXwrY9JGbrUXy4By9+y1SAk53KNB3 MGeQ== X-Forwarded-Encrypted: i=1; AJvYcCW24V1uAxCZCQFHGrjbO3CgjjW2e34qfsv1i63lajyhyCtXEbyXgvWxe21Hz9hRzhfYT1ksSkXZQVT7NTM=@vger.kernel.org X-Gm-Message-State: AOJu0YzbS0XDhYjRXJjxWFVK7JK4yyOkzHQbMN3sNXAa7l3ZKaN+BMBL HyGoC72s2Aw0tyB8BlzB+HFVzbdlw+yLVlRx2NWGQtv4EOmUhLW+hXJIn/v/Hf4= X-Gm-Gg: ASbGncuF40NLDm70FCRz8dqz+6Rt3NrTWkzx8J1lby/hHep2rAzX7Wd9B81TKbi1UIB PLHN1jolNgCSsomFhPGYgYU091D6OflN/S5xs7zJVIoNZVuKpryBzHtRfK4ciBZqpPfFoBwbqcO JE6GKx352S8wavSda8TdTL/1XNDIW3IVxOGpc2sQ0GnHkACe0E6kUq9Tm/b64QuwRKRGnlQIDSC jimquEYZUtCOBxGQ45Ad8SBoQWIBhkYOm9fcqFVuhkFigA/jVeW2IU/eutZAw== X-Google-Smtp-Source: AGHT+IECQoo3AU1H3Cux4NWyUqkEkqx386V5pN6kVl0r6Wn3PSuY9bnBffRQmWJX+QbbsEJHmnHHEA== X-Received: by 2002:a92:c56a:0:b0:3a7:dfe4:bd33 with SMTP id e9e14a558f8ab-3a7fecc82b3mr114487405ab.6.1733414804406; Thu, 05 Dec 2024 08:06:44 -0800 (PST) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4e286224210sm337614173.161.2024.12.05.08.06.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Dec 2024 08:06:43 -0800 (PST) Message-ID: Date: Thu, 5 Dec 2024 09:06:43 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] selftests/ftrace: adjust offset for kprobe syntax error test To: Steven Rostedt Cc: Hari Bathini , Shuah Khan , linux-kselftest@vger.kernel.org, Masami Hiramatsu , Michael Ellerman , Madhavan Srinivasan , "Naveen N. Rao" , linuxppc-dev , linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20241129202621.721159-1-hbathini@linux.ibm.com> <20241202144111.75d1bb3b@gandalf.local.home> <20241203202008.1f30a266@gandalf.local.home> Content-Language: en-US From: Shuah Khan In-Reply-To: <20241203202008.1f30a266@gandalf.local.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/3/24 18:20, Steven Rostedt wrote: > On Tue, 3 Dec 2024 18:01:06 -0700 > Shuah Khan wrote: > >> On 12/2/24 12:41, Steven Rostedt wrote: >>> On Sat, 30 Nov 2024 01:56:21 +0530 >>> Hari Bathini wrote: >>> >>>> In 'NOFENTRY_ARGS' test case for syntax check, any offset X of >>>> `vfs_read+X` except function entry offset (0) fits the criterion, >>>> even if that offset is not at instruction boundary, as the parser >>>> comes before probing. But with "ENDBR64" instruction on x86, offset >>>> 4 is treated as function entry. So, X can't be 4 as well. Thus, 8 >>>> was used as offset for the test case. On 64-bit powerpc though, any >>>> offset <= 16 can be considered function entry depending on build >>>> configuration (see arch_kprobe_on_func_entry() for implementation >>>> details). So, use `vfs_read+20` to accommodate that scenario too. >>>> >>>> Suggested-by: Masami Hiramatsu >>>> Signed-off-by: Hari Bathini >>> >>> Acked-by: Steven Rostedt (Google) >>> >>> Shuah, >>> >>> Can you take this through your tree? >> >> Yes I can take it. I do have question about whether this is >> a fix - sounds like it is from the change log. >> >> Clearly stating that it is a fix will help so it can be picked >> up for stables. > > I would say it's a fix, as the test currently fails in certain scenarios > for powerpc. > > You can add: > > Fixes: 4231f30fcc34a ("selftests/ftrace: Add BTF arguments test cases") > I applied this to linux-kselftest fixes - will send it up for rc2 or rc3 thanks, -- Shuah