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:   Wed, 24 May 2017 05:06:26 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org
Subject: [rcu:ms 2/2] mm/mlock.c:825:35: error: passing argument 1 of
 'down_write_killable_mmap_sem' from incompatible pointer type

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git ms
head:   49683159093b2bd63321b7e997e225a40fe5f3cd
commit: 49683159093b2bd63321b7e997e225a40fe5f3cd [2/2] mm: Apply mmap_sem locking wrappers
config: i386-tinyconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 49683159093b2bd63321b7e997e225a40fe5f3cd
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   mm/mlock.c: In function 'sys_munlockall':
>> mm/mlock.c:825:35: error: passing argument 1 of 'down_write_killable_mmap_sem' from incompatible pointer type [-Werror=incompatible-pointer-types]
     if (down_write_killable_mmap_sem(&current->mm))
                                      ^
   In file included from include/linux/mm.h:16:0,
                    from include/linux/mman.h:4,
                    from mm/mlock.c:9:
   include/linux/mm_types.h:550:19: note: expected 'struct mm_struct *' but argument is of type 'struct mm_struct **'
    static inline int down_write_killable_mmap_sem(struct mm_struct *mm)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/down_write_killable_mmap_sem +825 mm/mlock.c

   819	}
   820	
   821	SYSCALL_DEFINE0(munlockall)
   822	{
   823		int ret;
   824	
 > 825		if (down_write_killable_mmap_sem(&current->mm))
   826			return -EINTR;
   827		ret = apply_mlockall_flags(0);
   828		up_write_mmap_sem(current->mm);

---
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" (6572 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ