All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@busybox.net
To: buildroot@uclibc.org
Subject: [Buildroot] [Bug 14701] Multiple unresolved symbols while building kernel module package
Date: Wed, 30 Mar 2022 05:37:38 +0000	[thread overview]
Message-ID: <bug-14701-163-kWpcxTJikh@https.bugs.busybox.net/> (raw)
In-Reply-To: <bug-14701-163@https.bugs.busybox.net/>

https://bugs.busybox.net/show_bug.cgi?id=14701

--- Comment #4 from José Pekkarinen <jose.pekkarinen@unikie.com> ---
I want to highlight that this may be a buildroot issue, and not
a driver, or a linux one. This is because I tried the same kernel
version on my laptop:

$ uname -r
5.15.21-hardened1

And this is the building output of the module:

 make
make -C /lib/modules/5.15.21-hardened1/build
M=/home/pekkari/linux-sgx-driver-sgx_driver_2.14 modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.21-hardened1'
  CC [M]  /home/pekkari/linux-sgx-driver-sgx_driver_2.14/sgx_main.o
  CC [M]  /home/pekkari/linux-sgx-driver-sgx_driver_2.14/sgx_page_cache.o
  CC [M]  /home/pekkari/linux-sgx-driver-sgx_driver_2.14/sgx_ioctl.o
  CC [M]  /home/pekkari/linux-sgx-driver-sgx_driver_2.14/sgx_vma.o
  CC [M]  /home/pekkari/linux-sgx-driver-sgx_driver_2.14/sgx_util.o
  CC [M]  /home/pekkari/linux-sgx-driver-sgx_driver_2.14/sgx_encl.o
  CC [M]  /home/pekkari/linux-sgx-driver-sgx_driver_2.14/sgx_encl2.o
  LD [M]  /home/pekkari/linux-sgx-driver-sgx_driver_2.14/isgx.o
  MODPOST /home/pekkari/linux-sgx-driver-sgx_driver_2.14/Module.symvers
WARNING: modpost: modpost: Found 2 writable function pointers.
To see full details build your kernel with:
'make CONFIG_DEBUG_WRITABLE_FUNCTION_POINTERS_VERBOSE=y'
  CC [M]  /home/pekkari/linux-sgx-driver-sgx_driver_2.14/isgx.mod.o
  LD [M]  /home/pekkari/linux-sgx-driver-sgx_driver_2.14/isgx.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.15.21-hardened1'

and installing and loading the module I can see in dmesg:

[  233.145965] isgx: loading out-of-tree module taints kernel.
[  233.146006] isgx: module verification failed: signature and/or required key
missing - tainting kernel
[  233.146559] intel_sgx: the CPU is missing SGX

So symbols are in place, kernel is not wrong, module either, but
buildroot configures the linker in a way the symbols are not found.

Thanks!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2022-03-30  5:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-28  6:11 [Buildroot] [Bug 14701] New: Multiple unresolved symbols while building kernel module package bugzilla
2022-03-29  6:07 ` [Buildroot] [Bug 14701] " bugzilla
2022-03-29  6:21 ` bugzilla
2022-03-29  7:23 ` bugzilla
2022-03-30  5:37 ` bugzilla [this message]
2022-04-07  5:18 ` bugzilla

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=bug-14701-163-kWpcxTJikh@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@uclibc.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.