Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 3595C399CEC for ; Fri, 10 Jul 2026 22:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783721397; cv=none; b=CX/W6g6CzzUfa0sa8lMqGUjki1kLPioAuf015snV4PV4NTJ56nvQm8k1DDHEXMo9JW2JabHNzFrP4SVBLz/xBU4VdRm6zHOVTc7PPB337wsW5prcZ1vLDT/SSVoOr8NMHhMjd9H4RP660sl8dYFPhGt6rZg01jHPNP9VKcxLqGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783721397; c=relaxed/simple; bh=2ub4nWDm0UVYQYyGDF1toKijPevZATTh6AvmX5L9lCU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RpaVCR7C834vCVWegvIu/c9MODAhZIA/T9j2Bw08jvyu5FZTpkFNZ5ZHGqOyjRIEWnSrYchewp2zazW0YrGwWfRWg8frpzAc7SonXSDpdGjl1IUNLpYoTbd/HHwcImmuNOZo6AJsvSi2MPfZALTPFaE8Xple3NzoB/fyDbFLdeQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=VHkrpIcs; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="VHkrpIcs" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-493c19bad03so12028455e9.2 for ; Fri, 10 Jul 2026 15:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1783721394; x=1784326194; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=n0QBgcMLklUoQmlz1/UnBhglC0ubS7JdAEvyzC3RRRc=; b=VHkrpIcscChXkRbOjLQtWOBEA2Pg00onM8yH9ckR8koab6lEZfyPkBpuZTD3QXuLfw q6YuSYLCvDv9lV36dChmmnY9N8KQwhtGcNsdOwM0dtKXKNMbm1LAffeBXlUZxA0dsEIm 8hH/QMZm7VdHcplZZMXf3T63qgVSZ8qrz1ai8RJWBBOvsp2u5psIZn0eRJNpChQjYOw+ PLUMtrE546ttRAomPImmvD82iwFBxuQyB7bcsmIVOX3a2Y7IrRvaHCn0K8OWpgRkZyc2 K3H3yZnSAnhONaUxp0KcvgFqOMd5inGDqmleiVuL2AAYzT1fPNa5+E3h7qJoa3myh0X9 h6Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783721394; x=1784326194; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=n0QBgcMLklUoQmlz1/UnBhglC0ubS7JdAEvyzC3RRRc=; b=Aimbmo+wr6zXfo50Bai3KGWdlmMvSQBG8KALefs8tFNgzVZJyuHXASF/05a/Q8GmuN qCkYYgGjrLHrIgzqMD0OTp09upzkCoYo9p7NVmVUEu0KWpJP7c/fArJhYsNhDR+wQ0R7 ZLwXxcAac4+j6XvHsXKIs8//kVe51b329tgTHcwwpnRQQZXnP7IRn+rrApYS31RRfK/G rckiH+CJRAdP7VVaVm21o2QqggSdD0/nCy1V9pEIOv2DpQXDyT51UFU6u4XhOStAc8+3 6p2mboexIFBl0fiZd97PeS7FPURGyoXV2+wfWwkYSHnyKDxWM2VxL3zxuHYVlUmG1i9s uAig== X-Gm-Message-State: AOJu0Yz4J4TGRnQOnNsWYtte9zozLZ44gLC3W9W9GHdyTH9DNWQPBu/L oAvaYbom6wrs1/IesLXr0T1NyGWUV2XusirM6sMl5qfbvkJsPhl2Io/lOsRHnU8D3gI= X-Gm-Gg: AfdE7cnaj1drNAkP2qISbTLsfDxtW91Ez47/qr9mVnaOUPvjxOWkm4+krtIN/Tqt4Mw RIxGlHhYlGhf+cZGex1oxX6E83zBrq0NYK5oiuilzNRzdsydv10tKdWeXVvAigd31+2WYFwnZWB Te1LayApPjsNBSABhYQ4+pI7ZeVWq48QcpmOtFthKPlXLfTdJVrs5be0otcED8F+dQAVO8qF6m1 Msi7WNmMeEX7b+CzEagMb/rHWamd42MoaX9DGNV3P8jcC6YZZAZEsgyPMBdIspJG6GV9bqtF05M W+fTpLVKHXNoaSz7suxCP8ImTfIXmaPqg7UR3p8fRlmWlthFX3tbic2RrQVgdPu57Y1ilg4O+ws D2qI278fcCITBWcLYNlXGXa6OvzE2JPfg30R1ANgQR5gPV6GHVzT7bPvjkvgBC0hsxY2j0Ae3Qr FlMg== X-Received: by 2002:a05:600c:6287:b0:490:d354:bcf4 with SMTP id 5b1f17b1804b1-493f882e125mr5064455e9.27.1783721393697; Fri, 10 Jul 2026 15:09:53 -0700 (PDT) Received: from localhost ([2804:7f0:b765:157e:cc5f:6c4b:db0a:5d2a]) by smtp.gmail.com with ESMTPSA id 00721157ae682-81e7795988dsm42915837b3.26.2026.07.10.15.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2026 15:09:53 -0700 (PDT) From: =?utf-8?q?Ricardo_B=2E_Marli=C3=A8re?= Date: Fri, 10 Jul 2026 19:09:38 -0300 Subject: [PATCH 2/4] selftests/bpf: Install resolve_btfids.test.o.BTF where the test expects it Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260710-selftests-bpf_fixes-v1-2-aa24dfd6f4f9@suse.com> References: <20260710-selftests-bpf_fixes-v1-0-aa24dfd6f4f9@suse.com> In-Reply-To: <20260710-selftests-bpf_fixes-v1-0-aa24dfd6f4f9@suse.com> To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Shuah Khan , =?utf-8?q?Alexis_Lothor=C3=A9_=28eBPF_Foundation=29?= , Ihor Solodrai , Christian Brauner Cc: bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Ricardo_B=2E_Marli=C3=A8re?= X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openssh-sha256; t=1783721384; l=1976; i=rbm@suse.com; h=from:subject:message-id; bh=2ub4nWDm0UVYQYyGDF1toKijPevZATTh6AvmX5L9lCU=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgguRCc5X8/UX9M40lkMnr//aFGOhce x5ezt8MFNUFlqYAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QOBhfC+l8ie8j9ab6J7tqHpnUdPRaXL4guicfZGuv6jrHoPEPsthfAwD1PR1pH5vNhyESzDS8ov YdJ/SpwAvxAw= X-Developer-Key: i=rbm@suse.com; a=openssh; fpr=SHA256:pzhe0fJpYLz+3cZ33FFPhIfaUElk9CXPFFXmalIH+1g prog_tests/resolve_btfids.c looks for "resolve_btfids.test.o.BTF" relative to the running test_progs binary. resolve_btfids always writes .BTF next to the object it processes, so building resolve_btfids.test.o also produces resolve_btfids.test.o.BTF in the build output directory as a side effect. INSTALL_RULE never carries it over: it is not part of TEST_FILES, TEST_GEN_FILES or TRUNNER_EXTRA_FILES, and it is not copied by the *.bpf.o rsync used for TEST_INST_SUBDIRS. After "make install", every flavor of test_progs, including the default one, fails with "Failed to load BTF from resolve_btfids.test.o.BTF", even though the file built fine and BTF ID resolution itself works correctly. Install it next to the rest of the per-flavor build output, using an explicit rsync in INSTALL_RULE like the one already used for bpftool. Fixes: 522397d05e7d ("resolve_btfids: Change in-place update with raw binary output") Signed-off-by: Ricardo B. Marlière --- tools/testing/selftests/bpf/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 47911c9b4977..7260d672acf7 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -1057,10 +1057,11 @@ override define INSTALL_RULE $(DEFAULT_INSTALL_RULE) @mkdir -p $(INSTALL_PATH)/tools/sbin @rsync -a $(if $(PERMISSIVE),--ignore-missing-args) $(TRUNNER_BPFTOOL) $(INSTALL_PATH)/tools/sbin/ + @rsync -a $(if $(PERMISSIVE),--ignore-missing-args) $(OUTPUT)/resolve_btfids.test.o.BTF $(INSTALL_PATH)/ @for DIR in $(TEST_INST_SUBDIRS); do \ mkdir -p $(INSTALL_PATH)/$$DIR; \ rsync -a $(if $(PERMISSIVE),--ignore-missing-args) \ - $(OUTPUT)/$$DIR/*.bpf.o \ + $(OUTPUT)/$$DIR/*.bpf.o $(OUTPUT)/$$DIR/resolve_btfids.test.o.BTF \ $(INSTALL_PATH)/$$DIR; \ done endef -- 2.54.0