From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796102407; b=MjbzUf1WW25fnuDTYH8U0IpDec+5z+OHfiEynyrBttQdSYAqp6+A8e63a/5I5PTNFCE4 uP2lrc3tH+3Tu08/bG9bWjjW+ZUzjgiCk4ALdc/PaY+yCZ7ZabXC6tBEL08nmAtBzzRB+ zqcsvHfzLQZGedQNOPg8E+1Zc+9BGIQTMhaZaxODbhlXvlu5R6pq7UpuyzSx9RwpQJE0g BWu0sI21Qhb+kjjZTELvscrRtZvJMQoZNOVowgdjIkvpxndRngy/irf2LKRvGFd7+f6te 4UvDeKg5S244OyogwHt1vLfukj1FeuT7lFQrKH++C9qBKhyJOsoKA18uNDCvngHygag== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796102407; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=Dj9JV3BW/iFelb73atwH8NZaWDWxxMAP+Y4ruyN3WSc=; b=41r7j8uTPAFd4ddvipIpem3h0Ldoyl4A+B9WbTfkIMwI9c/zdAifaLQ4Yzk7JFTZv/ae 6BWsmduZd2M2cX11C4Q7hUnLTnT06nqlTmzb4xLrl/s2W6woI0TOoRIpWxnBnJDqtB0qA wQxL1TIwmBOBJrIZCg+Ax6LnrEHjTK4MaOm7jIcRJ3kt3zQfQ7qWS9uyVFYuJoLRcZxvs FgbmVKhRxTxeFRHCCAJJra56yV9SLjxv19+c/JkKEuVn9+xzw4Ul3oGwVyRVAxd0ZxP7A heoWTNOJKFiQmFelp/Mus6c2LUHzGcom+1m0BYgjYYJvZNOucAeZYO5nr5hm4io1+bA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NuX5mX5R; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54666606A31A for ; Tue, 1 Dec 2026 05:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NuX5mX5R Received: by smtp.kernel.org (Postfix) with ESMTPSA id 031751F00893; Tue, 1 Dec 2026 05:20:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796102407; bh=Dj9JV3BW/iFelb73atwH8NZaWDWxxMAP+Y4ruyN3WSc=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=NuX5mX5R9wUPjy0xlhKjy9O2TyE9PazhV7H3z8PndDmISDr3jWPJIRr4F/RXuDpcR q0r5XA+Dm3IvaIg8Acc4j5tyYfFbXDn5HJ4bYS3wAvfiAzZEZ9mmp4WR603IUUrN/Z 1jjMxz5WPrV/ZAiqLdA5LaE1ulygb0ES0oUqLjtljC9XuH+U95De2vRXFuqcLFAi9H Wn32Wh+D+qcpI6UoRcaeXXF3xWQFSShUC1HQ/O/IJdtEAuzjuEGS8XtQvO0xvO7oLN jRyFvd1pb10fe76ZWJmlJadLgBYrbYbgZk9m52ajXntOrGK1aJOBphMYP58msEzQKU MOlLMRGr7Uu4w== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id EB89838068C0; Tue, 1 Dec 2026 05:20:06 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH bpf-next] libbpf: Fix ALU relocation check for a local value with bit 31 set From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179610240576.16890.3557736024882504128.git-patchwork-notify@kernel.org> Date: Tue, 01 Dec 2026 05:20:05 +0000 References: <20261127184334.860594-1-yonghong.song@linux.dev> In-Reply-To: <20261127184334.860594-1-yonghong.song@linux.dev> To: Yonghong Song Cc: bpf@vger.kernel.org, ast@kernel.org, andrii@kernel.org, daniel@iogearbox.net, eddyz87@gmail.com, kernel-team@fb.com Hello: This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov : On Fri, 27 Nov 2026 10:43:34 -0800 you wrote: > Since commit 776281652ddc ("libbpf: Permit 64bit relocation value"), > the local value of a relocation is a __u64, and libbpf checks it against > the imm of an ALU or ALU64 instruction with: > > if (res->validate && insn->imm != orig_val) > > The __s32 imm is sign-extended to 64 bits for the comparison, so it does > not match a zero-extended local value with bit 31 set, e.g., 0x80000000, > and the relocation fails with "unexpected insn". Before that commit, both > sides were compared as 32-bit values. > > [...] Here is the summary with links: - [bpf-next] libbpf: Fix ALU relocation check for a local value with bit 31 set https://git.kernel.org/bpf/bpf-next/c/982a50c5aa05 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html