This bug is missing log files that will aid in diagnosing the problem.
While running an Ubuntu kernel (not a mainline or third-party kernel)
please enter the following command in a terminal window:

apport-collect 1729634

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable
to run this command, please add a comment stating that fact and change
the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the
Ubuntu Kernel Team.

** Changed in: linux (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1729634

Title:
  Linker warnings for apparmor.h

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  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);

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1729634/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to