From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1399805444588247530==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH mm v5 31/39] kasan, vmalloc: only tag normal vmalloc allocations Date: Sat, 01 Jan 2022 08:25:14 +0800 Message-ID: <202201010830.uUDFq8gJ-lkp@intel.com> In-Reply-To: <220f632da9a7ea4014f13581b0ec7e66d323cb30.1640891329.git.andreyknvl@google.com> List-Id: --===============1399805444588247530== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20211224] [cannot apply to hnaz-mm/master arm64/for-next/core rostedt-trace/for-next = linus/master v5.16-rc7 v5.16-rc6 v5.16-rc5 v5.16-rc7] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/andrey-konovalov-linux-dev= /kasan-vmalloc-arm64-add-vmalloc-tagging-support-for-SW-HW_TAGS/20211231-03= 1807 base: ea586a076e8aa606c59b66d86660590f18354b11 config: x86_64-rhel-8.3-kselftests (https://download.01.org/0day-ci/archive= /20220101/202201010830.uUDFq8gJ-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/0day-ci/linux/commit/e89d252ecdc4f1ee8ec9ef966= b78d1b6b7324e0c git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review andrey-konovalov-linux-dev/kasan-v= malloc-arm64-add-vmalloc-tagging-support-for-SW-HW_TAGS/20211231-031807 git checkout e89d252ecdc4f1ee8ec9ef966b78d1b6b7324e0c # save the config file to linux build tree mkdir build_dir make W=3D1 C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3D= build_dir ARCH=3Dx86_64 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> mm/kasan/shadow.c:495:15: sparse: sparse: restricted kasan_vmalloc_flags= _t degrades to integer vim +495 mm/kasan/shadow.c 477 = 478 void *__kasan_unpoison_vmalloc(const void *start, unsigned long size, 479 kasan_vmalloc_flags_t flags) 480 { 481 /* 482 * Software KASAN modes unpoison both VM_ALLOC and non-VM_ALLOC 483 * mappings, so the KASAN_VMALLOC_VM_ALLOC flag is ignored. 484 * Software KASAN modes can't optimize zeroing memory by combining = it 485 * with setting memory tags, so the KASAN_VMALLOC_INIT flag is igno= red. 486 */ 487 = 488 if (!is_vmalloc_or_module_addr(start)) 489 return (void *)start; 490 = 491 /* 492 * Don't tag executable memory. 493 * The kernel doesn't tolerate having the PC register tagged. 494 */ > 495 if (!(flags & KASAN_VMALLOC_PROT_NORMAL)) 496 return (void *)start; 497 = 498 start =3D set_tag(start, kasan_random_tag()); 499 kasan_unpoison(start, size, false); 500 return (void *)start; 501 } 502 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1399805444588247530==--