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: <202210241555.ZUdS2QEi-lkp@intel.com>
Date:   Mon, 24 Oct 2022 15:26:11 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [kas:lam 5/18] kernel/uid16.c:125:21: sparse: sparse: incorrect type
 in assignment (different address spaces)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git lam
head:   01819ca3dcb30fc9114025c8c5da8bcee0cabcee
commit: bb9d0488e7c6bfff85581168d4f49f48cd11ac36 [5/18] x86/uaccess: Provide untagged_addr() and remove tags before address check
config: x86_64-randconfig-s023-20221024
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git/commit/?id=bb9d0488e7c6bfff85581168d4f49f48cd11ac36
        git remote add kas https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git
        git fetch --no-tags kas lam
        git checkout bb9d0488e7c6bfff85581168d4f49f48cd11ac36
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/char/mwave/ drivers/gpu/drm/ drivers/media/mc/ drivers/media/v4l2-core/ drivers/platform/x86/dell/ drivers/rtc/ drivers/tty/ kernel/

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

sparse warnings: (new ones prefixed by >>)
>> kernel/uid16.c:125:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   kernel/uid16.c:125:21: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   kernel/uid16.c:125:21: sparse:     got unsigned short *
   kernel/uid16.c:141:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   kernel/uid16.c:141:21: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   kernel/uid16.c:141:21: sparse:     got unsigned short *
   kernel/uid16.c:74:26: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   kernel/uid16.c:74:26: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   kernel/uid16.c:74:26: sparse:     got unsigned short *
   kernel/uid16.c:75:26: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   kernel/uid16.c:75:26: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   kernel/uid16.c:75:26: sparse:     got unsigned short *
   kernel/uid16.c:76:26: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   kernel/uid16.c:76:26: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   kernel/uid16.c:76:26: sparse:     got unsigned short *
   kernel/uid16.c:97:26: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   kernel/uid16.c:97:26: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   kernel/uid16.c:97:26: sparse:     got unsigned short *
   kernel/uid16.c:98:26: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   kernel/uid16.c:98:26: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   kernel/uid16.c:98:26: sparse:     got unsigned short *
   kernel/uid16.c:99:26: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   kernel/uid16.c:99:26: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   kernel/uid16.c:99:26: sparse:     got unsigned short *
--
>> drivers/rtc/rtc-pcf85063.c:304:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/rtc/rtc-pcf85063.c:304:24: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/rtc/rtc-pcf85063.c:304:24: sparse:     got unsigned int *
--
>> drivers/rtc/rtc-pcf8523.c:332:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/rtc/rtc-pcf8523.c:332:24: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/rtc/rtc-pcf8523.c:332:24: sparse:     got unsigned int *
--
>> drivers/rtc/rtc-rv3029c2.c:463:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/rtc/rtc-rv3029c2.c:463:24: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/rtc/rtc-rv3029c2.c:463:24: sparse:     got unsigned int *
--
>> drivers/rtc/rtc-rv3032.c:480:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/rtc/rtc-rv3032.c:480:24: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/rtc/rtc-rv3032.c:480:24: sparse:     got unsigned int *
--
>> drivers/rtc/rtc-rv8803.c:484:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/rtc/rtc-rv8803.c:484:24: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/rtc/rtc-rv8803.c:484:24: sparse:     got unsigned int *
--
>> drivers/rtc/rtc-rx8010.c:350:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/rtc/rtc-rx8010.c:350:24: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/rtc/rtc-rx8010.c:350:24: sparse:     got unsigned int *
--
>> drivers/rtc/rtc-pcf2127.c:231:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/rtc/rtc-pcf2127.c:231:24: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/rtc/rtc-pcf2127.c:231:24: sparse:     got unsigned int *
--
>> drivers/tty/n_hdlc.c:606:25: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   drivers/tty/n_hdlc.c:606:25: sparse:     expected int [noderef] __user *__ptr_clean
   drivers/tty/n_hdlc.c:606:25: sparse:     got int *
   drivers/tty/n_hdlc.c:619:25: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   drivers/tty/n_hdlc.c:619:25: sparse:     expected int [noderef] __user *__ptr_clean
   drivers/tty/n_hdlc.c:619:25: sparse:     got int *
--
   drivers/gpu/drm/drm_ioc32.c:228:24: sparse: sparse: incompatible types in comparison expression (different address spaces):
   drivers/gpu/drm/drm_ioc32.c:228:24: sparse:    void *
   drivers/gpu/drm/drm_ioc32.c:228:24: sparse:    void [noderef] __user *
>> drivers/gpu/drm/drm_ioc32.c:245:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/gpu/drm/drm_ioc32.c:245:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/gpu/drm/drm_ioc32.c:245:13: sparse:     got unsigned int *
   drivers/gpu/drm/drm_ioc32.c:247:20: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *handle @@     got void [noderef] __user * @@
   drivers/gpu/drm/drm_ioc32.c:247:20: sparse:     expected void *handle
   drivers/gpu/drm/drm_ioc32.c:247:20: sparse:     got void [noderef] __user *
>> drivers/gpu/drm/drm_ioc32.c:414:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   drivers/gpu/drm/drm_ioc32.c:414:13: sparse:     expected int [noderef] __user *__ptr_clean
   drivers/gpu/drm/drm_ioc32.c:414:13: sparse:     got int *
   drivers/gpu/drm/drm_ioc32.c:477:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   drivers/gpu/drm/drm_ioc32.c:477:13: sparse:     expected int [noderef] __user *__ptr_clean
   drivers/gpu/drm/drm_ioc32.c:477:13: sparse:     got int *
   drivers/gpu/drm/drm_ioc32.c:478:16: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/gpu/drm/drm_ioc32.c:478:16: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/gpu/drm/drm_ioc32.c:478:16: sparse:     got unsigned int *
   drivers/gpu/drm/drm_ioc32.c:520:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[assigned] handle @@     got void [noderef] __user * @@
   drivers/gpu/drm/drm_ioc32.c:520:24: sparse:     expected void *[assigned] handle
   drivers/gpu/drm/drm_ioc32.c:520:24: sparse:     got void [noderef] __user *
   drivers/gpu/drm/drm_ioc32.c:613:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   drivers/gpu/drm/drm_ioc32.c:613:13: sparse:     expected int [noderef] __user *__ptr_clean
   drivers/gpu/drm/drm_ioc32.c:613:13: sparse:     got int *
   drivers/gpu/drm/drm_ioc32.c:614:16: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   drivers/gpu/drm/drm_ioc32.c:614:16: sparse:     expected int [noderef] __user *__ptr_clean
   drivers/gpu/drm/drm_ioc32.c:614:16: sparse:     got int *
   drivers/gpu/drm/drm_ioc32.c:777:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/gpu/drm/drm_ioc32.c:777:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/gpu/drm/drm_ioc32.c:777:13: sparse:     got unsigned int *
   drivers/gpu/drm/drm_ioc32.c:786:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/gpu/drm/drm_ioc32.c:786:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/gpu/drm/drm_ioc32.c:786:13: sparse:     got unsigned int *
   drivers/gpu/drm/drm_ioc32.c:799:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/gpu/drm/drm_ioc32.c:799:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/gpu/drm/drm_ioc32.c:799:13: sparse:     got unsigned int *
   drivers/gpu/drm/drm_ioc32.c:903:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/gpu/drm/drm_ioc32.c:903:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/gpu/drm/drm_ioc32.c:903:13: sparse:     got unsigned int *
--
>> drivers/media/mc/mc-device.c:502:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/mc/mc-device.c:502:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/mc/mc-device.c:502:13: sparse:     got unsigned int *
   drivers/media/mc/mc-device.c:503:16: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/mc/mc-device.c:503:16: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/mc/mc-device.c:503:16: sparse:     got unsigned int *
   drivers/media/mc/mc-device.c:504:16: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/mc/mc-device.c:504:16: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/mc/mc-device.c:504:16: sparse:     got unsigned int *
--
>> drivers/media/v4l2-core/v4l2-compat-ioctl32.c:147:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:147:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:147:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:235:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:235:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:235:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:236:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:236:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:236:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:255:16: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:255:16: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:255:16: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:261:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:261:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:261:13: sparse:     got unsigned int *
>> drivers/media/v4l2-core/v4l2-compat-ioctl32.c:262:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned long long [noderef] __user *__ptr_clean @@     got unsigned long long * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:262:13: sparse:     expected unsigned long long [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:262:13: sparse:     got unsigned long long *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:266:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:266:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:266:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:605:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:605:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:605:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:606:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:606:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:606:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:607:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:607:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:607:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:618:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:618:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:618:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:619:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:619:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:619:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:620:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:620:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:620:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:774:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:774:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:774:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:776:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:776:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:776:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:777:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:777:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:777:13: sparse:     got unsigned int *
>> drivers/media/v4l2-core/v4l2-compat-ioctl32.c:778:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected signed long long [noderef] __user *__ptr_clean @@     got signed long long * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:778:13: sparse:     expected signed long long [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:778:13: sparse:     got signed long long *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:779:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected signed long long [noderef] __user *__ptr_clean @@     got signed long long * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:779:13: sparse:     expected signed long long [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:779:13: sparse:     got signed long long *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:780:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:780:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:780:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:805:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:805:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:805:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:807:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:807:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:807:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:808:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:808:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:808:13: sparse:     got unsigned int *
>> drivers/media/v4l2-core/v4l2-compat-ioctl32.c:809:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected signed int [noderef] __user *__ptr_clean @@     got signed int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:809:13: sparse:     expected signed int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:809:13: sparse:     got signed int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:810:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected signed int [noderef] __user *__ptr_clean @@     got signed int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:810:13: sparse:     expected signed int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:810:13: sparse:     got signed int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:811:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:811:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:811:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:832:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:832:13: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:832:13: sparse:     got unsigned int *
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1114:37: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1114:37: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1114:37: sparse:     got unsigned int *
--
>> drivers/char/mwave/3780i.c:499:20: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   drivers/char/mwave/3780i.c:499:20: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   drivers/char/mwave/3780i.c:499:20: sparse:     got unsigned short *
   drivers/char/mwave/3780i.c:541:20: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   drivers/char/mwave/3780i.c:541:20: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   drivers/char/mwave/3780i.c:541:20: sparse:     got unsigned short *
   drivers/char/mwave/3780i.c:580:20: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   drivers/char/mwave/3780i.c:580:20: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   drivers/char/mwave/3780i.c:580:20: sparse:     got unsigned short *
   drivers/char/mwave/3780i.c:629:20: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   drivers/char/mwave/3780i.c:629:20: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   drivers/char/mwave/3780i.c:629:20: sparse:     got unsigned short *
   drivers/char/mwave/3780i.c:631:20: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   drivers/char/mwave/3780i.c:631:20: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   drivers/char/mwave/3780i.c:631:20: sparse:     got unsigned short *
   drivers/char/mwave/3780i.c:674:20: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   drivers/char/mwave/3780i.c:674:20: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   drivers/char/mwave/3780i.c:674:20: sparse:     got unsigned short *
   drivers/char/mwave/3780i.c:676:20: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   drivers/char/mwave/3780i.c:676:20: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   drivers/char/mwave/3780i.c:676:20: sparse:     got unsigned short *
--
>> drivers/platform/x86/dell/dell-smo8800.c:75:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected char [noderef] __user *__ptr_clean @@     got char * @@
   drivers/platform/x86/dell/dell-smo8800.c:75:13: sparse:     expected char [noderef] __user *__ptr_clean
   drivers/platform/x86/dell/dell-smo8800.c:75:13: sparse:     got char *

vim +125 kernel/uid16.c

^1da177e4c3f41 Linus Torvalds    2005-04-16  113  
^1da177e4c3f41 Linus Torvalds    2005-04-16  114  static int groups16_to_user(old_gid_t __user *grouplist,
^1da177e4c3f41 Linus Torvalds    2005-04-16  115      struct group_info *group_info)
^1da177e4c3f41 Linus Torvalds    2005-04-16  116  {
ae2975bc347624 Eric W. Biederman 2011-11-14  117  	struct user_namespace *user_ns = current_user_ns();
^1da177e4c3f41 Linus Torvalds    2005-04-16  118  	int i;
^1da177e4c3f41 Linus Torvalds    2005-04-16  119  	old_gid_t group;
ae2975bc347624 Eric W. Biederman 2011-11-14  120  	kgid_t kgid;
^1da177e4c3f41 Linus Torvalds    2005-04-16  121  
^1da177e4c3f41 Linus Torvalds    2005-04-16  122  	for (i = 0; i < group_info->ngroups; i++) {
81243eacfa400f Alexey Dobriyan   2016-10-07  123  		kgid = group_info->gid[i];
ae2975bc347624 Eric W. Biederman 2011-11-14  124  		group = high2lowgid(from_kgid_munged(user_ns, kgid));
^1da177e4c3f41 Linus Torvalds    2005-04-16 @125  		if (put_user(group, grouplist+i))
^1da177e4c3f41 Linus Torvalds    2005-04-16  126  			return -EFAULT;
^1da177e4c3f41 Linus Torvalds    2005-04-16  127  	}
^1da177e4c3f41 Linus Torvalds    2005-04-16  128  
^1da177e4c3f41 Linus Torvalds    2005-04-16  129  	return 0;
^1da177e4c3f41 Linus Torvalds    2005-04-16  130  }
^1da177e4c3f41 Linus Torvalds    2005-04-16  131  

:::::: The code at line 125 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (115384 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ