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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210120658.HLfPgvct-lkp@intel.com>
Date:   Wed, 12 Oct 2022 06:13:03 +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/16] drivers/media/mc/mc-device.c:502:13: sparse: sparse:
 incorrect type in assignment (different address spaces)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git lam
head:   e3e52d2898d66c34eefbe09cbeae0d3ba53fb989
commit: 2979bb830b677ffdc1a842f9dfb835f313b602f7 [5/16] x86/uaccess: Provide untagged_addr() and remove tags before address check
config: x86_64-randconfig-s053-20221010
compiler: gcc-11 (Debian 11.3.0-5) 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=2979bb830b677ffdc1a842f9dfb835f313b602f7
        git remote add kas https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git
        git fetch --no-tags kas lam
        git checkout 2979bb830b677ffdc1a842f9dfb835f313b602f7
        # 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

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 >>)
>> 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:1112: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:1112:37: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1112:37: sparse:     got unsigned int *
--
>> net/mctp/af_mctp.c:337:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   net/mctp/af_mctp.c:337:13: sparse:     expected int [noderef] __user *__ptr_clean
   net/mctp/af_mctp.c:337:13: sparse:     got int *
--
>> fs/coda/psdev.c:79:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   fs/coda/psdev.c:79:24: sparse:     expected int [noderef] __user *__ptr_clean
   fs/coda/psdev.c:79:24: sparse:     got int *
--
>> net/atm/br2684.c:733:23: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   net/atm/br2684.c:733:23: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   net/atm/br2684.c:733:23: sparse:     got unsigned short *
--
>> net/atm/mpoa_proc.c:223:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected char const [noderef] __user *__ptr_clean @@     got char const * @@
   net/atm/mpoa_proc.c:223:21: sparse:     expected char const [noderef] __user *__ptr_clean
   net/atm/mpoa_proc.c:223:21: sparse:     got char const *
--
>> drivers/infiniband/hw/hfi1/file_ops.c:1545:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned long [noderef] __user *__ptr_clean @@     got unsigned long * @@
   drivers/infiniband/hw/hfi1/file_ops.c:1545:13: sparse:     expected unsigned long [noderef] __user *__ptr_clean
   drivers/infiniband/hw/hfi1/file_ops.c:1545:13: sparse:     got unsigned long *
>> drivers/infiniband/hw/hfi1/file_ops.c:1568:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   drivers/infiniband/hw/hfi1/file_ops.c:1568:13: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   drivers/infiniband/hw/hfi1/file_ops.c:1568:13: sparse:     got unsigned short *
>> drivers/infiniband/hw/hfi1/file_ops.c:1504:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   drivers/infiniband/hw/hfi1/file_ops.c:1504:13: sparse:     expected int [noderef] __user *__ptr_clean
   drivers/infiniband/hw/hfi1/file_ops.c:1504:13: sparse:     got int *
   drivers/infiniband/hw/hfi1/file_ops.c:229:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   drivers/infiniband/hw/hfi1/file_ops.c:229:21: sparse:     expected int [noderef] __user *__ptr_clean
   drivers/infiniband/hw/hfi1/file_ops.c:229:21: sparse:     got int *
   drivers/infiniband/hw/hfi1/file_ops.c:248:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   drivers/infiniband/hw/hfi1/file_ops.c:248:21: sparse:     expected int [noderef] __user *__ptr_clean
   drivers/infiniband/hw/hfi1/file_ops.c:248:21: sparse:     got int *
--
>> drivers/infiniband/hw/hfi1/debugfs.c:662:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned long [noderef] __user *__ptr_clean @@     got unsigned long * @@
   drivers/infiniband/hw/hfi1/debugfs.c:662:21: sparse:     expected unsigned long [noderef] __user *__ptr_clean
   drivers/infiniband/hw/hfi1/debugfs.c:662:21: sparse:     got unsigned long *
   drivers/infiniband/hw/hfi1/debugfs.c:693:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned long [noderef] __user *__ptr_clean @@     got unsigned long * @@
   drivers/infiniband/hw/hfi1/debugfs.c:693:21: sparse:     expected unsigned long [noderef] __user *__ptr_clean
   drivers/infiniband/hw/hfi1/debugfs.c:693:21: sparse:     got unsigned long *
>> drivers/infiniband/hw/hfi1/debugfs.c:1061:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected char const [noderef] __user *__ptr_clean @@     got char const * @@
   drivers/infiniband/hw/hfi1/debugfs.c:1061:13: sparse:     expected char const [noderef] __user *__ptr_clean
   drivers/infiniband/hw/hfi1/debugfs.c:1061:13: sparse:     got char const *
--
>> net/phonet/socket.c:367:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   net/phonet/socket.c:367:21: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   net/phonet/socket.c:367:21: sparse:     got unsigned short *
   net/phonet/socket.c:387:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned short [noderef] __user *__ptr_clean @@     got unsigned short * @@
   net/phonet/socket.c:387:24: sparse:     expected unsigned short [noderef] __user *__ptr_clean
   net/phonet/socket.c:387:24: sparse:     got unsigned short *
   net/phonet/socket.c:622:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/phonet/socket.c:622:14: sparse:    struct sock [noderef] __rcu *
   net/phonet/socket.c:622:14: sparse:    struct sock *
   net/phonet/socket.c:645:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/phonet/socket.c:645:17: sparse:    struct sock [noderef] __rcu *
   net/phonet/socket.c:645:17: sparse:    struct sock *
   net/phonet/socket.c:661:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/phonet/socket.c:661:17: sparse:    struct sock [noderef] __rcu *
   net/phonet/socket.c:661:17: sparse:    struct sock *
   net/phonet/socket.c:680:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/phonet/socket.c:680:25: sparse:    struct sock [noderef] __rcu *
   net/phonet/socket.c:680:25: sparse:    struct sock *
   net/phonet/socket.c:729:21: sparse: sparse: context imbalance in 'pn_res_seq_start' - wrong count at exit
   net/phonet/socket.c:744:13: sparse: sparse: context imbalance in 'pn_res_seq_stop' - wrong count at exit
--
>> net/phonet/datagram.c:42:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   net/phonet/datagram.c:42:24: sparse:     expected int [noderef] __user *__ptr_clean
   net/phonet/datagram.c:42:24: sparse:     got int *
>> net/phonet/datagram.c:47:29: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   net/phonet/datagram.c:47:29: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   net/phonet/datagram.c:47:29: sparse:     got unsigned int *
--
>> net/phonet/pep.c:942:23: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   net/phonet/pep.c:942:23: sparse:     expected int [noderef] __user *__ptr_clean
   net/phonet/pep.c:942:23: sparse:     got int *
   net/phonet/pep.c:1051:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   net/phonet/pep.c:1051:13: sparse:     expected int [noderef] __user *__ptr_clean
   net/phonet/pep.c:1051:13: sparse:     got int *
   net/phonet/pep.c:1078:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   net/phonet/pep.c:1078:13: sparse:     expected int [noderef] __user *__ptr_clean
   net/phonet/pep.c:1078:13: sparse:     got int *
   net/phonet/pep.c:1080:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   net/phonet/pep.c:1080:13: sparse:     expected int [noderef] __user *__ptr_clean
   net/phonet/pep.c:1080:13: sparse:     got int *
--
>> 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 *
--
>> drivers/rtc/dev.c:182:31: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/rtc/dev.c:182:31: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/rtc/dev.c:182:31: sparse:     got unsigned int *
>> drivers/rtc/dev.c:185:31: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned long [noderef] __user *__ptr_clean @@     got unsigned long * @@
   drivers/rtc/dev.c:185:31: sparse:     expected unsigned long [noderef] __user *__ptr_clean
   drivers/rtc/dev.c:185:31: sparse:     got unsigned long *
   drivers/rtc/dev.c:367:23: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned long [noderef] __user *__ptr_clean @@     got unsigned long * @@
   drivers/rtc/dev.c:367:23: sparse:     expected unsigned long [noderef] __user *__ptr_clean
   drivers/rtc/dev.c:367:23: sparse:     got unsigned long *
   drivers/rtc/dev.c:480:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/rtc/dev.c:480:24: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/rtc/dev.c:480:24: sparse:     got unsigned int *
--
>> drivers/rtc/rtc-m41t80.c:741:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   drivers/rtc/rtc-m41t80.c:741:24: sparse:     expected int [noderef] __user *__ptr_clean
   drivers/rtc/rtc-m41t80.c:741:24: sparse:     got int *
   drivers/rtc/rtc-m41t80.c:746:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   drivers/rtc/rtc-m41t80.c:746:21: sparse:     expected int [noderef] __user *__ptr_clean
   drivers/rtc/rtc-m41t80.c:746:21: sparse:     got int *
   drivers/rtc/rtc-m41t80.c:755:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected int [noderef] __user *__ptr_clean @@     got int * @@
   drivers/rtc/rtc-m41t80.c:755:24: sparse:     expected int [noderef] __user *__ptr_clean
   drivers/rtc/rtc-m41t80.c:755:24: sparse:     got int *
--
>> 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-rs5c372.c:527:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] __user *__ptr_clean @@     got unsigned int * @@
   drivers/rtc/rtc-rs5c372.c:527:24: sparse:     expected unsigned int [noderef] __user *__ptr_clean
   drivers/rtc/rtc-rs5c372.c:527:24: sparse:     got unsigned int *

vim +502 drivers/media/mc/mc-device.c

b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  492  
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  493  static long media_device_enum_links32(struct media_device *mdev,
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  494  				      struct media_links_enum32 __user *ulinks)
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  495  {
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  496  	struct media_links_enum links;
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  497  	compat_uptr_t pads_ptr, links_ptr;
f49308878d7202 drivers/media/media-device.c Jungo Lin    2019-04-02  498  	int ret;
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  499  
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  500  	memset(&links, 0, sizeof(links));
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  501  
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22 @502  	if (get_user(links.entity, &ulinks->entity)
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  503  	    || get_user(pads_ptr, &ulinks->pads)
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  504  	    || get_user(links_ptr, &ulinks->links))
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  505  		return -EFAULT;
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  506  
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  507  	links.pads = compat_ptr(pads_ptr);
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  508  	links.links = compat_ptr(links_ptr);
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  509  
f49308878d7202 drivers/media/media-device.c Jungo Lin    2019-04-02  510  	ret = media_device_enum_links(mdev, &links);
f49308878d7202 drivers/media/media-device.c Jungo Lin    2019-04-02  511  	if (ret)
f49308878d7202 drivers/media/media-device.c Jungo Lin    2019-04-02  512  		return ret;
f49308878d7202 drivers/media/media-device.c Jungo Lin    2019-04-02  513  
518fa4e0e0da97 drivers/media/mc/mc-device.c Hans Verkuil 2019-05-27  514  	if (copy_to_user(ulinks->reserved, links.reserved,
518fa4e0e0da97 drivers/media/mc/mc-device.c Hans Verkuil 2019-05-27  515  			 sizeof(ulinks->reserved)))
518fa4e0e0da97 drivers/media/mc/mc-device.c Hans Verkuil 2019-05-27  516  		return -EFAULT;
f49308878d7202 drivers/media/media-device.c Jungo Lin    2019-04-02  517  	return 0;
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  518  }
b0a1f2a8420782 drivers/media/media-device.c Sakari Ailus 2013-01-22  519  

:::::: The code at line 502 was first introduced by commit
:::::: b0a1f2a8420782ccb83fb4f68df37af642790560 [media] media: implement 32-on-64 bit compat IOCTL handling

:::::: TO: Sakari Ailus <sakari.ailus@....fi>
:::::: CC: Mauro Carvalho Chehab <mchehab@...hat.com>

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ