tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 727900b675b749c40ba1f6669c7ae5eb7eb8e837 commit: 302519d9e80a7fbf2cf8d0b8961d491af648759f [2805/3504] asm-generic/io.h: kill vmalloc.h dependency config: arm64-randconfig-r011-20220710 (https://download.01.org/0day-ci/archive/20240403/202404031246.aq5Yr5KO-lkp@xxxxxxxxx/config) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240403/202404031246.aq5Yr5KO-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202404031246.aq5Yr5KO-lkp@xxxxxxxxx/ All error/warnings (new ones prefixed by >>): mm/kasan/hw_tags.c: In function 'unpoison_vmalloc_pages': >> mm/kasan/hw_tags.c:280:16: error: implicit declaration of function 'find_vm_area'; did you mean 'find_vma_prev'? [-Werror=implicit-function-declaration] 280 | area = find_vm_area((void *)addr); | ^~~~~~~~~~~~ | find_vma_prev >> mm/kasan/hw_tags.c:280:14: warning: assignment to 'struct vm_struct *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 280 | area = find_vm_area((void *)addr); | ^ >> mm/kasan/hw_tags.c:284:29: error: invalid use of undefined type 'struct vm_struct' 284 | for (i = 0; i < area->nr_pages; i++) { | ^~ mm/kasan/hw_tags.c:285:41: error: invalid use of undefined type 'struct vm_struct' 285 | struct page *page = area->pages[i]; | ^~ cc1: some warnings being treated as errors vim +280 mm/kasan/hw_tags.c 23689e91fb22c1 Andrey Konovalov 2022-03-24 269 23689e91fb22c1 Andrey Konovalov 2022-03-24 270 static void unpoison_vmalloc_pages(const void *addr, u8 tag) 23689e91fb22c1 Andrey Konovalov 2022-03-24 271 { 23689e91fb22c1 Andrey Konovalov 2022-03-24 272 struct vm_struct *area; 23689e91fb22c1 Andrey Konovalov 2022-03-24 273 int i; 23689e91fb22c1 Andrey Konovalov 2022-03-24 274 23689e91fb22c1 Andrey Konovalov 2022-03-24 275 /* 23689e91fb22c1 Andrey Konovalov 2022-03-24 276 * As hardware tag-based KASAN only tags VM_ALLOC vmalloc allocations 23689e91fb22c1 Andrey Konovalov 2022-03-24 277 * (see the comment in __kasan_unpoison_vmalloc), all of the pages 23689e91fb22c1 Andrey Konovalov 2022-03-24 278 * should belong to a single area. 23689e91fb22c1 Andrey Konovalov 2022-03-24 279 */ 23689e91fb22c1 Andrey Konovalov 2022-03-24 @280 area = find_vm_area((void *)addr); 23689e91fb22c1 Andrey Konovalov 2022-03-24 281 if (WARN_ON(!area)) 23689e91fb22c1 Andrey Konovalov 2022-03-24 282 return; 23689e91fb22c1 Andrey Konovalov 2022-03-24 283 23689e91fb22c1 Andrey Konovalov 2022-03-24 @284 for (i = 0; i < area->nr_pages; i++) { 23689e91fb22c1 Andrey Konovalov 2022-03-24 285 struct page *page = area->pages[i]; 23689e91fb22c1 Andrey Konovalov 2022-03-24 286 23689e91fb22c1 Andrey Konovalov 2022-03-24 287 page_kasan_tag_set(page, tag); 23689e91fb22c1 Andrey Konovalov 2022-03-24 288 } 23689e91fb22c1 Andrey Konovalov 2022-03-24 289 } 23689e91fb22c1 Andrey Konovalov 2022-03-24 290 :::::: The code at line 280 was first introduced by commit :::::: 23689e91fb22c15b84ac6c22ad9942039792f3af kasan, vmalloc: add vmalloc tagging for HW_TAGS :::::: TO: Andrey Konovalov <andreyknvl@xxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki