From: kernel test robot <lkp@intel.com>
To: Maxwell Bland <mbland@motorola.com>, linux-mm@kvack.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Maxwell Bland <mbland@motorola.com>,
Richard Henderson <richard.henderson@linaro.org>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
Matt Turner <mattst88@gmail.com>,
Vineet Gupta <vgupta@kernel.org>,
Alexander Potapenko <glider@google.com>,
Marco Elver <elver@google.com>,
Dmitry Vyukov <dvyukov@google.com>,
Russell King <linux@armlinux.org.uk>,
Andrey Ryabinin <ryabinin.a.a@gmail.com>,
Andrey Konovalov <andreyknvl@gmail.com>,
Vincenzo Frascino <vincenzo.frascino@arm.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>, Guo Ren <guoren@kernel.org>,
Brian Cain <bcain@quicinc.com>,
Huacai Chen <chenhuacai@kernel.org>,
WANG Xuerui <kernel@xen0n.name>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Sam Creasey <sammy@sammy.net>, Michal Simek <monstr@monstr.eu>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
Dinh Nguyen <dinguyen@kernel.org>,
Jonas Bonn <jonas@southpole.se>,
Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>,
Stafford Horne <shorne@gmail.com>,
"James E.J. Bottomley" <James.Bottomley@hansenpartnership.com>,
Helge Deller <deller@gmx.de>,
Michael Ellerman <mpe@ellerman.id.au>
Subject: Re: [PATCH 3/5] mm: add vaddr param to pmd_populate_kernel
Date: Wed, 17 Apr 2024 16:23:48 +0800 [thread overview]
Message-ID: <202404171648.VEQfHAIY-lkp@intel.com> (raw)
In-Reply-To: <20240416122254.868007168-4-mbland@motorola.com>
Hi Maxwell,
kernel test robot noticed the following build errors:
[auto build test ERROR on 0bbac3facb5d6cc0171c45c9873a2dc96bea9680]
url: https://github.com/intel-lab-lkp/linux/commits/Maxwell-Bland/mm-allow-arch-refinement-skip-for-vmap-alloc/20240417-032149
base: 0bbac3facb5d6cc0171c45c9873a2dc96bea9680
patch link: https://lore.kernel.org/r/20240416122254.868007168-4-mbland%40motorola.com
patch subject: [PATCH 3/5] mm: add vaddr param to pmd_populate_kernel
config: powerpc64-randconfig-003-20240417 (https://download.01.org/0day-ci/archive/20240417/202404171648.VEQfHAIY-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 7089c359a3845323f6f30c44a47dd901f2edfe63)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240417/202404171648.VEQfHAIY-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404171648.VEQfHAIY-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/powerpc/mm/kasan/init_book3s_64.c:19:
In file included from include/linux/memblock.h:12:
In file included from include/linux/mm.h:2208:
include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
509 | item];
| ~~~~
include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
516 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
528 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
537 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/mm/kasan/init_book3s_64.c:75:9: error: incompatible pointer to integer conversion passing 'void *' to parameter of type 'unsigned long' [-Wint-conversion]
75 | vaddr_start + i * PMD_SIZE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/book3s/64/pgalloc.h:159:38: note: passing argument to parameter 'vaddr' here
159 | pte_t *pte, unsigned long vaddr)
| ^
5 warnings and 1 error generated.
vim +75 arch/powerpc/mm/kasan/init_book3s_64.c
39
40 void __init kasan_init(void)
41 {
42 /*
43 * We want to do the following things:
44 * 1) Map real memory into the shadow for all physical memblocks
45 * This takes us from c000... to c008...
46 * 2) Leave a hole over the shadow of vmalloc space. KASAN_VMALLOC
47 * will manage this for us.
48 * This takes us from c008... to c00a...
49 * 3) Map the 'early shadow'/zero page over iomap and vmemmap space.
50 * This takes us up to where we start at c00e...
51 */
52
53 void *k_start = kasan_mem_to_shadow((void *)RADIX_VMALLOC_END);
54 void *k_end = kasan_mem_to_shadow((void *)RADIX_VMEMMAP_END);
55 phys_addr_t start, end;
56 u64 i;
57 pte_t zero_pte = pfn_pte(virt_to_pfn(kasan_early_shadow_page), PAGE_KERNEL);
58 void *vaddr_start = __va(start);
59
60 if (!early_radix_enabled()) {
61 pr_warn("KASAN not enabled as it requires radix!");
62 return;
63 }
64
65 for_each_mem_range(i, &start, &end)
66 kasan_init_phys_region((void *)start, (void *)end);
67
68 for (i = 0; i < PTRS_PER_PTE; i++)
69 __set_pte_at(&init_mm, (unsigned long)kasan_early_shadow_page,
70 &kasan_early_shadow_pte[i], zero_pte, 0);
71
72 for (i = 0; i < PTRS_PER_PMD; i++) {
73 pmd_populate_kernel(&init_mm, &kasan_early_shadow_pmd[i],
74 kasan_early_shadow_pte,
> 75 vaddr_start + i * PMD_SIZE);
76 }
77
78 for (i = 0; i < PTRS_PER_PUD; i++)
79 pud_populate(&init_mm, &kasan_early_shadow_pud[i],
80 kasan_early_shadow_pmd);
81
82 /* map the early shadow over the iomap and vmemmap space */
83 kasan_populate_early_shadow(k_start, k_end);
84
85 /* mark early shadow region as RO and wipe it */
86 zero_pte = pfn_pte(virt_to_pfn(kasan_early_shadow_page), PAGE_KERNEL_RO);
87 for (i = 0; i < PTRS_PER_PTE; i++)
88 __set_pte_at(&init_mm, (unsigned long)kasan_early_shadow_page,
89 &kasan_early_shadow_pte[i], zero_pte, 0);
90
91 /*
92 * clear_page relies on some cache info that hasn't been set up yet.
93 * It ends up looping ~forever and blows up other data.
94 * Use memset instead.
95 */
96 memset(kasan_early_shadow_page, 0, PAGE_SIZE);
97
98 static_branch_inc(&powerpc_kasan_enabled_key);
99
100 /* Enable error messages */
101 init_task.kasan_depth = 0;
102 pr_info("KASAN init done\n");
103 }
104
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-04-17 8:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-15 20:16 [PATCH 0/5] mm: code and data partitioning improvements Maxwell Bland
2024-04-02 20:15 ` [PATCH 1/5] mm: allow arch refinement/skip for vmap alloc Maxwell Bland
2024-04-16 19:18 ` [PATCH 1/5 RESEND] " Maxwell Bland
2024-04-18 8:55 ` [PATCH 1/5] " Uladzislau Rezki
2024-04-18 15:52 ` Maxwell Bland
2024-04-05 18:37 ` [PATCH 3/5] mm: add vaddr param to pmd_populate_kernel Maxwell Bland
2024-04-16 19:18 ` [PATCH 3/5 RESEND] " Maxwell Bland
2024-04-17 8:23 ` kernel test robot [this message]
2024-04-15 19:51 ` [PATCH 5/5] ptdump: add state parameter for non-leaf callback Maxwell Bland
2024-04-16 19:18 ` [PATCH 5/5 RESEND] " Maxwell Bland
2024-04-16 20:11 ` [PATCH 5/5] " Andrew Morton
2024-04-16 21:01 ` Maxwell Bland
2024-04-16 19:18 ` [PATCH 0/5 RESEND] mm: code and data partitioning improvements Maxwell Bland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202404171648.VEQfHAIY-lkp@intel.com \
--to=lkp@intel.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=andreyknvl@gmail.com \
--cc=bcain@quicinc.com \
--cc=catalin.marinas@arm.com \
--cc=chenhuacai@kernel.org \
--cc=deller@gmx.de \
--cc=dinguyen@kernel.org \
--cc=dvyukov@google.com \
--cc=elver@google.com \
--cc=geert@linux-m68k.org \
--cc=glider@google.com \
--cc=guoren@kernel.org \
--cc=ink@jurassic.park.msu.ru \
--cc=jonas@southpole.se \
--cc=kernel@xen0n.name \
--cc=linux-mm@kvack.org \
--cc=linux@armlinux.org.uk \
--cc=llvm@lists.linux.dev \
--cc=mattst88@gmail.com \
--cc=mbland@motorola.com \
--cc=monstr@monstr.eu \
--cc=mpe@ellerman.id.au \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=richard.henderson@linaro.org \
--cc=ryabinin.a.a@gmail.com \
--cc=sammy@sammy.net \
--cc=shorne@gmail.com \
--cc=stefan.kristiansson@saunalahti.fi \
--cc=tsbogend@alpha.franken.de \
--cc=vgupta@kernel.org \
--cc=vincenzo.frascino@arm.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).