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]
Message-ID: <202106141044.Iq3PyGiI-lkp@intel.com>
Date:   Mon, 14 Jun 2021 10:56:51 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        x86@...nel.org
Subject: [tip:tmp.tmp2 362/364] arch/x86/include/asm/uaccess_32.h:18:1:
 error: redefinition of 'raw_copy_to_user'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 9073ccabaa37f3392a6888678ffc6968fcdca9b6 [362/364] sched/headers: Misc dependency fixes
config: i386-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=9073ccabaa37f3392a6888678ffc6968fcdca9b6
        git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
        git fetch --no-tags tip tmp.tmp2
        git checkout 9073ccabaa37f3392a6888678ffc6968fcdca9b6
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/uaccess.h:464,
                    from include/linux/uaccess.h:13,
                    from arch/x86/include/asm/fpu/xstate.h:5,
                    from arch/x86/include/asm/pgtable.h:26,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:35,
                    from kernel/power/snapshot.c:19:
>> arch/x86/include/asm/uaccess_32.h:18:1: error: redefinition of 'raw_copy_to_user'
      18 | raw_copy_to_user(void __user *to, const void *from, unsigned long n)
         | ^~~~~~~~~~~~~~~~
   In file included from kernel/power/snapshot.c:15:
   arch/x86/include/asm/uaccess_64.h:56:1: note: previous definition of 'raw_copy_to_user' was here
      56 | raw_copy_to_user(void __user *dst, const void *src, unsigned long size)
         | ^~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/uaccess.h:464,
                    from include/linux/uaccess.h:13,
                    from arch/x86/include/asm/fpu/xstate.h:5,
                    from arch/x86/include/asm/pgtable.h:26,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:35,
                    from kernel/power/snapshot.c:19:
>> arch/x86/include/asm/uaccess_32.h:24:1: error: redefinition of 'raw_copy_from_user'
      24 | raw_copy_from_user(void *to, const void __user *from, unsigned long n)
         | ^~~~~~~~~~~~~~~~~~
   In file included from kernel/power/snapshot.c:15:
   arch/x86/include/asm/uaccess_64.h:50:1: note: previous definition of 'raw_copy_from_user' was here
      50 | raw_copy_from_user(void *dst, const void __user *src, unsigned long size)
         | ^~~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/uaccess.h:464,
                    from include/linux/uaccess.h:13,
                    from arch/x86/include/asm/fpu/xstate.h:5,
                    from arch/x86/include/asm/pgtable.h:26,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:35,
                    from kernel/power/snapshot.c:19:
>> arch/x86/include/asm/uaccess_32.h:30:1: error: conflicting types for '__copy_from_user_inatomic_nocache'
      30 | __copy_from_user_inatomic_nocache(void *to, const void __user *from,
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from kernel/power/snapshot.c:15:
   arch/x86/include/asm/uaccess_64.h:76:1: note: previous definition of '__copy_from_user_inatomic_nocache' was here
      76 | __copy_from_user_inatomic_nocache(void *dst, const void __user *src,
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/uaccess.h:13,
                    from arch/x86/include/asm/fpu/xstate.h:5,
                    from arch/x86/include/asm/pgtable.h:26,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:35,
                    from kernel/power/snapshot.c:19:
   arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
      46 | static inline bool pagefault_disabled(void);
         |                    ^~~~~~~~~~~~~~~~~~


vim +/raw_copy_to_user +18 arch/x86/include/asm/uaccess_32.h

^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  11  
beba3a20bf90ce arch/x86/include/asm/uaccess_32.h Al Viro        2017-03-25  12  unsigned long __must_check __copy_user_ll
beba3a20bf90ce arch/x86/include/asm/uaccess_32.h Al Viro        2017-03-25  13  		(void *to, const void *from, unsigned long n);
b1fcec7f2296c4 include/asm-x86/uaccess_32.h      Joe Perches    2008-03-23  14  unsigned long __must_check __copy_from_user_ll_nocache_nozero
b1fcec7f2296c4 include/asm-x86/uaccess_32.h      Joe Perches    2008-03-23  15  		(void *to, const void __user *from, unsigned long n);
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  16  
652050aec936fd include/asm-i386/uaccess.h        Ingo Molnar    2006-01-14  17  static __always_inline unsigned long __must_check
beba3a20bf90ce arch/x86/include/asm/uaccess_32.h Al Viro        2017-03-25 @18  raw_copy_to_user(void __user *to, const void *from, unsigned long n)
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  19  {
beba3a20bf90ce arch/x86/include/asm/uaccess_32.h Al Viro        2017-03-25  20  	return __copy_user_ll((__force void *)to, from, n);
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  21  }
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  22  
7c12d81134b130 include/asm-i386/uaccess.h        NeilBrown      2006-06-25  23  static __always_inline unsigned long
beba3a20bf90ce arch/x86/include/asm/uaccess_32.h Al Viro        2017-03-25 @24  raw_copy_from_user(void *to, const void __user *from, unsigned long n)
7c12d81134b130 include/asm-i386/uaccess.h        NeilBrown      2006-06-25  25  {
beba3a20bf90ce arch/x86/include/asm/uaccess_32.h Al Viro        2017-03-25  26  	return __copy_user_ll(to, (__force const void *)from, n);
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  27  }
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  28  
652050aec936fd include/asm-i386/uaccess.h        Ingo Molnar    2006-01-14  29  static __always_inline unsigned long
b1fcec7f2296c4 include/asm-x86/uaccess_32.h      Joe Perches    2008-03-23 @30  __copy_from_user_inatomic_nocache(void *to, const void __user *from,
b1fcec7f2296c4 include/asm-x86/uaccess_32.h      Joe Perches    2008-03-23  31  				  unsigned long n)
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  32  {
7c12d81134b130 include/asm-i386/uaccess.h        NeilBrown      2006-06-25  33         return __copy_from_user_ll_nocache_nozero(to, from, n);
c22ce143d15eb2 include/asm-i386/uaccess.h        Hiro Yoshioka  2006-06-23  34  }
c22ce143d15eb2 include/asm-i386/uaccess.h        Hiro Yoshioka  2006-06-23  35  

:::::: The code at line 18 was first introduced by commit
:::::: beba3a20bf90ce1b93e24592c3ebf0d0bb581bbe x86: switch to RAW_COPY_USER

:::::: TO: Al Viro <viro@...iv.linux.org.uk>
:::::: CC: Al Viro <viro@...iv.linux.org.uk>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ