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:   Sat, 10 Jul 2021 00:56:37 +0800
From:   kernel test robot <lkp@...el.com>
To:     Christoph Hellwig <hch@....de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [hch-misc:um-set_fs 1/1] arch/um/include/asm/uaccess.h:53:19: error:
 implicit declaration of function 'get_unaligned'; did you mean
 'get_cmdline'?

tree:   git://git.infradead.org/users/hch/misc.git um-set_fs
head:   969a5fb627a0faf0402f8b7e211e1a6398b73736
commit: 969a5fb627a0faf0402f8b7e211e1a6398b73736 [1/1] um: remove set_fs
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        git remote add hch-misc git://git.infradead.org/users/hch/misc.git
        git fetch --no-tags hch-misc um-set_fs
        git checkout 969a5fb627a0faf0402f8b7e211e1a6398b73736
        # save the attached .config to linux build tree
        make W=1 ARCH=um SUBARCH=x86_64

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 include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/huge_mm.h:8,
                    from include/linux/mm.h:725,
                    from mm/maccess.c:6:
   mm/maccess.c: In function 'copy_from_kernel_nofault':
>> arch/um/include/asm/uaccess.h:53:19: error: implicit declaration of function 'get_unaligned'; did you mean 'get_cmdline'? [-Werror=implicit-function-declaration]
      53 |  *((type *)dst) = get_unaligned((type *)(src));   \
         |                   ^~~~~~~~~~~~~
   mm/maccess.c:19:3: note: in expansion of macro '__get_kernel_nofault'
      19 |   __get_kernel_nofault(dst, src, type, err_label);  \
         |   ^~~~~~~~~~~~~~~~~~~~
   mm/maccess.c:31:2: note: in expansion of macro 'copy_from_kernel_nofault_loop'
      31 |  copy_from_kernel_nofault_loop(dst, src, size, u64, Efault);
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   mm/maccess.c: In function 'copy_to_kernel_nofault':
>> arch/um/include/asm/uaccess.h:60:2: error: implicit declaration of function 'put_unaligned' [-Werror=implicit-function-declaration]
      60 |  put_unaligned(*((type *)src), (type *)(dst));   \
         |  ^~~~~~~~~~~~~
   mm/maccess.c:45:3: note: in expansion of macro '__put_kernel_nofault'
      45 |   __put_kernel_nofault(dst, src, type, err_label);  \
         |   ^~~~~~~~~~~~~~~~~~~~
   mm/maccess.c:54:2: note: in expansion of macro 'copy_to_kernel_nofault_loop'
      54 |  copy_to_kernel_nofault_loop(dst, src, size, u64, Efault);
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +53 arch/um/include/asm/uaccess.h

    50	
    51	#define __get_kernel_nofault(dst, src, type, err_label)			\
    52	do {									\
  > 53		*((type *)dst) = get_unaligned((type *)(src));			\
    54		if (0) /* make sure the label looks used to the compiler */	\
    55			goto err_label;						\
    56	} while (0)
    57	
    58	#define __put_kernel_nofault(dst, src, type, err_label)			\
    59	do {									\
  > 60		put_unaligned(*((type *)src), (type *)(dst));			\
    61		if (0) /* make sure the label looks used to the compiler */	\
    62			goto err_label;						\
    63	} while (0)
    64	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ