[sashal-linux-stable-security:linux-3.10.y-security 204/1389] ipc/shm.c:923:3: error: implicit declaration of function 'shm_obtain_object_check'

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

 



Hi Davidlohr,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable-security.git linux-3.10.y-security
head:   69c2f7bfd1c3f78cff79345a7d013684c2014325
commit: fc3323c39215f276c710a0eaad6fbf78bafa4eac [204/1389] ipc,shm: shorten critical region for shmctl
config: i386-randconfig-s1-201636 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.3-14) 4.9.3
reproduce:
        git checkout fc3323c39215f276c710a0eaad6fbf78bafa4eac
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   ipc/shm.c: In function 'SYSC_shmctl':
>> ipc/shm.c:923:3: error: implicit declaration of function 'shm_obtain_object_check' [-Werror=implicit-function-declaration]
      shp = shm_obtain_object_check(ns, shmid);
      ^
   ipc/shm.c:923:7: warning: assignment makes pointer from integer without a cast
      shp = shm_obtain_object_check(ns, shmid);
          ^
   ipc/shm.c:966:3: error: implicit declaration of function 'ipc_unlock_object' [-Werror=implicit-function-declaration]
      ipc_unlock_object(&shp->shm_perm);
      ^
   cc1: some warnings being treated as errors

vim +/shm_obtain_object_check +923 ipc/shm.c

   917		case SHM_LOCK:
   918		case SHM_UNLOCK:
   919		{
   920			struct file *shm_file;
   921	
   922			rcu_read_lock();
 > 923			shp = shm_obtain_object_check(ns, shmid);
   924			if (IS_ERR(shp)) {
   925				err = PTR_ERR(shp);
   926				goto out_unlock1;

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]