stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: richard clark <richard.xnu.clark@gmail.com>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: External kmod build failed on KASAN-enabled kernel
Date: Tue, 30 Jun 2020 16:34:17 +0800	[thread overview]
Message-ID: <CAJNi4rNvzQ4Eqzxo-OokF+zfOvJ=kKUMUVGt8osji0mcaaxhkQ@mail.gmail.com> (raw)

Hi,

The same kmod source code can be built on KASAN-disabled kernel
(5.7.0), but after enable it with CONFIG_KASAN=y, the kmod can't build
on the new installed KASAN-enabled kernel with below error message,
seems no relevant answers for this issue with google:

root@build-ws:/home/mm/slab# make

make -C /lib/modules/5.7.0/build M=/home/mm/slab modules

make[1]: Entering directory '/home/linux-5.7'

  CC [M]  /home/mm/slab/tap_slab.o

  MODPOST 1 modules

ERROR: modpost: "__asan_register_globals" [/home/mm/slab/tap_slab.ko] undefined!

ERROR: modpost: "__asan_unregister_globals"
[/home/mm/slab/tap_slab.ko] undefined!

ERROR: modpost: "__asan_load8_noabort" [/home/mm/slab/tap_slab.ko] undefined!

scripts/Makefile.modpost:94: recipe for target '__modpost' failed

make[2]: *** [__modpost] Error 1

Makefile:1642: recipe for target 'modules' failed

make[1]: *** [modules] Error 2

make[1]: Leaving directory '/home/linux-5.7'

Makefile:6: recipe for target 'default' failed

make: *** [default] Error 2
===
Regards,
Richard

                 reply	other threads:[~2020-06-30  8:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAJNi4rNvzQ4Eqzxo-OokF+zfOvJ=kKUMUVGt8osji0mcaaxhkQ@mail.gmail.com' \
    --to=richard.xnu.clark@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).