From: Catalin Marinas <catalin.marinas@arm.com>
To: kernel test robot <lkp@intel.com>
Cc: Robin Murphy <robin.murphy@arm.com>,
oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Mark Brown <broonie@kernel.org>
Subject: Re: arch/arm64/kernel/signal.c:1300: undefined reference to `preserve_gcs_context'
Date: Thu, 25 Sep 2025 11:28:41 +0100 [thread overview]
Message-ID: <aNUZWQdNsyDPGEWc@arm.com> (raw)
In-Reply-To: <202509241856.XvV8zSHD-lkp@intel.com>
On Wed, Sep 24, 2025 at 06:30:53PM +0800, kernel test robot wrote:
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: cec1e6e5d1ab33403b809f79cd20d6aff124ccfe
> commit: f00b53f1614f7be554fd28b9594ef4e63e2686c5 arm64: cpufeature: Add GCS to cpucap_is_possible()
> date: 10 months ago
> config: arm64-randconfig-r132-20250924 (https://download.01.org/0day-ci/archive/20250924/202509241856.XvV8zSHD-lkp@intel.com/config)
> compiler: aarch64-linux-gcc (GCC) 10.5.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250924/202509241856.XvV8zSHD-lkp@intel.com/reproduce)
Robin's commit was supposed to fix this.
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202509241856.XvV8zSHD-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> aarch64-linux-ld: Unexpected GOT/PLT entries detected!
> aarch64-linux-ld: Unexpected run-time procedure linkages detected!
> aarch64-linux-ld: arch/arm64/kernel/signal.o: in function `setup_sigframe':
> >> arch/arm64/kernel/signal.c:1300: undefined reference to `preserve_gcs_context'
> aarch64-linux-ld: arch/arm64/kernel/signal.o: in function `restore_sigframe':
> >> arch/arm64/kernel/signal.c:1042: undefined reference to `restore_gcs_context'
>
>
> vim +1300 arch/arm64/kernel/signal.c
>
> bb4891a6c3551f Dave Martin 2017-06-15 1258
> 20987de3c2c45c Dave Martin 2017-06-15 1259 static int setup_sigframe(struct rt_sigframe_user_layout *user,
> 2e8a1acea8597f Kevin Brodsky 2024-10-29 1260 struct pt_regs *regs, sigset_t *set,
> 2e8a1acea8597f Kevin Brodsky 2024-10-29 1261 const struct user_access_state *ua_state)
> 2c020ed8d148f7 Catalin Marinas 2012-03-05 1262 {
[...]
> 16f47bb9ac8afe Mark Brown 2024-10-01 1297 if (system_supports_gcs() && err == 0 && user->gcs_offset) {
> 16f47bb9ac8afe Mark Brown 2024-10-01 1298 struct gcs_context __user *gcs_ctx =
> 16f47bb9ac8afe Mark Brown 2024-10-01 1299 apply_user_offset(user, user->gcs_offset);
> 16f47bb9ac8afe Mark Brown 2024-10-01 @1300 err |= preserve_gcs_context(gcs_ctx);
> 16f47bb9ac8afe Mark Brown 2024-10-01 1301 }
It looks like the compiler was not able to remove these calls. Is this
compiler-specific?
--
Catalin
prev parent reply other threads:[~2025-09-25 10:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-24 10:30 arch/arm64/kernel/signal.c:1300: undefined reference to `preserve_gcs_context' kernel test robot
2025-09-25 10:28 ` Catalin Marinas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aNUZWQdNsyDPGEWc@arm.com \
--to=catalin.marinas@arm.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robin.murphy@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox