Skip to content

Commit 347079b

Browse files
liu-song-6Nobody
authored andcommitted
x86: disable HAVE_ARCH_HUGE_VMALLOC on 32-bit x86
kernel test robot reported kernel BUG like: [ 44.587744][ T1] kernel BUG at arch/x86/mm/physaddr.c:76! [ 44.590151][ T1] __vmalloc_area_node (mm/vmalloc.c:622 mm/vmalloc.c:2995) [ 44.590151][ T1] __vmalloc_node_range (mm/vmalloc.c:3108) [ 44.590151][ T1] __vmalloc_node (mm/vmalloc.c:3157) which is triggered with HAVE_ARCH_HUGE_VMALLOC on 32-bit x86. Since BPF only uses HAVE_ARCH_HUGE_VMALLOC for x86_64, turn it off for 32-bit x86. Reported-by: kernel test robot <oliver.sang@intel.com> Fixes: fac54e2 ("x86/Kconfig: Select HAVE_ARCH_HUGE_VMALLOC with HAVE_ARCH_HUGE_VMAP") Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Song Liu <song@kernel.org>
1 parent 447a2d0 commit 347079b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ config X86
158158
select HAVE_ALIGNED_STRUCT_PAGE if SLUB
159159
select HAVE_ARCH_AUDITSYSCALL
160160
select HAVE_ARCH_HUGE_VMAP if X86_64 || X86_PAE
161-
select HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP
161+
select HAVE_ARCH_HUGE_VMALLOC if X86_64
162162
select HAVE_ARCH_JUMP_LABEL
163163
select HAVE_ARCH_JUMP_LABEL_RELATIVE
164164
select HAVE_ARCH_KASAN if X86_64

0 commit comments

Comments
 (0)