From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793382215; b=uzKYpdmEyqGzGFO3qhhLWfsrlIUz7+IQBtXvCsqwNCmWUxvb8rGWvNBi7escMy1iWi0h NpBQwaVy0pTzzDRuXHaV1ZuO4UC3IrJsohZqgCpZN0fI3ay9m1qJhEOMW8GepzcBs9HMH /5tNlpO4PY/TtBe+4/1JfPQan/Qpdak1oWclYT4Y0uZPTbyYtMO2r4FrDzMKbWvJOGFFZ Djc9cr38yTQLs+ZbK0Hv4joWPFBDs99ylhkXl2ciCMDQEqczzLtrrkIgVjgAbJSoMwRDt BbbPA1ApKG1iNQvdxlR4WXIlDM+cSVJ4G+3Zh0hHZlOjRd0HAHzVFjONYSnNyUmLA5A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793382215; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:MIME-Version:X-Scanned-By:X-Mimecast-MFC-PROC-ID: X-Mimecast-Originator:Content-Transfer-Encoding:content-type; bh=tcHOtSM7nWeoLlpUcnG0DJSKH+xxx+L3ZutLIf41pi4=; b=D11+iRDuyqs9W2LAxQLlxl7rdR/vSuOKoqy4AbHFKFM6CFlRXsOzkx59B2QhHjFvThVz sySO0SJGpepcjQlTkU7o41SiayZI1YXq66/1VX9zjWNV/Wq5BJDt/z+l9xO8lNB4L3iZe xgrvWSHjcpQNqeV4fR/hTuEBl3JVBfiuykK+YM480Acw/rPHgFjKAtnPF1NJDtQ5ZsMAJ ONcmT2mXZabd2cBy2VmkJmqggE7ARwGBl+Q5/A1WpoDlATt3tuxnz7NSzKKFSt9NQ1Lwa Ws0G4e3qnqPVpmCrtZc8m14zn1nKMLWkh8SB+wypxcxG6M/6m5tpL1YdWIeB+MgKnfA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UbdaS+rw; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8AAD2606A31A for ; Fri, 30 Oct 2026 17:43:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8AAD2606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UbdaS+rw DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1793382213; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tcHOtSM7nWeoLlpUcnG0DJSKH+xxx+L3ZutLIf41pi4=; b=UbdaS+rw9GUQky8Phy+FCcVksadV1hz3oGfQGeDKhTsBDlzDhSZgP1xVxg6lA3W3UOmXev 57Xt032Yt5uoSmDk3r40P56Mkmgtne4UcivlMbjnGa1jEsGx/vojVta/qHjujnjFQTJIbZ 8T7SHxpMoZ1URY5AcanryZWJOr27ZFc= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-503-puZ9tqTHM_K_IgTZt7FYHQ-1; Fri, 30 Oct 2026 13:43:29 -0400 X-MC-Unique: puZ9tqTHM_K_IgTZt7FYHQ-1 X-Mimecast-MFC-AGG-ID: puZ9tqTHM_K_IgTZt7FYHQ_1793382208 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C2FEB1954B06; Fri, 30 Oct 2026 17:43:27 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.44.32.94]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EDD563000B78; Fri, 30 Oct 2026 17:43:24 +0000 (UTC) From: Thomas Huth To: Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: soc@lists.linux.dev, Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH] selftests: vDSO: Fix header search list for vgetrandom-chacha.S Date: Fri, 30 Oct 2026 18:43:23 +0100 Message-ID: <20261030174323.370687-1-thuth@redhat.com> X-Mailing-List: soc@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-MFC-PROC-ID: 1tJo3a_vE5H3cXyjMSZofPevqo95khIyOHsYn1bWxKg_1793382208 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true On aarch64, vgetrandom-chacha.S includes the assembler file from arch/arm64/kernel/vdso/vgetrandom-chacha.S, and that includes which in turn includes lots of system header files. For this, we should make sure that the kernel headers of the *current* kernel are in the search path of the compiler, otherwise we end up including headers from /usr/include of the current distro instead, and this is calling for trouble! Thus use $(KHDR_INCLUDES) here to make sure that we are using the right header files. (This issue has been found in a patch series that replaces __ASSEMBLY__ with __ASSEMBLER__ in the various kernel headers and finally stops defining __ASSEMBLY__ in the kernel makefiles - when vgetrandom-chacha.S now tries to include a header from /usr/include the compilation fails since those headers still require __ASSEMBLY__ to fence away the C code) Signed-off-by: Thomas Huth --- See this link for the build failure: https://lore.kernel.org/oe-kbuild-all/9e294bfd-4704-42a5-a704-f301f4afe042@app.fastmail.com/ tools/testing/selftests/vDSO/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/vDSO/Makefile b/tools/testing/selftests/vDSO/Makefile index a61047bdcd576..1af346ac87081 100644 --- a/tools/testing/selftests/vDSO/Makefile +++ b/tools/testing/selftests/vDSO/Makefile @@ -37,7 +37,8 @@ $(OUTPUT)/vdso_test_getrandom: CFLAGS += -isystem $(top_srcdir)/tools/include \ -isystem $(top_srcdir)/include/uapi $(OUTPUT)/vdso_test_chacha: vgetrandom-chacha.S -$(OUTPUT)/vdso_test_chacha: CFLAGS += -idirafter $(top_srcdir)/tools/include \ +$(OUTPUT)/vdso_test_chacha: CFLAGS += $(KHDR_INCLUDES) \ + -idirafter $(top_srcdir)/tools/include \ -idirafter $(top_srcdir)/tools/include/generated \ -idirafter $(top_srcdir)/arch/$(SRCARCH)/include \ -idirafter $(top_srcdir)/include \ -- 2.56.0