From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A6AFCDB48E for ; Wed, 18 Oct 2023 17:41:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 739F98D017C; Wed, 18 Oct 2023 13:41:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6C3C08D0016; Wed, 18 Oct 2023 13:41:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 515DA8D017C; Wed, 18 Oct 2023 13:41:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 3D95B8D0016 for ; Wed, 18 Oct 2023 13:41:50 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 1C2981CBD03 for ; Wed, 18 Oct 2023 17:41:50 +0000 (UTC) X-FDA: 81359299980.14.E59F999 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf14.hostedemail.com (Postfix) with ESMTP id 4394D100026 for ; Wed, 18 Oct 2023 17:41:48 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=gu69o4ZC; spf=pass (imf14.hostedemail.com: domain of conor@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=conor@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697650908; h=from:from:sender: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=aj+p4AGcRGnsdjRD0n/a3mq6+ABBqlyLJtvKg+WBq9E=; b=QnwwcYuvbPLtQcIXL7ZkaKZ6waTQSaljl0vMi+XH1dxfV/Tuchw4hp7beEi1c4qZ/M2DzC +nhulHceS53agWDZqA0RPQHTtiL0WPTo/Q8omGAqRktGOWp5u0ff5TDgiTxSzhjy5oMdJV kL6Sdau5cGB8Y93vk0AolAW3wDwODHQ= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=gu69o4ZC; spf=pass (imf14.hostedemail.com: domain of conor@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=conor@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697650908; a=rsa-sha256; cv=none; b=C54Doqrlx4MXzJFMSK1ivGvfoMQmyNxnoH+6h3K9PjK2pcYWOuNsI+e79Y1JYEYQYshmOt CtvvMhgy5K4TPGvCqSfFxmJobXjIti/bVoAvjotAM5NBWJvfK2PNDK0S35fO8eRpl8GUbz kNVZLqS14oL5GHNf27jgWnRZdbBk7uQ= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id E62D4B82437; Wed, 18 Oct 2023 17:41:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C39DC433C7; Wed, 18 Oct 2023 17:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697650906; bh=aj+p4AGcRGnsdjRD0n/a3mq6+ABBqlyLJtvKg+WBq9E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gu69o4ZC/L70fyBCHx8E9zpnBf4EUeY6LgV7eJALpSrQ2oQFNAckllrykdGJj4N9C HcyTS/T2PjJzQcv/tBBqAa7sGA5dDWU95AIrHslSAUNkNFZggIL2yoMA6AbB+DHMUd aLdhh6N6li4HM0VCC07U1fv4VlkAl0LsXyug5qe4kFF2Aa2g5u+FZVF6xJBVJ3/MLn x5rMBYHGgKpZPM2e1gyFuZvZphT3ZXDSIJ753Vk3G3SDrxOoLGdAJODU3i2sSkZgYa UoMTou1ROspEvhyyEI9pMXgfsSg3aF1EVqirvWUL8TyNxX5xQBb6EaTqoutVO9qcL/ umzdnfxhBTA4A== Date: Wed, 18 Oct 2023 18:41:41 +0100 From: Conor Dooley To: Charlie Jenkins Cc: linux-riscv@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Eric Biederman , Kees Cook , Paul Walmsley , Palmer Dabbelt , Albert Ou , bjorn@kernel.org Subject: Re: [PATCH v4 0/2] riscv: Add remaining module relocations and tests Message-ID: <20231018-confidant-frostily-e8f4dbdcd478@spud> References: <20231017-module_relocations-v4-0-937f5ef316f0@rivosinc.com> <20231018-smite-bungee-f46b15b4ce6f@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5mLW7xijzAMttePh" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4394D100026 X-Rspam-User: X-Stat-Signature: 6eh8cw15q5i4yjffnjme3ga7qx8bicup X-Rspamd-Server: rspam01 X-HE-Tag: 1697650908-460757 X-HE-Meta: U2FsdGVkX18QY9UZdLjeKusCQHjzsmORTEXWZm6kr/glJ6Gb/iEFpDxUCpVf9kwvyfHImU1GrT25KXI7bm5+znqIM9B3BMBU325juQIYNUZ8GnEJOKjWcpk+BPqSAr/h4oeWqgyKuhM+3CgOPDLCQrRC7j5n8Huq742vJxFis4DqrpBSvLO0O1V0fmU/vc6Vnk08Do32Bb6647QjVNyUd9mO82rKKKfSAbKCsGnane7UNDkAe5Xumpix03jb64cFuF5nCejIcEELWJsz4O5cZVbGymvDV6Kq0MVhLlcCdExjZbXK/6+i9GOT9twA4UB36Y1bYXYryGyio1PKwyKzr7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E= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: --5mLW7xijzAMttePh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 18, 2023 at 10:31:29AM -0700, Charlie Jenkins wrote: > On Wed, Oct 18, 2023 at 12:35:55PM +0100, Conor Dooley wrote: > > Hey Charlie, > >=20 > > On Tue, Oct 17, 2023 at 10:34:15PM -0700, Charlie Jenkins wrote: > > > A handful of module relocations were missing, this patch includes the > > > remaining ones. I also wrote some test cases to ensure that module > > > loading works properly. Some relocations cannot be supported in the > > > kernel, these include the ones that rely on thread local storage and > > > dynamic linking. > > >=20 > > > ULEB128 handling is a bit special because SET and SUB relocations must > > > happen together, and SET must happen before SUB. A psABI proposal [1] > > > mandates that the first SET_ULEB128 that appears before a SUB_ULEB128 > > > is the associated SET_ULEB128. > > >=20 > > > This can be tested by enabling KUNIT, RUNTIME_KERNEL_TESTING_MENU, and > > > RISCV_MODULE_LINKING_KUNIT. > > >=20 > > > [1] https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/403 > > >=20 > > > Signed-off-by: Charlie Jenkins > > > --- > > > Changes in v4: > > > - Complete removal of R_RISCV_RVC_LUI > > > - Fix bug in R_RISCV_SUB6 linking > > > - Only build ULEB128 tests if supported by toolchain > > > - Link to v3: https://lore.kernel.org/r/20231016-module_relocations-v= 3-0-a667fd6071e9@rivosinc.com > >=20 > > On patch 2/2: > >=20 > > ../arch/riscv/kernel/tests/module_test/test_uleb128.S:18:17: error: unk= nown relocation name > > ../arch/riscv/kernel/tests/module_test/test_uleb128.S:19:17: error: unk= nown relocation name > >=20 > > Same toolchain configuration in the patchwork automation as before. > >=20 > > Cheers, > > Conor. >=20 > Where do you see this error? On Patchwork I see a success [1]. >=20 > [1] https://patchwork.kernel.org/project/linux-riscv/patch/20231017-modul= e_relocations-v4-2-937f5ef316f0@rivosinc.com/ It was a failure this morning! See I wonder if there is something wrong with the CI code, where it erroneously reports the state from previous patches and then runs the tests again with the new patches and re-pushes the results. Bjorn, any idea? --5mLW7xijzAMttePh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZTAY1QAKCRB4tDGHoIJi 0pOTAQDCCiKYNA+6gFVQD5Eo6wg279/gtXLnlGuiK55RNr9/egD9GNwwnGI1yzfP 25wEREfFQDaiH0oG02EbQpF+P8UDpgU= =3a8X -----END PGP SIGNATURE----- --5mLW7xijzAMttePh--