tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: d47175169c28eedd2cc2ab8c01f38764cb0269cc commit: c4da82d89ea3e689304f0ef783907dd23903b470 [13879/13946] userfaultfd: untag user pointers config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout c4da82d89ea3e689304f0ef783907dd23903b470 # save the attached .config to linux build tree GCC_VERSION=7.4.0 make.cross ARCH=sparc64 If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All error/warnings (new ones prefixed by >>): fs/userfaultfd.c: In function 'validate_range': >> fs/userfaultfd.c:1279:32: error: expected ')' before ';' token *start = untagged_addr(*start); ^ >> fs/userfaultfd.c:1294:1: error: expected ';' before '}' token } ^ fs/userfaultfd.c:1277:8: warning: unused variable 'task_size' [-Wunused-variable] __u64 task_size = mm->task_size; ^~~~~~~~~ >> fs/userfaultfd.c:1294:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ vim +1279 fs/userfaultfd.c 1273 1274 static __always_inline int validate_range(struct mm_struct *mm, 1275 __u64 *start, __u64 len) 1276 { 1277 __u64 task_size = mm->task_size; 1278 > 1279 *start = untagged_addr(*start); 1280 1281 if (*start & ~PAGE_MASK) 1282 return -EINVAL; 1283 if (len & ~PAGE_MASK) 1284 return -EINVAL; 1285 if (!len) 1286 return -EINVAL; 1287 if (*start < mmap_min_addr) 1288 return -EINVAL; 1289 if (*start >= task_size) 1290 return -EINVAL; 1291 if (len > task_size - *start) 1292 return -EINVAL; 1293 return 0; > 1294 } 1295 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip