lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 3 Feb 2017 06:52:07 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org, tipbuild@...or.com
Subject: [tip:WIP.sched/core 117/122]
 drivers/misc/vmw_vmci/vmci_host.c:321:9: error: implicit declaration of
 function 'get_current_cred'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head:   a69a38e26e87ddbe993e33b55f693405cd62c76f
commit: bcdc18d4a46bc321d73fa769cfe294cf3cdae07d [117/122] sched/headers: Remove <linux/cred.h> inclusion from <linux/sched.h>
config: x86_64-randconfig-s4-02030507 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout bcdc18d4a46bc321d73fa769cfe294cf3cdae07d
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   drivers/misc/vmw_vmci/vmci_host.c: In function 'vmci_host_do_init_context':
>> drivers/misc/vmw_vmci/vmci_host.c:321:9: error: implicit declaration of function 'get_current_cred' [-Werror=implicit-function-declaration]
     cred = get_current_cred();
            ^~~~~~~~~~~~~~~~
>> drivers/misc/vmw_vmci/vmci_host.c:321:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     cred = get_current_cred();
          ^
>> drivers/misc/vmw_vmci/vmci_host.c:326:2: error: implicit declaration of function 'put_cred' [-Werror=implicit-function-declaration]
     put_cred(cred);
     ^~~~~~~~
   cc1: some warnings being treated as errors

vim +/get_current_cred +321 drivers/misc/vmw_vmci/vmci_host.c

8bf50399 George Zhang 2013-01-08  315  	if (init_block.flags & ~VMCI_PRIVILEGE_FLAG_RESTRICTED) {
8bf50399 George Zhang 2013-01-08  316  		vmci_ioctl_err("unsupported VMCI restriction flag\n");
8bf50399 George Zhang 2013-01-08  317  		retval = -EINVAL;
8bf50399 George Zhang 2013-01-08  318  		goto out;
8bf50399 George Zhang 2013-01-08  319  	}
8bf50399 George Zhang 2013-01-08  320  
8bf50399 George Zhang 2013-01-08 @321  	cred = get_current_cred();
8bf50399 George Zhang 2013-01-08  322  	vmci_host_dev->context = vmci_ctx_create(init_block.cid,
8bf50399 George Zhang 2013-01-08  323  						 init_block.flags, 0,
8bf50399 George Zhang 2013-01-08  324  						 vmci_host_dev->user_version,
8bf50399 George Zhang 2013-01-08  325  						 cred);
8bf50399 George Zhang 2013-01-08 @326  	put_cred(cred);
8bf50399 George Zhang 2013-01-08  327  	if (IS_ERR(vmci_host_dev->context)) {
8bf50399 George Zhang 2013-01-08  328  		retval = PTR_ERR(vmci_host_dev->context);
8bf50399 George Zhang 2013-01-08  329  		vmci_ioctl_err("error initializing context\n");

:::::: The code at line 321 was first introduced by commit
:::::: 8bf503991f87e32ea42a7bd69b79ba084fddc5d7 VMCI: host side driver implementation.

:::::: TO: George Zhang <georgezhang@...are.com>
:::::: CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>

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

Download attachment ".config.gz" of type "application/gzip" (31044 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ