tree:
https://github.com/intel/linux-intel-lts.git 4.19/android_r
head: dbeb432ffcb6d39ce05d76a2e7d77c8656def48d
commit: b652a52d36a85d1b731921ba08e701d7150ce200 [19120/22444] Merge branch
'aosp/android-4.19-stable' into android_r
config: arm64-randconfig-s032-20210317 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-277-gc089cd2d-dirty
#
https://github.com/intel/linux-intel-lts/commit/b652a52d36a85d1b731921ba0...
git remote add intel-linux-intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 4.19/android_r
git checkout b652a52d36a85d1b731921ba08e701d7150ce200
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:212:13: sparse: sparse: Using plain
integer as NULL pointer
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:726:21: sparse: sparse: Using plain
integer as NULL pointer
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:798:13: sparse: sparse: Using plain
integer as NULL pointer
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:984:13: sparse: sparse: Using plain
integer as NULL pointer
> drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1068:13: sparse:
sparse: incorrect type in initializer (different address spaces) @@ expected struct
v4l2_subdev_route *__pu_val @@ got void [noderef] <asn:1> * @@
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1068:13: sparse: expected struct
v4l2_subdev_route *__pu_val
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1068:13: sparse: got void [noderef]
<asn:1> *
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1138:13: sparse: sparse: Using plain
integer as NULL pointer
vim +1068 drivers/media/v4l2-core/v4l2-compat-ioctl32.c
dcdab0d72b69b62 Meng Wei 2018-10-26 1059
dcdab0d72b69b62 Meng Wei 2018-10-26 1060 static int get_v4l2_subdev_routing(struct
v4l2_subdev_routing __user *kp,
dcdab0d72b69b62 Meng Wei 2018-10-26 1061 struct v4l2_subdev_routing32 __user
*up)
dcdab0d72b69b62 Meng Wei 2018-10-26 1062 {
dcdab0d72b69b62 Meng Wei 2018-10-26 1063 compat_caddr_t p;
dcdab0d72b69b62 Meng Wei 2018-10-26 1064 u32 num_routes;
dcdab0d72b69b62 Meng Wei 2018-10-26 1065
dcdab0d72b69b62 Meng Wei 2018-10-26 1066 if (!access_ok(VERIFY_READ, up, sizeof(*up))
||
dcdab0d72b69b62 Meng Wei 2018-10-26 1067 get_user(p, &up->routes) ||
dcdab0d72b69b62 Meng Wei 2018-10-26 @1068 put_user(compat_ptr(p),
&kp->routes) ||
dcdab0d72b69b62 Meng Wei 2018-10-26 1069 get_user(num_routes,
&kp->num_routes) ||
dcdab0d72b69b62 Meng Wei 2018-10-26 1070 assign_in_user(&kp->num_routes,
&up->num_routes) ||
dcdab0d72b69b62 Meng Wei 2018-10-26 1071 !access_ok(VERIFY_READ, up->reserved,
sizeof(*up->reserved)) ||
dcdab0d72b69b62 Meng Wei 2018-10-26 1072 num_routes > U32_MAX /
sizeof(*kp->routes))
dcdab0d72b69b62 Meng Wei 2018-10-26 1073 return -EFAULT;
dcdab0d72b69b62 Meng Wei 2018-10-26 1074
dcdab0d72b69b62 Meng Wei 2018-10-26 1075 if (!access_ok(VERIFY_READ, compat_ptr(p),
dcdab0d72b69b62 Meng Wei 2018-10-26 1076 num_routes *
(u32)sizeof(*kp->routes)))
dcdab0d72b69b62 Meng Wei 2018-10-26 1077 return -EFAULT;
dcdab0d72b69b62 Meng Wei 2018-10-26 1078
dcdab0d72b69b62 Meng Wei 2018-10-26 1079 return 0;
dcdab0d72b69b62 Meng Wei 2018-10-26 1080 }
dcdab0d72b69b62 Meng Wei 2018-10-26 1081
:::::: The code at line 1068 was first introduced by commit
:::::: dcdab0d72b69b6291d08483c0baf62cf92e2a1bc v4l: subdev: Add [GS]_ROUTING subdev
ioctls and operations
:::::: TO: Meng Wei <wei.meng(a)intel.com>
:::::: CC: Pan, Kris <kris.pan(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org