From mboxrd@z Thu Jan 1 00:00:00 1970 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 12FF61C57B1; Tue, 15 Oct 2024 12:03:30 +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=1728993810; cv=none; b=UUHLMm8gFw8gYm95tzG6l1cEgWuMDdV55owKABOSDR5HngYxhW6EOHaEN/ybOH+T3r59pur50eWYMckGbGkYuD7n/YpJGe7sIWJVaxnqPJc2b6M/ggpnl1APQkLWmJb1hfPD3GRUz/7YyhC02MASFjxw9MNjLBBqOn3rC3wc1i8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728993810; c=relaxed/simple; bh=bKPUT0dYn4U3hz+jNJoZ+yzEE49l9xU4CqQQwYt+JfQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DrbB1H38kstjbcUrZqbGHJp4tKCtvUn13uJ4iWMTi7vK3yDsDItiGd5yI7acNWQFXW4XpytxSVj4JwB9LzAM9ROSRS3rjbCETb3alPp8S6xrJA9rhHQcUrsbH+HfmES7voX5KqrJhi0HQOYFK1Kfkh/oLL9+czI0K/JKviDnkPg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L5QgAgzD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="L5QgAgzD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 774F1C4CEC6; Tue, 15 Oct 2024 12:03:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728993809; bh=bKPUT0dYn4U3hz+jNJoZ+yzEE49l9xU4CqQQwYt+JfQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L5QgAgzDyNev4kDsAGvq3dr4DmVp25yNZrVMUJhCqa7aerKB0f3wuoywt2ZDSa3ie LcE3Rt+8Lf1XmTPndZZP22nC1Y6kguOlNNE4f6BRL1BWky3Htk2Xi1tmy2NN/jkKdo zBHdvrhPDiAWghMaT1ssJZ1u7/PDA7He7+raGT1c= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Christophe Leroy , Shuah Khan , "Jason A. Donenfeld" , Sasha Levin Subject: [PATCH 5.15 482/691] selftests: vDSO: fix vDSO name for powerpc Date: Tue, 15 Oct 2024 13:27:10 +0200 Message-ID: <20241015112459.470714946@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241015112440.309539031@linuxfoundation.org> References: <20241015112440.309539031@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Christophe Leroy [ Upstream commit 59eb856c3ed9b3552befd240c0c339f22eed3fa1 ] Following error occurs when running vdso_test_correctness on powerpc: ~ # ./vdso_test_correctness [WARN] failed to find vDSO [SKIP] No vDSO, so skipping clock_gettime() tests [SKIP] No vDSO, so skipping clock_gettime64() tests [RUN] Testing getcpu... [OK] CPU 0: syscall: cpu 0, node 0 On powerpc, vDSO is neither called linux-vdso.so.1 nor linux-gate.so.1 but linux-vdso32.so.1 or linux-vdso64.so.1. Also search those two names before giving up. Fixes: c7e5789b24d3 ("kselftest: Move test_vdso to the vDSO test suite") Signed-off-by: Christophe Leroy Acked-by: Shuah Khan Signed-off-by: Jason A. Donenfeld Signed-off-by: Sasha Levin --- tools/testing/selftests/vDSO/vdso_test_correctness.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/vDSO/vdso_test_correctness.c b/tools/testing/selftests/vDSO/vdso_test_correctness.c index c4aea794725a7..739cd83f3dfb7 100644 --- a/tools/testing/selftests/vDSO/vdso_test_correctness.c +++ b/tools/testing/selftests/vDSO/vdso_test_correctness.c @@ -113,6 +113,12 @@ static void fill_function_pointers() if (!vdso) vdso = dlopen("linux-gate.so.1", RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD); + if (!vdso) + vdso = dlopen("linux-vdso32.so.1", + RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD); + if (!vdso) + vdso = dlopen("linux-vdso64.so.1", + RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD); if (!vdso) { printf("[WARN]\tfailed to find vDSO\n"); return; -- 2.43.0