Public bug reported:
Building the Ubuntu kernel at version 4.4.0-97.120 or 4.4.0-98.121 gives
warnings when linking apparmor.o such as:
LD security/apparmor/apparmor.o
WARNING: security/apparmor/apparmor.o(.text+0x1087b): Section mismatch in
reference from the function param_get_mode() to the variable
.init.data:apparmor_initialized
(next build fault)
The function param_get_mode() references
the variable __initdata apparmor_initialized.
This is often because param_get_mode lacks a __initdata
annotation or the annotation of apparmor_initialized is wrong.
I believe this is because the __initdata annotation was removed from
security/apparmor/lsm.c but not from security/apparmor/include/lib.h
The following patch cleans the compilation warnings, but may not be the
correct fix:
--- security/apparmor/include/lib.h.orig 2017-11-02 14:43:59.903230945
+0000
+++ security/apparmor/include/lib.h 2017-11-02 14:44:57.992635353 +0000
@@ -56,7 +56,7 @@
} while (0)
/* Flag indicating whether initialization completed */
-extern int apparmor_initialized __initdata;
+extern int apparmor_initialized;
/* fn's in lib */
char *aa_split_fqname(char *args, char **ns_name);
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "version.log"
https://bugs.launchpad.net/bugs/1729634/+attachment/5002506/+files/version.log
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1729634
Title:
Linker warnings for apparmor.h
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1729634/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs