[integrity:next-integrity-testing 5/5] security/integrity/ima/ima_asymmetric_keys.c:53:6: error: redefinition of 'ima_init_key_queue'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-integrity-testing
head:   cc3e145566e2f2b697e67f01ed973b3782ba8b83
commit: cc3e145566e2f2b697e67f01ed973b3782ba8b83 [5/5] IMA: Defined timer to free queued keys
config: x86_64-randconfig-e003-20200105 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
        git checkout cc3e145566e2f2b697e67f01ed973b3782ba8b83
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> security/integrity/ima/ima_asymmetric_keys.c:53:6: error: redefinition of 'ima_init_key_queue'
    void ima_init_key_queue(void)
         ^~~~~~~~~~~~~~~~~~
   In file included from security/integrity/ima/ima_asymmetric_keys.c:16:0:
   security/integrity/ima/ima.h:222:20: note: previous definition of 'ima_init_key_queue' was here
    static inline void ima_init_key_queue(void) {}
                       ^~~~~~~~~~~~~~~~~~
   security/integrity/ima/ima_asymmetric_keys.c:60:39: warning: 'struct ima_key_entry' declared inside parameter list will not be visible outside of this definition or declaration
    static void ima_free_key_entry(struct ima_key_entry *entry)
                                          ^~~~~~~~~~~~~
   security/integrity/ima/ima_asymmetric_keys.c: In function 'ima_free_key_entry':
   security/integrity/ima/ima_asymmetric_keys.c:63:14: error: dereferencing pointer to incomplete type 'struct ima_key_entry'
      kfree(entry->payload);
                 ^~
   security/integrity/ima/ima_asymmetric_keys.c: In function 'ima_alloc_key_entry':
   security/integrity/ima/ima_asymmetric_keys.c:76:25: error: dereferencing pointer to incomplete type 'struct ima_key_entry'
     entry = kzalloc(sizeof(*entry), GFP_KERNEL);
                            ^~~~~~
   security/integrity/ima/ima_asymmetric_keys.c:94:22: error: passing argument 1 of 'ima_free_key_entry' from incompatible pointer type [-Werror=incompatible-pointer-types]
      ima_free_key_entry(entry);
                         ^~~~~
   security/integrity/ima/ima_asymmetric_keys.c:60:13: note: expected 'struct ima_key_entry *' but argument is of type 'struct ima_key_entry *'
    static void ima_free_key_entry(struct ima_key_entry *entry)
                ^~~~~~~~~~~~~~~~~~
   security/integrity/ima/ima_asymmetric_keys.c: In function 'ima_queue_key':
   security/integrity/ima/ima_asymmetric_keys.c:119:22: error: passing argument 1 of 'ima_free_key_entry' from incompatible pointer type [-Werror=incompatible-pointer-types]
      ima_free_key_entry(entry);
                         ^~~~~
   security/integrity/ima/ima_asymmetric_keys.c:60:13: note: expected 'struct ima_key_entry *' but argument is of type 'struct ima_key_entry *'
    static void ima_free_key_entry(struct ima_key_entry *entry)
                ^~~~~~~~~~~~~~~~~~
   security/integrity/ima/ima_asymmetric_keys.c: At top level:
   security/integrity/ima/ima_asymmetric_keys.c:130:6: error: redefinition of 'ima_process_queued_keys'
    void ima_process_queued_keys(void)
         ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from security/integrity/ima/ima_asymmetric_keys.c:16:0:
   security/integrity/ima/ima.h:221:20: note: previous definition of 'ima_process_queued_keys' was here
    static inline void ima_process_queued_keys(void) {}
                       ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/timer.h:5:0,
                    from security/integrity/ima/ima_asymmetric_keys.c:14:
   security/integrity/ima/ima_asymmetric_keys.c: In function 'ima_process_queued_keys':
   include/linux/list.h:664:57: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     for (pos = list_first_entry(head, typeof(*pos), member), \
                                                            ^
   security/integrity/ima/ima_asymmetric_keys.c:156:2: note: in expansion of macro 'list_for_each_entry_safe'
     list_for_each_entry_safe(entry, tmp, &ima_keys, list) {
     ^~~~~~~~~~~~~~~~~~~~~~~~
   security/integrity/ima/ima_asymmetric_keys.c:164:22: error: passing argument 1 of 'ima_free_key_entry' from incompatible pointer type [-Werror=incompatible-pointer-types]
      ima_free_key_entry(entry);
                         ^~~~~
   security/integrity/ima/ima_asymmetric_keys.c:60:13: note: expected 'struct ima_key_entry *' but argument is of type 'struct ima_key_entry *'
    static void ima_free_key_entry(struct ima_key_entry *entry)
                ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/ima_init_key_queue +53 security/integrity/ima/ima_asymmetric_keys.c

    48	
    49	/*
    50	 * This function sets up a timer to free queued keys in case
    51	 * custom IMA policy was never loaded.
    52	 */
  > 53	void ima_init_key_queue(void)
    54	{
    55		timer_setup(&ima_key_queue_timer, ima_timer_handler, 0);
    56		mod_timer(&ima_key_queue_timer,
    57			  jiffies + msecs_to_jiffies(ima_key_queue_timeout));
    58	}
    59	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux