linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Re: next/master bisection: baseline.login on qemu_arm-virt-gicv3
       [not found] <633f0406.050a0220.9431e.d406@mx.google.com>
@ 2022-10-06 16:53 ` Mark Brown
  2022-10-07  5:11   ` Masahiro Yamada
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Brown @ 2022-10-06 16:53 UTC (permalink / raw)
  To: kernelci-results, bot, Russell King, Masahiro Yamada,
	Nick Desaulniers, Nicolas Schier
  Cc: gtucker, linux-arm-kernel, linux-kbuild, Michal Marek


[-- Attachment #1.1: Type: text/plain, Size: 14931 bytes --]

On Thu, Oct 06, 2022 at 09:36:22AM -0700, KernelCI bot wrote:

The KernelCI bisection bot found a boot regression on qemu in today's
-next for a multi_v7_defconfig with additional debug options running on
virt-gicv3 which it identified as being triggered by 5750121ae738
("kbuild: list sub-directories in ./Kbuild") which does seem surprising
but the bot did test a revert so it seemed worth reporting.

In the failing boot we do see warnings triggered at:

WARNING: CPU: 0 PID: 0 at arch/arm/kernel/insn.c:48 __arm_gen_branch+0x80/0x88
WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:2120 ftrace_bug+0x320/0x38
WARNING: CPU: 0 PID: 1 at include/linux/cpumask.h:110 smp_call_function_many_cond+0xcec/0xf7c

before the boot hangs at:

<6>[   35.875754][    T1] Using buffer write method
<7>[   35.876786][    T1] erase region 0: offset=0x0,size=0x40000,blocks=256
<5>[   35.877421][    T1] Concatenating MTD devices:
<5>[   35.877799][    T1] (0): \"0.flash\"
<5>[   35.878103][    T1] (1): \"0.flash\"
<5>[   35.878403][    T1] into device \"0.flash\"

I've left the full report including a tag for the bot and links to
things like full build logs below:

> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * This automated bisection report was sent to you on the basis  *
> * that you may be involved with the breaking commit it has      *
> * found.  No manual investigation has been done to verify it,   *
> * and the root cause of the problem may be somewhere else.      *
> *                                                               *
> * If you do send a fix, please include this trailer:            *
> *   Reported-by: "kernelci.org bot" <bot@kernelci.org>          *
> *                                                               *
> * Hope this helps!                                              *
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> 
> next/master bisection: baseline.login on qemu_arm-virt-gicv3
> 
> Summary:
>   Start:      4d80748d16c8 Add linux-next specific files for 20221004
>   Plain log:  https://storage.kernelci.org/next/master/next-20221004/arm/multi_v7_defconfig+debug/gcc-10/lab-collabora/baseline-qemu_arm-virt-gicv3.txt
>   HTML log:   https://storage.kernelci.org/next/master/next-20221004/arm/multi_v7_defconfig+debug/gcc-10/lab-collabora/baseline-qemu_arm-virt-gicv3.html
>   Result:     5750121ae738 kbuild: list sub-directories in ./Kbuild
> 
> Checks:
>   revert:     FAIL
>   verify:     PASS
> 
> Parameters:
>   Tree:       next
>   URL:        https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>   Branch:     master
>   Target:     qemu_arm-virt-gicv3
>   CPU arch:   arm
>   Lab:        lab-collabora
>   Compiler:   gcc-10
>   Config:     multi_v7_defconfig+debug
>   Test case:  baseline.login
> 
> Breaking commit found:
> 
> -------------------------------------------------------------------------------
> commit 5750121ae7382ebac8d47ce6d68012d6cd1d7926
> Author: Masahiro Yamada <masahiroy@kernel.org>
> Date:   Sun Sep 25 03:19:10 2022 +0900
> 
>     kbuild: list sub-directories in ./Kbuild
>     
>     Use the ordinary obj-y syntax to list subdirectories.
>     
>     Note1:
>     Previously, the link order of lib-y depended on CONFIG_MODULES; lib-y
>     was linked before drivers-y when CONFIG_MODULES=y, otherwise after
>     drivers-y. This was a bug of commit 7273ad2b08f8 ("kbuild: link lib-y
>     objects to vmlinux forcibly when CONFIG_MODULES=y"), but it was not a
>     big deal after all. Now, all objects listed in lib-y are linked last,
>     irrespective of CONFIG_MODULES.
>     
>     Note2:
>     Finally, the single target build in arch/*/lib/ works correctly. There was
>     a bug report about this. [1]
>     
>       $ make ARCH=arm arch/arm/lib/findbit.o
>         CALL    scripts/checksyscalls.sh
>         AS      arch/arm/lib/findbit.o
>     
>     [1]: https://lore.kernel.org/linux-kbuild/YvUQOwL6lD4%2F5%2FU6@shell.armlinux.org.uk/
>     
>     Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
>     Tested-by: Nick Desaulniers <ndesaulniers@google.com>
>     Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
> 
> diff --git a/Kbuild b/Kbuild
> index 0b9e8a16a621..8a37584d1fd6 100644
> --- a/Kbuild
> +++ b/Kbuild
> @@ -72,3 +72,27 @@ $(atomic-checks): $(obj)/.checked-%: include/linux/atomic/%  FORCE
>  PHONY += prepare
>  prepare: $(offsets-file) missing-syscalls $(atomic-checks)
>  	@:
> +
> +# Ordinary directory descending
> +# ---------------------------------------------------------------------------
> +
> +obj-y			+= init/
> +obj-y			+= usr/
> +obj-y			+= arch/$(SRCARCH)/
> +obj-y			+= $(ARCH_CORE)
> +obj-y			+= kernel/
> +obj-y			+= certs/
> +obj-y			+= mm/
> +obj-y			+= fs/
> +obj-y			+= ipc/
> +obj-y			+= security/
> +obj-y			+= crypto/
> +obj-$(CONFIG_BLOCK)	+= block/
> +obj-$(CONFIG_IO_URING)	+= io_uring/
> +obj-y			+= $(ARCH_LIB)
> +obj-y			+= drivers/
> +obj-y			+= sound/
> +obj-$(CONFIG_SAMPLES)	+= samples/
> +obj-$(CONFIG_NET)	+= net/
> +obj-y			+= virt/
> +obj-y			+= $(ARCH_DRIVERS)
> diff --git a/Makefile b/Makefile
> index 09c9d9a005bd..317e9f09440c 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -676,11 +676,8 @@ endif
>  
>  ifeq ($(KBUILD_EXTMOD),)
>  # Objects we will link into vmlinux / subdirs we need to visit
> -core-y		:= init/ usr/ arch/$(SRCARCH)/
> -drivers-y	:= drivers/ sound/
> -drivers-$(CONFIG_SAMPLES) += samples/
> -drivers-$(CONFIG_NET) += net/
> -drivers-y	+= virt/
> +core-y		:=
> +drivers-y	:=
>  libs-y		:= lib/
>  endif # KBUILD_EXTMOD
>  
> @@ -1099,31 +1096,24 @@ export MODORDER := $(extmod_prefix)modules.order
>  export MODULES_NSDEPS := $(extmod_prefix)modules.nsdeps
>  
>  ifeq ($(KBUILD_EXTMOD),)
> -core-y			+= kernel/ certs/ mm/ fs/ ipc/ security/ crypto/
> -core-$(CONFIG_BLOCK)	+= block/
> -core-$(CONFIG_IO_URING)	+= io_uring/
>  
> -vmlinux-dirs	:= $(patsubst %/,%,$(filter %/, \
> -		     $(core-y) $(core-m) $(drivers-y) $(drivers-m) \
> -		     $(libs-y) $(libs-m)))
> -
> -build-dirs	:= $(vmlinux-dirs)
> -clean-dirs	:= $(sort $(vmlinux-dirs) Documentation . \
> +build-dir	:= .
> +clean-dirs	:= $(sort . Documentation \
>  		     $(patsubst %/,%,$(filter %/, $(core-) \
>  			$(drivers-) $(libs-))))
>  
> -subdir-modorder := $(addsuffix /modules.order, $(build-dirs))
> -
> +export ARCH_CORE	:= $(core-y)
> +export ARCH_LIB		:= $(filter %/, $(libs-y))
> +export ARCH_DRIVERS	:= $(drivers-y) $(drivers-m)
>  # Externally visible symbols (used by link-vmlinux.sh)
> -KBUILD_VMLINUX_OBJS := $(head-y) $(patsubst %/,%/built-in.a, $(core-y))
> -KBUILD_VMLINUX_OBJS += $(addsuffix built-in.a, $(filter %/, $(libs-y)))
> +
> +KBUILD_VMLINUX_OBJS := $(head-y) ./built-in.a
>  ifdef CONFIG_MODULES
>  KBUILD_VMLINUX_OBJS += $(patsubst %/, %/lib.a, $(filter %/, $(libs-y)))
>  KBUILD_VMLINUX_LIBS := $(filter-out %/, $(libs-y))
>  else
>  KBUILD_VMLINUX_LIBS := $(patsubst %/,%/lib.a, $(libs-y))
>  endif
> -KBUILD_VMLINUX_OBJS += $(patsubst %/,%/built-in.a, $(drivers-y))
>  
>  export KBUILD_VMLINUX_OBJS KBUILD_VMLINUX_LIBS
>  export KBUILD_LDS          := arch/$(SRCARCH)/kernel/vmlinux.lds
> @@ -1138,7 +1128,7 @@ ifdef CONFIG_TRIM_UNUSED_KSYMS
>  # (this can be evaluated only once include/config/auto.conf has been included)
>  KBUILD_MODULES := 1
>  
> -autoksyms_recursive: descend modules.order
> +autoksyms_recursive: $(build-dir) modules.order
>  	$(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \
>  	  "$(MAKE) -f $(srctree)/Makefile autoksyms_recursive"
>  endif
> @@ -1166,7 +1156,7 @@ targets := vmlinux
>  
>  # The actual objects are generated when descending,
>  # make sure no implicit rule kicks in
> -$(sort $(vmlinux-deps) $(subdir-modorder)): descend ;
> +$(sort $(vmlinux-deps)): . ;
>  
>  filechk_kernel.release = \
>  	echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
> @@ -1437,13 +1427,6 @@ endif
>  
>  modules: $(if $(KBUILD_BUILTIN),vmlinux) modules_prepare
>  
> -cmd_modules_order = cat $(real-prereqs) > $@
> -
> -modules.order: $(subdir-modorder) FORCE
> -	$(call if_changed,modules_order)
> -
> -targets += modules.order
> -
>  # Target to prepare building external modules
>  modules_prepare: prepare
>  	$(Q)$(MAKE) $(build)=scripts scripts/module.lds
> @@ -1714,9 +1697,7 @@ else # KBUILD_EXTMOD
>  KBUILD_BUILTIN :=
>  KBUILD_MODULES := 1
>  
> -build-dirs := $(KBUILD_EXTMOD)
> -$(MODORDER): descend
> -	@:
> +build-dir := $(KBUILD_EXTMOD)
>  
>  compile_commands.json: $(extmod_prefix)compile_commands.json
>  PHONY += compile_commands.json
> @@ -1754,6 +1735,9 @@ PHONY += modules modules_install modules_prepare
>  
>  ifdef CONFIG_MODULES
>  
> +$(MODORDER): $(build-dir)
> +	@:
> +
>  modules: modules_check
>  	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
>  
> @@ -1807,7 +1791,7 @@ single-no-ko := $(filter-out $(single-ko), $(MAKECMDGOALS)) \
>  
>  $(single-ko): single_modpost
>  	@:
> -$(single-no-ko): descend
> +$(single-no-ko): $(build-dir)
>  	@:
>  
>  # Remove MODORDER when done because it is not the real one.
> @@ -1817,24 +1801,17 @@ single_modpost: $(single-no-ko) modules_prepare
>  	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
>  	$(Q)rm -f $(MODORDER)
>  
> -single-goals := $(addprefix $(extmod_prefix), $(single-no-ko))
> -
> -# trim unrelated directories
> -build-dirs := $(foreach d, $(build-dirs), \
> -			$(if $(filter $d/%, $(single-goals)), $d))
> +single-goals := $(addprefix $(build-dir)/, $(single-no-ko))
>  
>  endif
>  
> -# Handle descending into subdirectories listed in $(build-dirs)
>  # Preset locale variables to speed up the build process. Limit locale
>  # tweaks to this spot to avoid wrong language settings when running
>  # make menuconfig etc.
>  # Error messages still appears in the original language
> -PHONY += descend $(build-dirs)
> -descend: $(build-dirs)
> -$(build-dirs): prepare
> -	$(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 \
> -	$(filter $@/%, $(single-goals))
> +PHONY += $(build-dir)
> +$(build-dir): prepare
> +	$(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 $(single-goals)
>  
>  clean-dirs := $(addprefix _clean_, $(clean-dirs))
>  PHONY += $(clean-dirs) clean
> diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
> index 52811b2783de..b7e650bc70f2 100644
> --- a/scripts/Makefile.lib
> +++ b/scripts/Makefile.lib
> @@ -89,6 +89,7 @@ always-y			+= $(dtb-y)
>  
>  # Add subdir path
>  
> +ifneq ($(obj),.)
>  extra-y		:= $(addprefix $(obj)/,$(extra-y))
>  always-y	:= $(addprefix $(obj)/,$(always-y))
>  targets		:= $(addprefix $(obj)/,$(targets))
> @@ -100,6 +101,7 @@ multi-obj-m	:= $(addprefix $(obj)/, $(multi-obj-m))
>  multi-dtb-y	:= $(addprefix $(obj)/, $(multi-dtb-y))
>  real-dtb-y	:= $(addprefix $(obj)/, $(real-dtb-y))
>  subdir-ym	:= $(addprefix $(obj)/,$(subdir-ym))
> +endif
>  
>  # Finds the multi-part object the current object will be linked into.
>  # If the object belongs to two or more multi-part objects, list them all.
> -------------------------------------------------------------------------------
> 
> 
> Git bisection log:
> 
> -------------------------------------------------------------------------------
> git bisect start
> # good: [46a275a5616736cbe70012311bc9003817e96b51] Merge branch 'net-marvell-prestera-add-nexthop-routes-offloading'
> git bisect good 46a275a5616736cbe70012311bc9003817e96b51
> # bad: [4d80748d16c82a9c2c4ea5feea96e476de3cd876] Add linux-next specific files for 20221004
> git bisect bad 4d80748d16c82a9c2c4ea5feea96e476de3cd876
> # bad: [b9e99512aede9973504f01b5c27853be4927bde0] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
> git bisect bad b9e99512aede9973504f01b5c27853be4927bde0
> # bad: [89174722727353c961913b70b37bc942ee5c0251] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git
> git bisect bad 89174722727353c961913b70b37bc942ee5c0251
> # bad: [58b61aabb9a5fafd45d09db1fae511d0304af79e] Merge branch 'for-next' of git://git.armlinux.org.uk/~rmk/linux-arm.git
> git bisect bad 58b61aabb9a5fafd45d09db1fae511d0304af79e
> # good: [86a4d29e75540e20f991e72f17aa51d0e775a397] Merge tag 'asoc-v6.1' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
> git bisect good 86a4d29e75540e20f991e72f17aa51d0e775a397
> # good: [112f485b2e65f8680fcecc660aabd73ab1af946d] Merge branch 'fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl.git
> git bisect good 112f485b2e65f8680fcecc660aabd73ab1af946d
> # good: [f9fe5fdbcdba66e96cddaf83877322c7a18caf76] Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git
> git bisect good f9fe5fdbcdba66e96cddaf83877322c7a18caf76
> # good: [62e64c9d2fd12839c02f1b3e8b873e7cb34e8720] perf test: Add basic core_wide expression test
> git bisect good 62e64c9d2fd12839c02f1b3e8b873e7cb34e8720
> # bad: [cff6fdf0b2d45f563e2c25f243c624a2723d5f58] ia64: simplify esi object addition in Makefile
> git bisect bad cff6fdf0b2d45f563e2c25f243c624a2723d5f58
> # good: [a8d5692659358eba46d3b2f7d96da7c390f41f71] scripts: remove unused argument 'type'
> git bisect good a8d5692659358eba46d3b2f7d96da7c390f41f71
> # bad: [ce697ccee1a8661da4e23fbe5f3d45d8d6922c20] kbuild: remove head-y syntax
> git bisect bad ce697ccee1a8661da4e23fbe5f3d45d8d6922c20
> # bad: [9c5a0ac3c36917c4258f734bda98be02ca36b992] kbuild: move vmlinux.o rule to the top Makefile
> git bisect bad 9c5a0ac3c36917c4258f734bda98be02ca36b992
> # good: [88b61e3bff93f99712718db785b4aa0c1165f35c] Makefile.compiler: replace cc-ifversion with compiler-specific macros
> git bisect good 88b61e3bff93f99712718db785b4aa0c1165f35c
> # bad: [26ef40de5cbb24728a34a319e8d42cdec99f186c] kbuild: move .vmlinux.objs rule to Makefile.modpost
> git bisect bad 26ef40de5cbb24728a34a319e8d42cdec99f186c
> # bad: [5750121ae7382ebac8d47ce6d68012d6cd1d7926] kbuild: list sub-directories in ./Kbuild
> git bisect bad 5750121ae7382ebac8d47ce6d68012d6cd1d7926
> # first bad commit: [5750121ae7382ebac8d47ce6d68012d6cd1d7926] kbuild: list sub-directories in ./Kbuild
> -------------------------------------------------------------------------------
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Groups.io Links: You receive all messages sent to this group.
> View/Reply Online (#32406): https://groups.io/g/kernelci-results/message/32406
> Mute This Topic: https://groups.io/mt/94161699/1131744
> Group Owner: kernelci-results+owner@groups.io
> Unsubscribe: https://groups.io/g/kernelci-results/unsub [broonie@kernel.org]
> -=-=-=-=-=-=-=-=-=-=-=-
> 
> 

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: next/master bisection: baseline.login on qemu_arm-virt-gicv3
  2022-10-06 16:53 ` next/master bisection: baseline.login on qemu_arm-virt-gicv3 Mark Brown
@ 2022-10-07  5:11   ` Masahiro Yamada
  2022-10-07  5:38     ` Masahiro Yamada
  0 siblings, 1 reply; 11+ messages in thread
From: Masahiro Yamada @ 2022-10-07  5:11 UTC (permalink / raw)
  To: Mark Brown
  Cc: kernelci-results, bot, Russell King, Nick Desaulniers,
	Nicolas Schier, gtucker, linux-arm-kernel, linux-kbuild,
	Michal Marek

On Fri, Oct 7, 2022 at 1:53 AM Mark Brown <broonie@kernel.org> wrote:
>
> On Thu, Oct 06, 2022 at 09:36:22AM -0700, KernelCI bot wrote:
>
> The KernelCI bisection bot found a boot regression on qemu in today's
> -next for a multi_v7_defconfig with additional debug options running on
> virt-gicv3 which it identified as being triggered by 5750121ae738
> ("kbuild: list sub-directories in ./Kbuild") which does seem surprising
> but the bot did test a revert so it seemed worth reporting



Please tell me the command line arguments to qemu-system-arm.
Especially, how to turn on gicv3.


Thanks.
Masahiro Yamada










.
>
> In the failing boot we do see warnings triggered at:
>
> WARNING: CPU: 0 PID: 0 at arch/arm/kernel/insn.c:48 __arm_gen_branch+0x80/0x88
> WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:2120 ftrace_bug+0x320/0x38
> WARNING: CPU: 0 PID: 1 at include/linux/cpumask.h:110 smp_call_function_many_cond+0xcec/0xf7c
>
> before the boot hangs at:
>
> <6>[   35.875754][    T1] Using buffer write method
> <7>[   35.876786][    T1] erase region 0: offset=0x0,size=0x40000,blocks=256
> <5>[   35.877421][    T1] Concatenating MTD devices:
> <5>[   35.877799][    T1] (0): \"0.flash\"
> <5>[   35.878103][    T1] (1): \"0.flash\"
> <5>[   35.878403][    T1] into device \"0.flash\"
>
> I've left the full report including a tag for the bot and links to
> things like full build logs below:
>
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> > * This automated bisection report was sent to you on the basis  *
> > * that you may be involved with the breaking commit it has      *
> > * found.  No manual investigation has been done to verify it,   *
> > * and the root cause of the problem may be somewhere else.      *
> > *                                                               *
> > * If you do send a fix, please include this trailer:            *
> > *   Reported-by: "kernelci.org bot" <bot@kernelci.org>          *
> > *                                                               *
> > * Hope this helps!                                              *
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> >
> > next/master bisection: baseline.login on qemu_arm-virt-gicv3
> >
> > Summary:
> >   Start:      4d80748d16c8 Add linux-next specific files for 20221004
> >   Plain log:  https://storage.kernelci.org/next/master/next-20221004/arm/multi_v7_defconfig+debug/gcc-10/lab-collabora/baseline-qemu_arm-virt-gicv3.txt
> >   HTML log:   https://storage.kernelci.org/next/master/next-20221004/arm/multi_v7_defconfig+debug/gcc-10/lab-collabora/baseline-qemu_arm-virt-gicv3.html
> >   Result:     5750121ae738 kbuild: list sub-directories in ./Kbuild
> >
> > Checks:
> >   revert:     FAIL
> >   verify:     PASS
> >
> > Parameters:
> >   Tree:       next
> >   URL:        https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> >   Branch:     master
> >   Target:     qemu_arm-virt-gicv3
> >   CPU arch:   arm
> >   Lab:        lab-collabora
> >   Compiler:   gcc-10
> >   Config:     multi_v7_defconfig+debug
> >   Test case:  baseline.login
> >
> > Breaking commit found:
> >
> > -------------------------------------------------------------------------------
> > commit 5750121ae7382ebac8d47ce6d68012d6cd1d7926
> > Author: Masahiro Yamada <masahiroy@kernel.org>
> > Date:   Sun Sep 25 03:19:10 2022 +0900
> >
> >     kbuild: list sub-directories in ./Kbuild
> >
> >     Use the ordinary obj-y syntax to list subdirectories.
> >
> >     Note1:
> >     Previously, the link order of lib-y depended on CONFIG_MODULES; lib-y
> >     was linked before drivers-y when CONFIG_MODULES=y, otherwise after
> >     drivers-y. This was a bug of commit 7273ad2b08f8 ("kbuild: link lib-y
> >     objects to vmlinux forcibly when CONFIG_MODULES=y"), but it was not a
> >     big deal after all. Now, all objects listed in lib-y are linked last,
> >     irrespective of CONFIG_MODULES.
> >
> >     Note2:
> >     Finally, the single target build in arch/*/lib/ works correctly. There was
> >     a bug report about this. [1]
> >
> >       $ make ARCH=arm arch/arm/lib/findbit.o
> >         CALL    scripts/checksyscalls.sh
> >         AS      arch/arm/lib/findbit.o
> >
> >     [1]: https://lore.kernel.org/linux-kbuild/YvUQOwL6lD4%2F5%2FU6@shell.armlinux.org.uk/
> >
> >     Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> >     Tested-by: Nick Desaulniers <ndesaulniers@google.com>
> >     Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
> >
> > diff --git a/Kbuild b/Kbuild
> > index 0b9e8a16a621..8a37584d1fd6 100644
> > --- a/Kbuild
> > +++ b/Kbuild
> > @@ -72,3 +72,27 @@ $(atomic-checks): $(obj)/.checked-%: include/linux/atomic/%  FORCE
> >  PHONY += prepare
> >  prepare: $(offsets-file) missing-syscalls $(atomic-checks)
> >       @:
> > +
> > +# Ordinary directory descending
> > +# ---------------------------------------------------------------------------
> > +
> > +obj-y                        += init/
> > +obj-y                        += usr/
> > +obj-y                        += arch/$(SRCARCH)/
> > +obj-y                        += $(ARCH_CORE)
> > +obj-y                        += kernel/
> > +obj-y                        += certs/
> > +obj-y                        += mm/
> > +obj-y                        += fs/
> > +obj-y                        += ipc/
> > +obj-y                        += security/
> > +obj-y                        += crypto/
> > +obj-$(CONFIG_BLOCK)  += block/
> > +obj-$(CONFIG_IO_URING)       += io_uring/
> > +obj-y                        += $(ARCH_LIB)
> > +obj-y                        += drivers/
> > +obj-y                        += sound/
> > +obj-$(CONFIG_SAMPLES)        += samples/
> > +obj-$(CONFIG_NET)    += net/
> > +obj-y                        += virt/
> > +obj-y                        += $(ARCH_DRIVERS)
> > diff --git a/Makefile b/Makefile
> > index 09c9d9a005bd..317e9f09440c 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -676,11 +676,8 @@ endif
> >
> >  ifeq ($(KBUILD_EXTMOD),)
> >  # Objects we will link into vmlinux / subdirs we need to visit
> > -core-y               := init/ usr/ arch/$(SRCARCH)/
> > -drivers-y    := drivers/ sound/
> > -drivers-$(CONFIG_SAMPLES) += samples/
> > -drivers-$(CONFIG_NET) += net/
> > -drivers-y    += virt/
> > +core-y               :=
> > +drivers-y    :=
> >  libs-y               := lib/
> >  endif # KBUILD_EXTMOD
> >
> > @@ -1099,31 +1096,24 @@ export MODORDER := $(extmod_prefix)modules.order
> >  export MODULES_NSDEPS := $(extmod_prefix)modules.nsdeps
> >
> >  ifeq ($(KBUILD_EXTMOD),)
> > -core-y                       += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/
> > -core-$(CONFIG_BLOCK) += block/
> > -core-$(CONFIG_IO_URING)      += io_uring/
> >
> > -vmlinux-dirs := $(patsubst %/,%,$(filter %/, \
> > -                  $(core-y) $(core-m) $(drivers-y) $(drivers-m) \
> > -                  $(libs-y) $(libs-m)))
> > -
> > -build-dirs   := $(vmlinux-dirs)
> > -clean-dirs   := $(sort $(vmlinux-dirs) Documentation . \
> > +build-dir    := .
> > +clean-dirs   := $(sort . Documentation \
> >                    $(patsubst %/,%,$(filter %/, $(core-) \
> >                       $(drivers-) $(libs-))))
> >
> > -subdir-modorder := $(addsuffix /modules.order, $(build-dirs))
> > -
> > +export ARCH_CORE     := $(core-y)
> > +export ARCH_LIB              := $(filter %/, $(libs-y))
> > +export ARCH_DRIVERS  := $(drivers-y) $(drivers-m)
> >  # Externally visible symbols (used by link-vmlinux.sh)
> > -KBUILD_VMLINUX_OBJS := $(head-y) $(patsubst %/,%/built-in.a, $(core-y))
> > -KBUILD_VMLINUX_OBJS += $(addsuffix built-in.a, $(filter %/, $(libs-y)))
> > +
> > +KBUILD_VMLINUX_OBJS := $(head-y) ./built-in.a
> >  ifdef CONFIG_MODULES
> >  KBUILD_VMLINUX_OBJS += $(patsubst %/, %/lib.a, $(filter %/, $(libs-y)))
> >  KBUILD_VMLINUX_LIBS := $(filter-out %/, $(libs-y))
> >  else
> >  KBUILD_VMLINUX_LIBS := $(patsubst %/,%/lib.a, $(libs-y))
> >  endif
> > -KBUILD_VMLINUX_OBJS += $(patsubst %/,%/built-in.a, $(drivers-y))
> >
> >  export KBUILD_VMLINUX_OBJS KBUILD_VMLINUX_LIBS
> >  export KBUILD_LDS          := arch/$(SRCARCH)/kernel/vmlinux.lds
> > @@ -1138,7 +1128,7 @@ ifdef CONFIG_TRIM_UNUSED_KSYMS
> >  # (this can be evaluated only once include/config/auto.conf has been included)
> >  KBUILD_MODULES := 1
> >
> > -autoksyms_recursive: descend modules.order
> > +autoksyms_recursive: $(build-dir) modules.order
> >       $(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \
> >         "$(MAKE) -f $(srctree)/Makefile autoksyms_recursive"
> >  endif
> > @@ -1166,7 +1156,7 @@ targets := vmlinux
> >
> >  # The actual objects are generated when descending,
> >  # make sure no implicit rule kicks in
> > -$(sort $(vmlinux-deps) $(subdir-modorder)): descend ;
> > +$(sort $(vmlinux-deps)): . ;
> >
> >  filechk_kernel.release = \
> >       echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
> > @@ -1437,13 +1427,6 @@ endif
> >
> >  modules: $(if $(KBUILD_BUILTIN),vmlinux) modules_prepare
> >
> > -cmd_modules_order = cat $(real-prereqs) > $@
> > -
> > -modules.order: $(subdir-modorder) FORCE
> > -     $(call if_changed,modules_order)
> > -
> > -targets += modules.order
> > -
> >  # Target to prepare building external modules
> >  modules_prepare: prepare
> >       $(Q)$(MAKE) $(build)=scripts scripts/module.lds
> > @@ -1714,9 +1697,7 @@ else # KBUILD_EXTMOD
> >  KBUILD_BUILTIN :=
> >  KBUILD_MODULES := 1
> >
> > -build-dirs := $(KBUILD_EXTMOD)
> > -$(MODORDER): descend
> > -     @:
> > +build-dir := $(KBUILD_EXTMOD)
> >
> >  compile_commands.json: $(extmod_prefix)compile_commands.json
> >  PHONY += compile_commands.json
> > @@ -1754,6 +1735,9 @@ PHONY += modules modules_install modules_prepare
> >
> >  ifdef CONFIG_MODULES
> >
> > +$(MODORDER): $(build-dir)
> > +     @:
> > +
> >  modules: modules_check
> >       $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
> >
> > @@ -1807,7 +1791,7 @@ single-no-ko := $(filter-out $(single-ko), $(MAKECMDGOALS)) \
> >
> >  $(single-ko): single_modpost
> >       @:
> > -$(single-no-ko): descend
> > +$(single-no-ko): $(build-dir)
> >       @:
> >
> >  # Remove MODORDER when done because it is not the real one.
> > @@ -1817,24 +1801,17 @@ single_modpost: $(single-no-ko) modules_prepare
> >       $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
> >       $(Q)rm -f $(MODORDER)
> >
> > -single-goals := $(addprefix $(extmod_prefix), $(single-no-ko))
> > -
> > -# trim unrelated directories
> > -build-dirs := $(foreach d, $(build-dirs), \
> > -                     $(if $(filter $d/%, $(single-goals)), $d))
> > +single-goals := $(addprefix $(build-dir)/, $(single-no-ko))
> >
> >  endif
> >
> > -# Handle descending into subdirectories listed in $(build-dirs)
> >  # Preset locale variables to speed up the build process. Limit locale
> >  # tweaks to this spot to avoid wrong language settings when running
> >  # make menuconfig etc.
> >  # Error messages still appears in the original language
> > -PHONY += descend $(build-dirs)
> > -descend: $(build-dirs)
> > -$(build-dirs): prepare
> > -     $(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 \
> > -     $(filter $@/%, $(single-goals))
> > +PHONY += $(build-dir)
> > +$(build-dir): prepare
> > +     $(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 $(single-goals)
> >
> >  clean-dirs := $(addprefix _clean_, $(clean-dirs))
> >  PHONY += $(clean-dirs) clean
> > diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
> > index 52811b2783de..b7e650bc70f2 100644
> > --- a/scripts/Makefile.lib
> > +++ b/scripts/Makefile.lib
> > @@ -89,6 +89,7 @@ always-y                    += $(dtb-y)
> >
> >  # Add subdir path
> >
> > +ifneq ($(obj),.)
> >  extra-y              := $(addprefix $(obj)/,$(extra-y))
> >  always-y     := $(addprefix $(obj)/,$(always-y))
> >  targets              := $(addprefix $(obj)/,$(targets))
> > @@ -100,6 +101,7 @@ multi-obj-m       := $(addprefix $(obj)/, $(multi-obj-m))
> >  multi-dtb-y  := $(addprefix $(obj)/, $(multi-dtb-y))
> >  real-dtb-y   := $(addprefix $(obj)/, $(real-dtb-y))
> >  subdir-ym    := $(addprefix $(obj)/,$(subdir-ym))
> > +endif
> >
> >  # Finds the multi-part object the current object will be linked into.
> >  # If the object belongs to two or more multi-part objects, list them all.
> > -------------------------------------------------------------------------------
> >
> >
> > Git bisection log:
> >
> > -------------------------------------------------------------------------------
> > git bisect start
> > # good: [46a275a5616736cbe70012311bc9003817e96b51] Merge branch 'net-marvell-prestera-add-nexthop-routes-offloading'
> > git bisect good 46a275a5616736cbe70012311bc9003817e96b51
> > # bad: [4d80748d16c82a9c2c4ea5feea96e476de3cd876] Add linux-next specific files for 20221004
> > git bisect bad 4d80748d16c82a9c2c4ea5feea96e476de3cd876
> > # bad: [b9e99512aede9973504f01b5c27853be4927bde0] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
> > git bisect bad b9e99512aede9973504f01b5c27853be4927bde0
> > # bad: [89174722727353c961913b70b37bc942ee5c0251] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git
> > git bisect bad 89174722727353c961913b70b37bc942ee5c0251
> > # bad: [58b61aabb9a5fafd45d09db1fae511d0304af79e] Merge branch 'for-next' of git://git.armlinux.org.uk/~rmk/linux-arm.git
> > git bisect bad 58b61aabb9a5fafd45d09db1fae511d0304af79e
> > # good: [86a4d29e75540e20f991e72f17aa51d0e775a397] Merge tag 'asoc-v6.1' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
> > git bisect good 86a4d29e75540e20f991e72f17aa51d0e775a397
> > # good: [112f485b2e65f8680fcecc660aabd73ab1af946d] Merge branch 'fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl.git
> > git bisect good 112f485b2e65f8680fcecc660aabd73ab1af946d
> > # good: [f9fe5fdbcdba66e96cddaf83877322c7a18caf76] Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git
> > git bisect good f9fe5fdbcdba66e96cddaf83877322c7a18caf76
> > # good: [62e64c9d2fd12839c02f1b3e8b873e7cb34e8720] perf test: Add basic core_wide expression test
> > git bisect good 62e64c9d2fd12839c02f1b3e8b873e7cb34e8720
> > # bad: [cff6fdf0b2d45f563e2c25f243c624a2723d5f58] ia64: simplify esi object addition in Makefile
> > git bisect bad cff6fdf0b2d45f563e2c25f243c624a2723d5f58
> > # good: [a8d5692659358eba46d3b2f7d96da7c390f41f71] scripts: remove unused argument 'type'
> > git bisect good a8d5692659358eba46d3b2f7d96da7c390f41f71
> > # bad: [ce697ccee1a8661da4e23fbe5f3d45d8d6922c20] kbuild: remove head-y syntax
> > git bisect bad ce697ccee1a8661da4e23fbe5f3d45d8d6922c20
> > # bad: [9c5a0ac3c36917c4258f734bda98be02ca36b992] kbuild: move vmlinux.o rule to the top Makefile
> > git bisect bad 9c5a0ac3c36917c4258f734bda98be02ca36b992
> > # good: [88b61e3bff93f99712718db785b4aa0c1165f35c] Makefile.compiler: replace cc-ifversion with compiler-specific macros
> > git bisect good 88b61e3bff93f99712718db785b4aa0c1165f35c
> > # bad: [26ef40de5cbb24728a34a319e8d42cdec99f186c] kbuild: move .vmlinux.objs rule to Makefile.modpost
> > git bisect bad 26ef40de5cbb24728a34a319e8d42cdec99f186c
> > # bad: [5750121ae7382ebac8d47ce6d68012d6cd1d7926] kbuild: list sub-directories in ./Kbuild
> > git bisect bad 5750121ae7382ebac8d47ce6d68012d6cd1d7926
> > # first bad commit: [5750121ae7382ebac8d47ce6d68012d6cd1d7926] kbuild: list sub-directories in ./Kbuild
> > -------------------------------------------------------------------------------
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Groups.io Links: You receive all messages sent to this group.
> > View/Reply Online (#32406): https://groups.io/g/kernelci-results/message/32406
> > Mute This Topic: https://groups.io/mt/94161699/1131744
> > Group Owner: kernelci-results+owner@groups.io
> > Unsubscribe: https://groups.io/g/kernelci-results/unsub [broonie@kernel.org]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
> >



-- 
Best Regards
Masahiro Yamada

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: next/master bisection: baseline.login on qemu_arm-virt-gicv3
  2022-10-07  5:11   ` Masahiro Yamada
@ 2022-10-07  5:38     ` Masahiro Yamada
  2022-10-07  9:28       ` Ard Biesheuvel
  2022-10-07 11:31       ` Mark Brown
  0 siblings, 2 replies; 11+ messages in thread
From: Masahiro Yamada @ 2022-10-07  5:38 UTC (permalink / raw)
  To: Mark Brown
  Cc: kernelci-results, bot, Russell King, Nick Desaulniers,
	Nicolas Schier, gtucker, linux-arm-kernel, linux-kbuild,
	Michal Marek

On Fri, Oct 7, 2022 at 2:11 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> On Fri, Oct 7, 2022 at 1:53 AM Mark Brown <broonie@kernel.org> wrote:
> >
> > On Thu, Oct 06, 2022 at 09:36:22AM -0700, KernelCI bot wrote:
> >
> > The KernelCI bisection bot found a boot regression on qemu in today's
> > -next for a multi_v7_defconfig with additional debug options running on
> > virt-gicv3 which it identified as being triggered by 5750121ae738
> > ("kbuild: list sub-directories in ./Kbuild") which does seem surprising
> > but the bot did test a revert so it seemed worth reporting
>
>
>
> Please tell me the command line arguments to qemu-system-arm.
> Especially, how to turn on gicv3.


I found it in the qemu manual:
https://www.qemu.org/docs/master/system/arm/virt.html?highlight=gic%20version




The arm virt machine with gicv3 booted as far as I tested.

So, I need to know more details about the settings of the KernelCI.




This is my qemu command line.


qemu-system-arm -machine virt,gic-version=3 \
-kernel /home/masahiro/tools/qemu-arm_virt/kernel \
-initrd /home/masahiro/tools/qemu-arm_virt/initrd \
-drive file=fat:rw:/home/masahiro/tools/qemu-arm_virt/disk-shared,if=none,format=raw,id=drive0
\
-netdev bridge,id=netdev0,br=virbr0,helper=/usr/lib/qemu/qemu-bridge-helper \
-serial stdio -monitor vc:800x600 -cpu cortex-a15 \
-smp 4 -device virtio-blk-pci,drive=drive0 \
-device virtio-net-pci,netdev=netdev0 -append console=ttyAMA0




This is the boot log on my local test.




[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.0.0-rc7-00023-g5750121ae738
(masahiro@zoe) (arm-linux-gnueabi-gcc (GCC) 12.1.0, GNU ld (GNU
Binutils) 2.38) #2 SMP Fri Oct  7 13:53:12 JST 2022
[    0.000000] CPU: ARMv7 Processor [412fc0f1] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: linux,dummy-virt
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Failed to reserve 64 MiB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 16 pages/cpu s34068 r8192 d23276 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyAMA0
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536
bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768
bytes, linear)
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] Memory: 90564K/131072K available (13312K kernel code,
2401K rwdata, 5644K rodata, 2048K init, 425K bss, 40508K reserved, 0K
cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU event tracing is enabled.
[    0.000000] rcu: RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=4.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay
is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GICv3: 224 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x080a0000
[    0.000000] ITS [mem 0x08080000-0x0809ffff]
[    0.000000] ITS@0x08080000: allocated 8192 Devices @420b0000
(indirect, esz 8, psz 64K, shr 1)
[    0.000000] ITS@0x08080000: allocated 8192 Interrupt Collections
@420c0000 (flat, esz 8, psz 64K, shr 1)
[    0.000000] GICv3: using LPI property table @0x420d0000
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x420e0000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0x1ffffffffffffff
max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
[    0.000101] sched_clock: 57 bits at 63MHz, resolution 16ns, wraps
every 4398046511096ns
[    0.000207] Switching to timer-based delay loop, resolution 16ns
[    0.004951] Console: colour dummy device 80x30
[    0.005996] Calibrating delay loop (skipped), value calculated
using timer frequency.. 125.00 BogoMIPS (lpj=625000)
[    0.006096] pid_max: default: 32768 minimum: 301
[    0.007637] Mount-cache hash table entries: 1024 (order: 0, 4096
bytes, linear)
[    0.007665] Mountpoint-cache hash table entries: 1024 (order: 0,
4096 bytes, linear)
[    0.017615] CPU: Testing write buffer coherency: ok
[    0.018600] CPU0: Spectre v2: firmware did not set auxiliary
control register IBE bit, system vulnerable
[    0.018705] CPU0: Spectre BHB: enabling loop workaround for all CPUs
[    0.025292] /cpus/cpu@0 missing clock-frequency property
[    0.025495] /cpus/cpu@1 missing clock-frequency property
[    0.025523] /cpus/cpu@2 missing clock-frequency property
[    0.025547] /cpus/cpu@3 missing clock-frequency property
[    0.025640] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.029784] Setting up static identity map for 0x40300000 - 0x403000ac
[    0.030913] rcu: Hierarchical SRCU implementation.
[    0.030939] rcu: Max phase no-delay instances is 1000.
[    0.032589] Platform MSI: its@8080000 domain created
[    0.032791] PCI/MSI: /intc@8000000/its@8080000 domain created
[    0.033897] EFI services will not be available.
[    0.034945] smp: Bringing up secondary CPUs ...
[    0.037345] GICv3: CPU1: found redistributor 1 region 0:0x080c0000
[    0.037491] GICv3: CPU1: using allocated LPI pending table @0x420f0000
[    0.037769] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.037805] CPU1: Spectre v2: firmware did not set auxiliary
control register IBE bit, system vulnerable
[    0.041870] GICv3: CPU2: found redistributor 2 region 0:0x080e0000
[    0.042035] GICv3: CPU2: using allocated LPI pending table @0x42100000
[    0.042447] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.042474] CPU2: Spectre v2: firmware did not set auxiliary
control register IBE bit, system vulnerable
[    0.045118] GICv3: CPU3: found redistributor 3 region 0:0x08100000
[    0.045244] GICv3: CPU3: using allocated LPI pending table @0x42110000
[    0.045532] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.045551] CPU3: Spectre v2: firmware did not set auxiliary
control register IBE bit, system vulnerable
[    0.046060] smp: Brought up 1 node, 4 CPUs
[    0.046138] SMP: Total of 4 processors activated (500.00 BogoMIPS).
[    0.046191] CPU: All CPU(s) started in SVC mode.
[    0.055178] devtmpfs: initialized
[    0.060968] VFP support v0.3: implementor 41 architecture 4 part 30
variant f rev 0
[    0.073088] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.073607] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.076419] pinctrl core: initialized pinctrl subsystem
[    0.087501] DMI not present or invalid.
[    0.094365] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.097176] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.101173] thermal_sys: Registered thermal governor 'step_wise'
[    0.108561] cpuidle: using governor menu
[    0.108998] No ATAGs?
[    0.109385] hw-breakpoint: CPU 0 debug is powered down!
[    0.113069] Serial: AMBA PL011 UART driver
[    0.135891] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 28,
base_baud = 0) is a PL011 rev1
[    0.144412] printk: console [ttyAMA0] enabled
[    0.182593] iommu: Default domain type: Translated
[    0.182753] iommu: DMA domain TLB invalidation policy: strict mode
[    0.184858] SCSI subsystem initialized
[    0.187628] pps_core: LinuxPPS API ver. 1 registered
[    0.187805] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
Rodolfo Giometti <giometti@linux.it>
[    0.188009] PTP clock support registered
[    0.188353] EDAC MC: Ver: 3.0.0
[    0.199703] vgaarb: loaded
[    0.609615] clocksource: Switched to clocksource arch_sys_counter
[    0.631708] NET: Registered PF_INET protocol family
[    0.632657] IP idents hash table entries: 2048 (order: 2, 16384
bytes, linear)
[    0.636163] tcp_listen_portaddr_hash hash table entries: 512
(order: 0, 4096 bytes, linear)
[    0.636317] Table-perturb hash table entries: 65536 (order: 6,
262144 bytes, linear)
[    0.636408] TCP established hash table entries: 1024 (order: 0,
4096 bytes, linear)
[    0.636602] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.636727] TCP: Hash tables configured (established 1024 bind 1024)
[    0.637661] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.637842] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.638587] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.641096] RPC: Registered named UNIX socket transport module.
[    0.641197] RPC: Registered udp transport module.
[    0.641249] RPC: Registered tcp transport module.
[    0.641287] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.641379] PCI: CLS 0 bytes, default 64
[    0.643336] Initialise system trusted keyrings
[    0.644330] Trying to unpack rootfs image as initramfs...
[    0.644867] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.651129] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.653168] NFS: Registering the id_resolver key type
[    0.653474] Key type id_resolver registered
[    0.653533] Key type id_legacy registered
[    0.653822] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.653941] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver
Registering...
[    0.657872] Key type cifs.idmap registered
[    0.657998] ntfs: driver 2.1.32 [Flags: R/O].
[    0.659591] Key type asymmetric registered
[    0.659695] Asymmetric key parser 'x509' registered
[    0.660108] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 248)
[    0.660292] io scheduler mq-deadline registered
[    0.660370] io scheduler kyber registered
[    0.672302] pl061_gpio 9030000.pl061: PL061 GPIO chip registered
[    0.676129] pci-host-generic 4010000000.pcie: host bridge
/pcie@10000000 ranges:
[    0.676728] pci-host-generic 4010000000.pcie:       IO
0x003eff0000..0x003effffff -> 0x0000000000
[    0.677148] pci-host-generic 4010000000.pcie:      MEM
0x0010000000..0x003efeffff -> 0x0010000000
[    0.677260] pci-host-generic 4010000000.pcie:      MEM
0x8000000000..0xffffffffff -> 0x8000000000
[    0.677914] pci-host-generic 4010000000.pcie: can't claim ECAM area
[mem 0x10000000-0x1fffffff]: address conflict with pcie@10000000 [mem
0x10000000-0x3efeffff]
[    0.678245] pci-host-generic: probe of 4010000000.pcie failed with error -16
[    0.722335] Freeing initrd memory: 13708K
[    0.788038] Serial: 8250/16550 driver, 5 ports, IRQ sharing enabled
[    0.793673] SuperH (H)SCI(F) driver initialized
[    0.794378] msm_serial: driver initialized
[    0.794431] STMicroelectronics ASC driver initialized
[    0.795077] STM32 USART driver initialized
[    0.818717] brd: module loaded
[    0.830120] loop: module loaded
[    0.834637] physmap-flash 0.flash: physmap platform flash device:
[mem 0x00000000-0x03ffffff]
[    0.835668] 0.flash: Found 2 x16 devices at 0x0 in 32-bit bank.
Manufacturer ID 0x000000 Chip ID 0x000000
[    0.836092] Intel/Sharp Extended Query Table at 0x0031
[    0.836656] Using buffer write method
[    0.837749] physmap-flash 0.flash: physmap platform flash device:
[mem 0x04000000-0x07ffffff]
[    0.838138] 0.flash: Found 2 x16 devices at 0x0 in 32-bit bank.
Manufacturer ID 0x000000 Chip ID 0x000000
[    0.838277] Intel/Sharp Extended Query Table at 0x0031
[    0.838679] Using buffer write method
[    0.838821] Concatenating MTD devices:
[    0.838867] (0): "0.flash"
[    0.839072] (1): "0.flash"
[    0.839115] into device "0.flash"
[    0.955177] CAN device driver interface
[    0.955933] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    0.956695] e1000e: Intel(R) PRO/1000 Network Driver
[    0.956771] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.956912] igb: Intel(R) Gigabit Ethernet Network Driver
[    0.956971] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.964091] rtc-pl031 9010000.pl031: registered as rtc0
[    0.964730] rtc-pl031 9010000.pl031: setting system clock to
2022-10-07T05:29:58 UTC (1665120598)
[    0.966534] i2c_dev: i2c /dev entries driver
[    0.976031] sdhci: Secure Digital Host Controller Interface driver
[    0.976125] sdhci: Copyright(c) Pierre Ossman
[    0.977162] Synopsys Designware Multimedia Card Interface Driver
[    0.978119] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.981065] ledtrig-cpu: registered to indicate activity on CPUs
[    0.986996] NET: Registered PF_INET6 protocol family
[    0.992740] Segment Routing with IPv6
[    0.992926] In-situ OAM (IOAM) with IPv6
[    0.993223] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.995354] NET: Registered PF_PACKET protocol family
[    0.995506] can: controller area network core
[    0.995781] NET: Registered PF_CAN protocol family
[    0.995846] can: raw protocol
[    0.995953] can: broadcast manager protocol
[    0.996079] can: netlink gateway - max_hops=1
[    0.996700] Key type dns_resolver registered
[    0.996915] ThumbEE CPU extension supported.
[    0.996991] Registering SWP/SWPB emulation handler
[    0.998595] Loading compiled-in X.509 certificates
[    1.020911] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    1.028435] uart-pl011 9000000.pl011: no DMA platform data
[    1.140039] Freeing unused kernel image (initmem) memory: 2048K
[    1.325328] Run /init as init process
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Saving random seed: [    7.159326] random: crng init done
OK
Starting network: Waiting for interface eth0 to appear............... timeout!
run-parts: /etc/network/if-pre-up.d/wait_iface: exit status 1
FAIL
Starting dhcpcd...
dhcpcd-9.4.1 starting
[   23.460126] cfg80211: Loading compiled-in X.509 certificates for
regulatory database
[   23.531096] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   23.532484] platform regulatory.0: Direct firmware load for
regulatory.db failed with error -2
[   23.532755] cfg80211: failed to load regulatory.db
forked to background, child pid 150
no valid interfaces found

Welcome to Buildroot





-- 
Best Regards
Masahiro Yamada

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: next/master bisection: baseline.login on qemu_arm-virt-gicv3
  2022-10-07  5:38     ` Masahiro Yamada
@ 2022-10-07  9:28       ` Ard Biesheuvel
  2022-10-07 11:31       ` Mark Brown
  1 sibling, 0 replies; 11+ messages in thread
From: Ard Biesheuvel @ 2022-10-07  9:28 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: Mark Brown, kernelci-results, bot, Russell King,
	Nick Desaulniers, Nicolas Schier, gtucker, linux-arm-kernel,
	linux-kbuild, Michal Marek

On Fri, 7 Oct 2022 at 07:40, Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> On Fri, Oct 7, 2022 at 2:11 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
> >
> > On Fri, Oct 7, 2022 at 1:53 AM Mark Brown <broonie@kernel.org> wrote:
> > >
> > > On Thu, Oct 06, 2022 at 09:36:22AM -0700, KernelCI bot wrote:
> > >
> > > The KernelCI bisection bot found a boot regression on qemu in today's
> > > -next for a multi_v7_defconfig with additional debug options running on
> > > virt-gicv3 which it identified as being triggered by 5750121ae738
> > > ("kbuild: list sub-directories in ./Kbuild") which does seem surprising
> > > but the bot did test a revert so it seemed worth reporting
> >
> >
> >
> > Please tell me the command line arguments to qemu-system-arm.
> > Especially, how to turn on gicv3.
>
>
> I found it in the qemu manual:
> https://www.qemu.org/docs/master/system/arm/virt.html?highlight=gic%20version
>
>
>
>
> The arm virt machine with gicv3 booted as far as I tested.
>
> So, I need to know more details about the settings of the KernelCI.
>
>
>
>
> This is my qemu command line.
>
>
> qemu-system-arm -machine virt,gic-version=3 \
> -kernel /home/masahiro/tools/qemu-arm_virt/kernel \
> -initrd /home/masahiro/tools/qemu-arm_virt/initrd \
> -drive file=fat:rw:/home/masahiro/tools/qemu-arm_virt/disk-shared,if=none,format=raw,id=drive0
> \
> -netdev bridge,id=netdev0,br=virbr0,helper=/usr/lib/qemu/qemu-bridge-helper \
> -serial stdio -monitor vc:800x600 -cpu cortex-a15 \
> -smp 4 -device virtio-blk-pci,drive=drive0 \
> -device virtio-net-pci,netdev=netdev0 -append console=ttyAMA0
>
>

You need to pass a firmware image as well.

-bios QEMU_EFI.fd

https://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstream/4666/QEMU-ARM/RELEASE_GCC5/QEMU_EFI.fd

(the firmware execution can be quite slow under emulation so give it some time)

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: next/master bisection: baseline.login on qemu_arm-virt-gicv3
  2022-10-07  5:38     ` Masahiro Yamada
  2022-10-07  9:28       ` Ard Biesheuvel
@ 2022-10-07 11:31       ` Mark Brown
  2022-10-07 14:35         ` Masahiro Yamada
  1 sibling, 1 reply; 11+ messages in thread
From: Mark Brown @ 2022-10-07 11:31 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: kernelci-results, bot, Russell King, Nick Desaulniers,
	Nicolas Schier, gtucker, linux-arm-kernel, linux-kbuild,
	Michal Marek


[-- Attachment #1.1: Type: text/plain, Size: 1652 bytes --]

On Fri, Oct 07, 2022 at 02:38:06PM +0900, Masahiro Yamada wrote:

> The arm virt machine with gicv3 booted as far as I tested.
> 
> So, I need to know more details about the settings of the KernelCI.

The HTML versions of the boot logs include the qemu command, these days
it's run using docker so so you can even get the specific version of
qemu version that was being used by kernelci in case that's important:

docker run --network=host --cap-add=NET_ADMIN --interactive --tty --rm --init --name=lava-docker-qemu-7496529-2.1.1-gexyjab5hb --device=/dev/kvm --device=/dev/net/tun --mount=type=bind,source=/var/lib/lava/dispatcher/tmp,destination=/var/lib/lava/dispatcher/tmp kernelci/qemu qemu-system-arm -cpu cortex-a15 -machine virt-2.11,gic-version=3 -nographic -net nic,model=virtio,macaddr=DE:AD:BE:EF:45:5C -net bridge,br=virbr0 -m 1024 -monitor none -kernel /var/lib/lava/dispatcher/tmp/7496529/deployimages-blwzkdvs/kernel/zImage -append "console=ttyAMA0,115200 root=/dev/ram0 debug verbose console_msg_format=syslog earlycon" -initrd /var/lib/lava/dispatcher/tmp/7496529/deployimages-blwzkdvs/ramdisk/rootfs.cpio.gz -drive format=qcow2,file=/var/lib/lava/dispatcher/tmp/7496529/apply-overlay-guest-f5mnvw0l/lava-guest.qcow2,media=disk,if=virtio,id=lavatest

Everything from qemu-system-arm on is the command that's run inside the
container.

The logs also show the download of the filesystems that would be used,
though we don't get as far as actually using them so it's a bit moot:

https://storage.kernelci.org/next/master/next-20221004/arm/multi_v7_defconfig+debug/gcc-10/lab-collabora/baseline-qemu_arm-virt-gicv3.html

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: next/master bisection: baseline.login on qemu_arm-virt-gicv3
  2022-10-07 11:31       ` Mark Brown
@ 2022-10-07 14:35         ` Masahiro Yamada
  2022-10-10 10:35           ` Mark Brown
  0 siblings, 1 reply; 11+ messages in thread
From: Masahiro Yamada @ 2022-10-07 14:35 UTC (permalink / raw)
  To: Mark Brown
  Cc: kernelci-results, bot, Russell King, Nick Desaulniers,
	Nicolas Schier, gtucker, linux-arm-kernel, linux-kbuild,
	Michal Marek

On Fri, Oct 7, 2022 at 8:31 PM Mark Brown <broonie@kernel.org> wrote:
>
> On Fri, Oct 07, 2022 at 02:38:06PM +0900, Masahiro Yamada wrote:
>
> > The arm virt machine with gicv3 booted as far as I tested.
> >
> > So, I need to know more details about the settings of the KernelCI.
>
> The HTML versions of the boot logs include the qemu command, these days
> it's run using docker so so you can even get the specific version of
> qemu version that was being used by kernelci in case that's important:
>
> docker run --network=host --cap-add=NET_ADMIN --interactive --tty --rm --init --name=lava-docker-qemu-7496529-2.1.1-gexyjab5hb --device=/dev/kvm --device=/dev/net/tun --mount=type=bind,source=/var/lib/lava/dispatcher/tmp,destination=/var/lib/lava/dispatcher/tmp kernelci/qemu qemu-system-arm -cpu cortex-a15 -machine virt-2.11,gic-version=3 -nographic -net nic,model=virtio,macaddr=DE:AD:BE:EF:45:5C -net bridge,br=virbr0 -m 1024 -monitor none -kernel /var/lib/lava/dispatcher/tmp/7496529/deployimages-blwzkdvs/kernel/zImage -append "console=ttyAMA0,115200 root=/dev/ram0 debug verbose console_msg_format=syslog earlycon" -initrd /var/lib/lava/dispatcher/tmp/7496529/deployimages-blwzkdvs/ramdisk/rootfs.cpio.gz -drive format=qcow2,file=/var/lib/lava/dispatcher/tmp/7496529/apply-overlay-guest-f5mnvw0l/lava-guest.qcow2,media=disk,if=virtio,id=lavatest
>
> Everything from qemu-system-arm on is the command that's run inside the
> container.
>
> The logs also show the download of the filesystems that would be used,
> though we don't get as far as actually using them so it's a bit moot:
>
> https://storage.kernelci.org/next/master/next-20221004/arm/multi_v7_defconfig+debug/gcc-10/lab-collabora/baseline-qemu_arm-virt-gicv3.html






I suspect "+debug" in "multi_v7_defconfig+debug"
because the failure log says "ftrace bug" multiple times.


Which config options does "+debug" enable?

Can you share the .config file?



-- 
Best Regards
Masahiro Yamada

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: next/master bisection: baseline.login on qemu_arm-virt-gicv3
  2022-10-07 14:35         ` Masahiro Yamada
@ 2022-10-10 10:35           ` Mark Brown
  2022-10-10 13:31             ` Masahiro Yamada
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Brown @ 2022-10-10 10:35 UTC (permalink / raw)
  To: kernelci-results, masahiroy
  Cc: bot, Russell King, Nick Desaulniers, Nicolas Schier, gtucker,
	linux-arm-kernel, linux-kbuild, Michal Marek


[-- Attachment #1.1: Type: text/plain, Size: 410 bytes --]

On Fri, Oct 07, 2022 at 11:35:25PM +0900, Masahiro Yamada wrote:

> I suspect "+debug" in "multi_v7_defconfig+debug"
> because the failure log says "ftrace bug" multiple times.

> Which config options does "+debug" enable?

> Can you share the .config file?

The baseline config and fragment are both in:

   https://storage.kernelci.org/next/master/next-20221004/arm/multi_v7_defconfig%2Bdebug/gcc-10/config/

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: next/master bisection: baseline.login on qemu_arm-virt-gicv3
  2022-10-10 10:35           ` Mark Brown
@ 2022-10-10 13:31             ` Masahiro Yamada
  2022-10-10 13:35               ` Masahiro Yamada
  2022-10-10 13:49               ` Mark Brown
  0 siblings, 2 replies; 11+ messages in thread
From: Masahiro Yamada @ 2022-10-10 13:31 UTC (permalink / raw)
  To: Mark Brown
  Cc: kernelci-results, bot, Russell King, Nick Desaulniers,
	Nicolas Schier, gtucker, linux-arm-kernel, linux-kbuild,
	Michal Marek

On Mon, Oct 10, 2022 at 7:35 PM Mark Brown <broonie@kernel.org> wrote:
>
> On Fri, Oct 07, 2022 at 11:35:25PM +0900, Masahiro Yamada wrote:
>
> > I suspect "+debug" in "multi_v7_defconfig+debug"
> > because the failure log says "ftrace bug" multiple times.
>
> > Which config options does "+debug" enable?
>
> > Can you share the .config file?
>
> The baseline config and fragment are both in:
>
>    https://storage.kernelci.org/next/master/next-20221004/arm/multi_v7_defconfig%2Bdebug/gcc-10/config/



Thanks for sharing the .config file.

With it applied, I can reproduce the boot error.

And, I see the same boot error on v6.0-rc7, which my branch is based on.


So, arm is already broken in the mainline, and
my kbuild patches are irrelevant.

Also, please check the bisection logic of kernelci.


I attached the boot log of v6.0-rc7 below.
("Linux version 6.0.0-rc7" in the kernel log)


Thanks.














+ qemu-system-arm -cpu cortex-a15 -machine virt-2.11,gic-version=3 -m
1024 -kernel /home/masahiro/tools/qemu-arm_virt/kernel -initrd
/home/masahiro/tools/qemu-arm_virt/initrd -drive
file=fat:rw:/home/masahiro/tools/qemu-arm_virt/disk-shared,if=none,format=raw,id=drive0
-netdev bridge,id=netdev0,br=virbr0,helper=/usr/lib/qemu/qemu-bridge-helper
-serial stdio -monitor vc:800x600 -device virtio-blk-pci,drive=drive0
-device virtio-net-pci,netdev=netdev0 -append console=ttyAMA0
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 6.0.0-rc7 (masahiro@zoe)
(arm-linux-gnueabi-gcc (GCC) 12.1.0, GNU ld (GNU Binutils) 2.38) #5
SMP Mon Oct 10 22:10:35 JST 2022
[    0.000000][    T0] CPU: ARMv7 Processor [412fc0f1] revision 1
(ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: div instructions available: patching division code
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, PIPT
instruction cache
[    0.000000][    T0] OF: fdt: Machine model: linux,dummy-virt
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] efi: UEFI not found.
[    0.000000][    T0] cma: Reserved 64 MiB at 0x7c000000
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   DMA      [mem 0x0000000040000000-0x000000006fffffff]
[    0.000000][    T0]   Normal   empty
[    0.000000][    T0]   HighMem  [mem 0x0000000070000000-0x000000007fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem
0x0000000040000000-0x000000007fffffff]
[    0.000000][    T0] kasan: Truncating shadow for memory block at
0x40000000-0x80000000 to lowmem region at 0x70000000
[    0.000000][    T0] kasan: Mapping kernel virtual memory block:
c0000000-f0000000 at shadow: b7000000-bd000000
[    0.000000][    T0] kasan: Mapping kernel virtual memory block:
bf000000-c0000000 at shadow: b6e00000-b7000000
[    0.000000][    T0] kasan: Kernel address sanitizer initialized
[    0.000000][    T0] psci: probing for conduit method from DT.
[    0.000000][    T0] psci: PSCIv0.2 detected in firmware.
[    0.000000][    T0] psci: Using standard PSCI v0.2 function IDs
[    0.000000][    T0] psci: Trusted OS migration not required
[    0.000000][    T0] percpu: Embedded 17 pages/cpu s37876 r8192 d23564 u69632
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total
pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyAMA0
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order:
7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order:
6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:all(zero), heap alloc:off,
heap free:off
[    0.000000][    T0] stackdepot hash table entries: 1048576 (order:
10, 4194304 bytes, linear)
[    0.000000][    T0] Memory: 243724K/1048576K available (55296K
kernel code, 11177K rwdata, 18244K rodata, 3072K init, 10742K bss,
739316K reserved, 65536K cma-reserved, 196608K highmem)
[    0.000000][    T0]
**********************************************************
[    0.000000][    T0] **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
NOTICE   **
[    0.000000][    T0] **
        **
[    0.000000][    T0] ** This system shows unhashed kernel memory
addresses   **
[    0.000000][    T0] ** via the console, logs, and other interfaces.
This    **
[    0.000000][    T0] ** might reduce the security of your system.
        **
[    0.000000][    T0] **
        **
[    0.000000][    T0] ** If you see this message and you are not
debugging    **
[    0.000000][    T0] ** the kernel, report this immediately to your
system   **
[    0.000000][    T0] ** administrator!
        **
[    0.000000][    T0] **
        **
[    0.000000][    T0] **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
NOTICE   **
[    0.000000][    T0]
**********************************************************
[    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0,
CPUs=1, Nodes=1
[    0.000000][    T0] ftrace: allocating 61066 entries in 180 pages
[    0.000000][    T0] ------------[ cut here ]------------
[    0.000000][    T0] WARNING: CPU: 0 PID: 0 at
arch/arm/kernel/insn.c:48 __arm_gen_branch+0x74/0x7c
[    0.000000][    T0] Modules linked in:
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc7 #5
[    0.000000][    T0] Hardware name: Generic DT based system
[    0.000000][    T0]  unwind_backtrace from show_stack+0x18/0x1c
[    0.000000][    T0]  show_stack from dump_stack_lvl+0x70/0xb0
[    0.000000][    T0]  dump_stack_lvl from __warn+0x1e0/0x48c
[    0.000000][    T0]  __warn from warn_slowpath_fmt+0xcc/0x134
[    0.000000][    T0]  warn_slowpath_fmt from __arm_gen_branch+0x74/0x7c
[    0.000000][    T0]  __arm_gen_branch from ftrace_make_nop+0x10c/0x240
[    0.000000][    T0]  ftrace_make_nop from ftrace_process_locs+0x4ac/0x8c8
[    0.000000][    T0]  ftrace_process_locs from ftrace_init+0xa8/0x180
[    0.000000][    T0]  ftrace_init from start_kernel+0x178/0x3a8
[    0.000000][    T0]  start_kernel from 0x0
[    0.000000][    T0] irq event stamp: 0
[    0.000000][    T0] hardirqs last  enabled at (0): [<00000000>] 0x0
[    0.000000][    T0] hardirqs last disabled at (0): [<00000000>] 0x0
[    0.000000][    T0] softirqs last  enabled at (0): [<00000000>] 0x0
[    0.000000][    T0] softirqs last disabled at (0): [<00000000>] 0x0
[    0.000000][    T0] ---[ end trace 0000000000000000 ]---
[    0.000000][    T0] ------------[ ftrace bug ]------------
[    0.000000][    T0] ftrace failed to modify
[    0.000000][    T0] [<c232b6c8>] check_cmd_set+0x8/0x244
[    0.000000][    T0]  actual:   1f:7e:0d:eb
[    0.000000][    T0] Initializing ftrace call sites
[    0.000000][    T0] ftrace record flags: 0
[    0.000000][    T0]  (0)
[    0.000000][    T0]  expected tramp: c032b384
[    0.000000][    T0] ------------[ cut here ]------------
[    0.000000][    T0] WARNING: CPU: 0 PID: 0 at
kernel/trace/ftrace.c:2120 ftrace_bug+0x320/0x38c
[    0.000000][    T0] Modules linked in:
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper Tainted: G        W
         6.0.0-rc7 #5
[    0.000000][    T0] Hardware name: Generic DT based system
[    0.000000][    T0]  unwind_backtrace from show_stack+0x18/0x1c
[    0.000000][    T0]  show_stack from dump_stack_lvl+0x70/0xb0
[    0.000000][    T0]  dump_stack_lvl from __warn+0x1e0/0x48c
[    0.000000][    T0]  __warn from warn_slowpath_fmt+0xcc/0x134
[    0.000000][    T0]  warn_slowpath_fmt from ftrace_bug+0x320/0x38c
[    0.000000][    T0]  ftrace_bug from ftrace_process_locs+0x8c0/0x8c8
[    0.000000][    T0]  ftrace_process_locs from ftrace_init+0xa8/0x180
[    0.000000][    T0]  ftrace_init from start_kernel+0x178/0x3a8
[    0.000000][    T0]  start_kernel from 0x0
[    0.000000][    T0] irq event stamp: 0
[    0.000000][    T0] hardirqs last  enabled at (0): [<00000000>] 0x0
[    0.000000][    T0] hardirqs last disabled at (0): [<00000000>] 0x0
[    0.000000][    T0] softirqs last  enabled at (0): [<00000000>] 0x0
[    0.000000][    T0] softirqs last disabled at (0): [<00000000>] 0x0
[    0.000000][    T0] ---[ end trace 0000000000000000 ]---
[    0.000000][    T0] ftrace: allocated 179 pages with 5 groups
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] Running RCU self tests
[    0.000000][    T0] rcu: Hierarchical RCU implementation.
[    0.000000][    T0] rcu: RCU event tracing is enabled.
[    0.000000][    T0] rcu: RCU lockdep checking is enabled.
[    0.000000][    T0] rcu: RCU restricting CPUs from NR_CPUS=16 to
nr_cpu_ids=1.
[    0.000000][    T0] rcu: RCU callback double-/use-after-free debug
is enabled.
[    0.000000][    T0] Rude variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of
scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16,
nr_cpu_ids=1
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] GICv3: 224 SPIs implemented
[    0.000000][    T0] GICv3: 0 Extended SPIs implemented
[    0.000000][    T0] GICv3: GICv3 features: 16 PPIs
[    0.000000][    T0] GICv3: CPU0: found redistributor 0 region 0:0x080a0000
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based
on contention.
[    0.000000][    T0] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
[    0.000000][    T0] clocksource: arch_sys_counter: mask:
0x1ffffffffffffff max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314
ns
[    0.000131][    T0] sched_clock: 57 bits at 63MHz, resolution 16ns,
wraps every 4398046511096ns
[    0.000345][    T0] Switching to timer-based delay loop, resolution 16ns
[    0.022661][    T0] Console: colour dummy device 80x30
[    0.023663][    T0] Lock dependency validator: Copyright (c) 2006
Red Hat, Inc., Ingo Molnar
[    0.023698][    T0] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.023724][    T0] ... MAX_LOCK_DEPTH:          48
[    0.023744][    T0] ... MAX_LOCKDEP_KEYS:        8192
[    0.023763][    T0] ... CLASSHASH_SIZE:          4096
[    0.023780][    T0] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.023796][    T0] ... MAX_LOCKDEP_CHAINS:      65536
[    0.023812][    T0] ... CHAINHASH_SIZE:          32768
[    0.023828][    T0]  memory used by lock dependency info: 4061 kB
[    0.023846][    T0]  memory used for stack traces: 2112 kB
[    0.023864][    T0]  per task-struct memory footprint: 1536 bytes
[    0.026140][    T0] Calibrating delay loop (skipped), value
calculated using timer frequency.. 125.00 BogoMIPS (lpj=625000)
[    0.026342][    T0] pid_max: default: 32768 minimum: 301
[    0.037995][    T0] Mount-cache hash table entries: 2048 (order: 1,
8192 bytes, linear)
[    0.038163][    T0] Mountpoint-cache hash table entries: 2048
(order: 1, 8192 bytes, linear)
[    0.090792][    T0] CPU: Testing write buffer coherency: ok
[    0.094569][    T0] CPU0: Spectre v2: firmware did not set
auxiliary control register IBE bit, system vulnerable
[    0.094718][    T0] CPU0: Spectre BHB: enabling loop workaround for all CPUs
[    0.118342][    T1] /cpus/cpu@0 missing clock-frequency property
[    0.118989][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.148451][    T1] cblist_init_generic: Setting adjustable number
of callback queues.
[    0.149021][    T1] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.152188][    T1] Running RCU-tasks wait API self tests
[    0.153928][    T1] Setting up static identity map for 0x40300000 -
0x403000ac
[    0.159343][   T10] Callback from call_rcu_tasks_rude() invoked.
[    0.161023][    T1] rcu: Hierarchical SRCU implementation.
[    0.161074][    T1] rcu: Max phase no-delay instances is 1000.
[    0.252842][    T1] EFI services will not be available.
[    0.271339][    T1] smp: Bringing up secondary CPUs ...
[    0.271508][    T1] smp: Brought up 1 node, 1 CPU
[    0.271655][    T1] SMP: Total of 1 processors activated (125.00 BogoMIPS).
[    0.271736][    T1] CPU: All CPU(s) started in SVC mode.
[    0.309434][    T1] devtmpfs: initialized
[    0.541181][    T1] VFP support v0.3: implementor 41 architecture 4
part 30 variant f rev 0
[    0.594425][    T1] clocksource: jiffies: mask: 0xffffffff
max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.595491][    T1] futex hash table entries: 256 (order: 2, 16384
bytes, linear)
[    0.616188][    T1] pinctrl core: initialized pinctrl subsystem
[    0.714541][    T1] DMI not present or invalid.
[    0.744673][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.784366][    T1] DMA: preallocated 256 KiB pool for atomic
coherent allocations
[    0.898919][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.900853][    T1] cpuidle: using governor menu
[    0.909869][    T1] No ATAGs?
[    0.911758][   T15] hw-breakpoint: CPU 0 debug is powered down!
[    0.987167][    T1] Serial: AMBA PL011 UART driver
[    1.291555][    T1] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq =
28, base_baud = 0) is a PL011 rev1
[    1.318988][    T1] printk: console [ttyAMA0] enabled
[    3.249051][    T1] iommu: Default domain type: Translated
[    3.249309][    T1] iommu: DMA domain TLB invalidation policy: strict mode
[    3.299995][    T1] SCSI subsystem initialized
[    3.370300][    T1] usbcore: registered new interface driver usbfs
[    3.373579][    T1] usbcore: registered new interface driver hub
[    3.375785][    T1] usbcore: registered new device driver usb
[    3.431672][    T1] pps_core: LinuxPPS API ver. 1 registered
[    3.431947][    T1] pps_core: Software ver. 5.3.6 - Copyright
2005-2007 Rodolfo Giometti <giometti@linux.it>
[    3.433518][    T1] PTP clock support registered
[    3.438143][    T1] EDAC MC: Ver: 3.0.0
[    3.581025][    T1] vgaarb: loaded
[    3.603786][    T1] clocksource: Switched to clocksource arch_sys_counter
[    7.305343][    T1] NET: Registered PF_INET protocol family
[    7.310851][    T1] IP idents hash table entries: 16384 (order: 5,
131072 bytes, linear)
[    7.339760][    T1] tcp_listen_portaddr_hash hash table entries:
512 (order: 2, 20480 bytes, linear)
[    7.341016][    T1] Table-perturb hash table entries: 65536 (order:
6, 262144 bytes, linear)
[    7.341745][    T1] TCP established hash table entries: 8192
(order: 3, 32768 bytes, linear)
[    7.343032][    T1] TCP bind hash table entries: 8192 (order: 6,
327680 bytes, linear)
[    7.345920][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    7.362779][    T2] kthreadd invoked oom-killer:
gfp_mask=0x40cc0(GFP_KERNEL|__GFP_COMP), order=1, oom_score_adj=0
[    7.363723][    T2] CPU: 0 PID: 2 Comm: kthreadd Tainted: G
W          6.0.0-rc7 #5
[    7.363998][    T2] Hardware name: Generic DT based system
[    7.364324][    T2]  unwind_backtrace from show_stack+0x18/0x1c
[    7.365084][    T2]  show_stack from dump_stack_lvl+0x90/0xb0
[    7.365198][    T2]  dump_stack_lvl from dump_header+0x13c/0x688
[    7.365306][    T2]  dump_header from out_of_memory+0x8c4/0x9f0
[    7.365408][    T2]  out_of_memory from __alloc_pages_may_oom+0x298/0x438
[    7.365517][    T2]  __alloc_pages_may_oom from
__alloc_pages_slowpath.constprop.0+0x854/0x10a8
[    7.365635][    T2]  __alloc_pages_slowpath.constprop.0 from
__alloc_pages+0x630/0x768
[    7.365773][    T2]  __alloc_pages from alloc_slab_page+0x64/0x8c
[    7.365871][    T2]  alloc_slab_page from allocate_slab+0x1f0/0x268
[    7.365998][    T2]  allocate_slab from ___slab_alloc.constprop.0+0x77c/0xcd4
[    7.366138][    T2]  ___slab_alloc.constprop.0 from
__slab_alloc.constprop.0+0x2c/0x3c
[    7.366292][    T2]  __slab_alloc.constprop.0 from
kmem_cache_alloc+0x258/0x45c
[    7.366432][    T2]  kmem_cache_alloc from dup_task_struct+0x38/0x74c
[    7.366565][    T2]  dup_task_struct from copy_process+0x53c/0x5048
[    7.366695][    T2]  copy_process from kernel_clone+0xec/0xa98
[    7.366822][    T2]  kernel_clone from kernel_thread+0xd4/0x104
[    7.366940][    T2]  kernel_thread from kthreadd+0x34c/0x4f4
[    7.367061][    T2]  kthreadd from ret_from_fork+0x14/0x2c
[    7.367195][    T2] Exception stack(0xf0833fb0 to 0xf0833ff8)
[    7.367458][    T2] 3fa0:
00000000 00000000 00000000 00000000
[    7.367595][    T2] 3fc0: 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000
[    7.367719][    T2] 3fe0: 00000000 00000000 00000000 00000000
00000013 00000000
[    7.367947][    T2] Mem-Info:
[    7.368456][    T2] active_anon:0 inactive_anon:0 isolated_anon:0
[    7.368456][    T2]  active_file:0 inactive_file:0 isolated_file:0
[    7.368456][    T2]  unevictable:0 dirty:0 writeback:0
[    7.368456][    T2]  slab_reclaimable:2219 slab_unreclaimable:6009
[    7.368456][    T2]  mapped:0 shmem:0 pagetables:0 bounce:0
[    7.368456][    T2]  kernel_misc_reclaimable:0
[    7.368456][    T2]  free:67525 free_pcp:271 free_cma:16320
[    7.370314][    T2] Node 0 active_anon:0kB inactive_anon:0kB
active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB
isolated(file):0kB mapped:0kB dirty:0kB writeback:0kB shmem:0kB
writeback_tmp:0kB kernel_stack:448kB pagetables:0kB all_unreclaimable?
no
[    7.371128][    T2] DMA free:8744kB boost:8192kB min:9060kB
low:9276kB high:9492kB reserved_highatomic:16384KB active_anon:0kB
inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB
writepending:0kB present:786432kB managed:47116kB mlocked:0kB
bounce:0kB free_pcp:1036kB local_pcp:1036kB free_cma:0kB
[    7.371610][    T2] lowmem_reserve[]: 0 0 256 256
[    7.371906][    T2] HighMem free:261356kB boost:0kB min:256kB
low:1460kB high:2664kB reserved_highatomic:0KB active_anon:0kB
inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB
writepending:0kB present:262144kB managed:262144kB mlocked:0kB
bounce:0kB free_pcp:48kB local_pcp:48kB free_cma:65280kB
[    7.372300][    T2] lowmem_reserve[]: 0 0 0 0
[    7.372570][    T2] DMA: 2*4kB (M) 2*8kB (MH) 3*16kB (MH) 3*32kB
(M) 2*64kB (M) 2*128kB (M) 2*256kB (M) 3*512kB (M) 2*1024kB (MH)
2*2048kB (M) 0*4096kB 0*8192kB = 8744kB
[    7.373576][    T2] HighMem: 1*4kB (U) 1*8kB (U) 0*16kB 1*32kB (U)
1*64kB (U) 1*128kB (U) 2*256kB (UC) 1*512kB (C) 2*1024kB (UC) 2*2048kB
(UC) 2*4096kB (UC) 30*8192kB (MC) = 261356kB
[    7.374320][    T2] 0 total pagecache pages
[    7.374460][    T2] 0 pages in swap cache
[    7.374590][    T2] Free swap  = 0kB
[    7.374697][    T2] Total swap = 0kB
[    7.374915][    T2] 262144 pages RAM
[    7.375011][    T2] 65536 pages HighMem/MovableOnly
[    7.375114][    T2] 184829 pages reserved
[    7.375206][    T2] 16384 pages cma reserved
[    7.375417][    T2] Unreclaimable slab info:
[    7.375711][    T2] Name                      Used          Total
[    7.376044][    T2] bio-164                   10KB         11KB
[    7.376250][    T2] bio-120                    0KB          3KB
[    7.376390][    T2] biovec-max               110KB        117KB
[    7.376532][    T2] dmaengine-unmap-256          1KB         15KB
[    7.376665][    T2] dmaengine-unmap-128          0KB          7KB
[    7.376787][    T2] dmaengine-unmap-16          0KB          4KB
[    7.376909][    T2] dmaengine-unmap-2          0KB          4KB
[    7.377041][    T2] skbuff_head_cache          8KB         11KB
[    7.377180][    T2] proc_dir_entry            42KB         43KB
[    7.377318][    T2] shmem_inode_cache         82KB         83KB
[    7.377440][    T2] kernfs_node_cache        978KB        980KB
[    7.377566][    T2] mnt_cache                  4KB          7KB
[    7.377688][    T2] names_cache              363KB        367KB
[    7.377810][    T2] nsproxy                    0KB          3KB
[    7.377943][    T2] mm_struct                  0KB          7KB
[    7.378069][    T2] fs_cache                   0KB          4KB
[    7.378192][    T2] files_cache                0KB          4KB
[    7.378317][    T2] signal_cache              29KB         31KB
[    7.378440][    T2] sighand_cache             43KB         46KB
[    7.378915][    T2] task_struct              122KB        122KB
[    7.379084][    T2] cred_jar                   7KB          8KB
[    7.379222][    T2] pid                        7KB          8KB
[    7.379349][    T2] trace_event_file         157KB        160KB
[    7.379473][    T2] ftrace_event_field        391KB        393KB
[    7.379603][    T2] pool_workqueue             9KB         15KB
[    7.379721][    T2] vmap_area                  8KB         11KB
[    7.379849][    T2] debug_objects_cache        178KB        180KB
[    7.379977][    T2] kmemleak_scan_area          2KB          3KB
[    7.380105][    T2] kmemleak_object         9091KB       9091KB
[    7.380267][    T2] kmalloc-8k                48KB         48KB
[    7.380389][    T2] kmalloc-4k              6732KB       6744KB
[    7.380505][    T2] kmalloc-2k               174KB        180KB
[    7.380626][    T2] kmalloc-1k               477KB        480KB
[    7.380746][    T2] kmalloc-512              337KB        345KB
[    7.380861][    T2] kmalloc-256               29KB         30KB
[    7.380984][    T2] kmalloc-192               85KB         86KB
[    7.381108][    T2] kmalloc-128              192KB        195KB
[    7.381230][    T2] kmalloc-64               988KB        992KB
[    7.381352][    T2] kmem_cache_node           26KB         28KB
[    7.381475][    T2] kmem_cache                33KB         33KB
[    7.381643][    T2] Tasks state (memory values in pages):
[    7.381765][    T2] [  pid  ]   uid  tgid total_vm      rss
pgtables_bytes swapents oom_score_adj name
[    7.382110][    T2] Out of memory and no killable processes...
[    7.382452][    T2] Kernel panic - not syncing: System is
deadlocked on memory
[    7.382695][    T2] CPU: 0 PID: 2 Comm: kthreadd Tainted: G
W          6.0.0-rc7 #5
[    7.382859][    T2] Hardware name: Generic DT based system
[    7.382990][    T2]  unwind_backtrace from show_stack+0x18/0x1c
[    7.383145][    T2]  show_stack from dump_stack_lvl+0x70/0xb0
[    7.383277][    T2]  dump_stack_lvl from panic+0x234/0x5b0
[    7.383401][    T2]  panic from out_of_memory+0x958/0x9f0
[    7.383525][    T2]  out_of_memory from __alloc_pages_may_oom+0x298/0x438
[    7.383655][    T2]  __alloc_pages_may_oom from
__alloc_pages_slowpath.constprop.0+0x854/0x10a8
[    7.383813][    T2]  __alloc_pages_slowpath.constprop.0 from
__alloc_pages+0x630/0x768
[    7.383965][    T2]  __alloc_pages from alloc_slab_page+0x64/0x8c
[    7.384066][    T2]  alloc_slab_page from allocate_slab+0x1f0/0x268
[    7.384194][    T2]  allocate_slab from ___slab_alloc.constprop.0+0x77c/0xcd4
[    7.384337][    T2]  ___slab_alloc.constprop.0 from
__slab_alloc.constprop.0+0x2c/0x3c
[    7.384491][    T2]  __slab_alloc.constprop.0 from
kmem_cache_alloc+0x258/0x45c
[    7.384641][    T2]  kmem_cache_alloc from dup_task_struct+0x38/0x74c
[    7.384777][    T2]  dup_task_struct from copy_process+0x53c/0x5048
[    7.384906][    T2]  copy_process from kernel_clone+0xec/0xa98
[    7.385029][    T2]  kernel_clone from kernel_thread+0xd4/0x104
[    7.385157][    T2]  kernel_thread from kthreadd+0x34c/0x4f4
[    7.385280][    T2]  kthreadd from ret_from_fork+0x14/0x2c
[    7.385398][    T2] Exception stack(0xf0833fb0 to 0xf0833ff8)
[    7.385518][    T2] 3fa0:
00000000 00000000 00000000 00000000
[    7.385683][    T2] 3fc0: 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000
[    7.385833][    T2] 3fe0: 00000000 00000000 00000000 00000000
00000013 00000000
[    7.386915][    T2] ---[ end Kernel panic - not syncing: System is
deadlocked on memory ]---



--
Best Regards
Masahiro Yamada

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: next/master bisection: baseline.login on qemu_arm-virt-gicv3
  2022-10-10 13:31             ` Masahiro Yamada
@ 2022-10-10 13:35               ` Masahiro Yamada
  2022-10-10 13:49               ` Mark Brown
  1 sibling, 0 replies; 11+ messages in thread
From: Masahiro Yamada @ 2022-10-10 13:35 UTC (permalink / raw)
  To: Mark Brown
  Cc: kernelci-results, bot, Russell King, Nick Desaulniers,
	Nicolas Schier, gtucker, linux-arm-kernel, linux-kbuild,
	Michal Marek

[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]

On Mon, Oct 10, 2022 at 10:31 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> On Mon, Oct 10, 2022 at 7:35 PM Mark Brown <broonie@kernel.org> wrote:
> >
> > On Fri, Oct 07, 2022 at 11:35:25PM +0900, Masahiro Yamada wrote:
> >
> > > I suspect "+debug" in "multi_v7_defconfig+debug"
> > > because the failure log says "ftrace bug" multiple times.
> >
> > > Which config options does "+debug" enable?
> >
> > > Can you share the .config file?
> >
> > The baseline config and fragment are both in:
> >
> >    https://storage.kernelci.org/next/master/next-20221004/arm/multi_v7_defconfig%2Bdebug/gcc-10/config/
>
>
>
> Thanks for sharing the .config file.
>
> With it applied, I can reproduce the boot error.
>
> And, I see the same boot error on v6.0-rc7, which my branch is based on.
>
>
> So, arm is already broken in the mainline, and
> my kbuild patches are irrelevant.
>
> Also, please check the bisection logic of kernelci.
>
>
> I attached the boot log of v6.0-rc7 below.
> ("Linux version 6.0.0-rc7" in the kernel log)
>
>
> Thanks.
>
>


Gmail wraps lines in 80-cols.

I attached the log file for convenience.




-- 
Best Regards
Masahiro Yamada

[-- Attachment #2: arm-v6.0-rc7.log --]
[-- Type: text/x-log, Size: 23022 bytes --]

+ qemu-system-arm -cpu cortex-a15 -machine virt-2.11,gic-version=3 -m 1024 -kernel /home/masahiro/tools/qemu-arm_virt/kernel -initrd /home/masahiro/tools/qemu-arm_virt/initrd -drive file=fat:rw:/home/masahiro/tools/qemu-arm_virt/disk-shared,if=none,format=raw,id=drive0 -netdev bridge,id=netdev0,br=virbr0,helper=/usr/lib/qemu/qemu-bridge-helper -serial stdio -monitor vc:800x600 -device virtio-blk-pci,drive=drive0 -device virtio-net-pci,netdev=netdev0 -append console=ttyAMA0
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 6.0.0-rc7 (masahiro@zoe) (arm-linux-gnueabi-gcc (GCC) 12.1.0, GNU ld (GNU Binutils) 2.38) #5 SMP Mon Oct 10 22:10:35 JST 2022
[    0.000000][    T0] CPU: ARMv7 Processor [412fc0f1] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: div instructions available: patching division code
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: linux,dummy-virt
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] efi: UEFI not found.
[    0.000000][    T0] cma: Reserved 64 MiB at 0x7c000000
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   DMA      [mem 0x0000000040000000-0x000000006fffffff]
[    0.000000][    T0]   Normal   empty
[    0.000000][    T0]   HighMem  [mem 0x0000000070000000-0x000000007fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000][    T0] kasan: Truncating shadow for memory block at 0x40000000-0x80000000 to lowmem region at 0x70000000
[    0.000000][    T0] kasan: Mapping kernel virtual memory block: c0000000-f0000000 at shadow: b7000000-bd000000
[    0.000000][    T0] kasan: Mapping kernel virtual memory block: bf000000-c0000000 at shadow: b6e00000-b7000000
[    0.000000][    T0] kasan: Kernel address sanitizer initialized
[    0.000000][    T0] psci: probing for conduit method from DT.
[    0.000000][    T0] psci: PSCIv0.2 detected in firmware.
[    0.000000][    T0] psci: Using standard PSCI v0.2 function IDs
[    0.000000][    T0] psci: Trusted OS migration not required
[    0.000000][    T0] percpu: Embedded 17 pages/cpu s37876 r8192 d23564 u69632
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyAMA0
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000][    T0] stackdepot hash table entries: 1048576 (order: 10, 4194304 bytes, linear)
[    0.000000][    T0] Memory: 243724K/1048576K available (55296K kernel code, 11177K rwdata, 18244K rodata, 3072K init, 10742K bss, 739316K reserved, 65536K cma-reserved, 196608K highmem)
[    0.000000][    T0] **********************************************************
[    0.000000][    T0] **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE   **
[    0.000000][    T0] **                                                      **
[    0.000000][    T0] ** This system shows unhashed kernel memory addresses   **
[    0.000000][    T0] ** via the console, logs, and other interfaces. This    **
[    0.000000][    T0] ** might reduce the security of your system.            **
[    0.000000][    T0] **                                                      **
[    0.000000][    T0] ** If you see this message and you are not debugging    **
[    0.000000][    T0] ** the kernel, report this immediately to your system   **
[    0.000000][    T0] ** administrator!                                       **
[    0.000000][    T0] **                                                      **
[    0.000000][    T0] **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE   **
[    0.000000][    T0] **********************************************************
[    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000][    T0] ftrace: allocating 61066 entries in 180 pages
[    0.000000][    T0] ------------[ cut here ]------------
[    0.000000][    T0] WARNING: CPU: 0 PID: 0 at arch/arm/kernel/insn.c:48 __arm_gen_branch+0x74/0x7c
[    0.000000][    T0] Modules linked in:
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc7 #5
[    0.000000][    T0] Hardware name: Generic DT based system
[    0.000000][    T0]  unwind_backtrace from show_stack+0x18/0x1c
[    0.000000][    T0]  show_stack from dump_stack_lvl+0x70/0xb0
[    0.000000][    T0]  dump_stack_lvl from __warn+0x1e0/0x48c
[    0.000000][    T0]  __warn from warn_slowpath_fmt+0xcc/0x134
[    0.000000][    T0]  warn_slowpath_fmt from __arm_gen_branch+0x74/0x7c
[    0.000000][    T0]  __arm_gen_branch from ftrace_make_nop+0x10c/0x240
[    0.000000][    T0]  ftrace_make_nop from ftrace_process_locs+0x4ac/0x8c8
[    0.000000][    T0]  ftrace_process_locs from ftrace_init+0xa8/0x180
[    0.000000][    T0]  ftrace_init from start_kernel+0x178/0x3a8
[    0.000000][    T0]  start_kernel from 0x0
[    0.000000][    T0] irq event stamp: 0
[    0.000000][    T0] hardirqs last  enabled at (0): [<00000000>] 0x0
[    0.000000][    T0] hardirqs last disabled at (0): [<00000000>] 0x0
[    0.000000][    T0] softirqs last  enabled at (0): [<00000000>] 0x0
[    0.000000][    T0] softirqs last disabled at (0): [<00000000>] 0x0
[    0.000000][    T0] ---[ end trace 0000000000000000 ]---
[    0.000000][    T0] ------------[ ftrace bug ]------------
[    0.000000][    T0] ftrace failed to modify 
[    0.000000][    T0] [<c232b6c8>] check_cmd_set+0x8/0x244
[    0.000000][    T0]  actual:   1f:7e:0d:eb
[    0.000000][    T0] Initializing ftrace call sites
[    0.000000][    T0] ftrace record flags: 0
[    0.000000][    T0]  (0)  
[    0.000000][    T0]  expected tramp: c032b384
[    0.000000][    T0] ------------[ cut here ]------------
[    0.000000][    T0] WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:2120 ftrace_bug+0x320/0x38c
[    0.000000][    T0] Modules linked in:
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper Tainted: G        W          6.0.0-rc7 #5
[    0.000000][    T0] Hardware name: Generic DT based system
[    0.000000][    T0]  unwind_backtrace from show_stack+0x18/0x1c
[    0.000000][    T0]  show_stack from dump_stack_lvl+0x70/0xb0
[    0.000000][    T0]  dump_stack_lvl from __warn+0x1e0/0x48c
[    0.000000][    T0]  __warn from warn_slowpath_fmt+0xcc/0x134
[    0.000000][    T0]  warn_slowpath_fmt from ftrace_bug+0x320/0x38c
[    0.000000][    T0]  ftrace_bug from ftrace_process_locs+0x8c0/0x8c8
[    0.000000][    T0]  ftrace_process_locs from ftrace_init+0xa8/0x180
[    0.000000][    T0]  ftrace_init from start_kernel+0x178/0x3a8
[    0.000000][    T0]  start_kernel from 0x0
[    0.000000][    T0] irq event stamp: 0
[    0.000000][    T0] hardirqs last  enabled at (0): [<00000000>] 0x0
[    0.000000][    T0] hardirqs last disabled at (0): [<00000000>] 0x0
[    0.000000][    T0] softirqs last  enabled at (0): [<00000000>] 0x0
[    0.000000][    T0] softirqs last disabled at (0): [<00000000>] 0x0
[    0.000000][    T0] ---[ end trace 0000000000000000 ]---
[    0.000000][    T0] ftrace: allocated 179 pages with 5 groups
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] Running RCU self tests
[    0.000000][    T0] rcu: Hierarchical RCU implementation.
[    0.000000][    T0] rcu: 	RCU event tracing is enabled.
[    0.000000][    T0] rcu: 	RCU lockdep checking is enabled.
[    0.000000][    T0] rcu: 	RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=1.
[    0.000000][    T0] rcu: 	RCU callback double-/use-after-free debug is enabled.
[    0.000000][    T0] 	Rude variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] GICv3: 224 SPIs implemented
[    0.000000][    T0] GICv3: 0 Extended SPIs implemented
[    0.000000][    T0] GICv3: GICv3 features: 16 PPIs
[    0.000000][    T0] GICv3: CPU0: found redistributor 0 region 0:0x080a0000
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
[    0.000000][    T0] clocksource: arch_sys_counter: mask: 0x1ffffffffffffff max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
[    0.000131][    T0] sched_clock: 57 bits at 63MHz, resolution 16ns, wraps every 4398046511096ns
[    0.000345][    T0] Switching to timer-based delay loop, resolution 16ns
[    0.022661][    T0] Console: colour dummy device 80x30
[    0.023663][    T0] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.023698][    T0] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.023724][    T0] ... MAX_LOCK_DEPTH:          48
[    0.023744][    T0] ... MAX_LOCKDEP_KEYS:        8192
[    0.023763][    T0] ... CLASSHASH_SIZE:          4096
[    0.023780][    T0] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.023796][    T0] ... MAX_LOCKDEP_CHAINS:      65536
[    0.023812][    T0] ... CHAINHASH_SIZE:          32768
[    0.023828][    T0]  memory used by lock dependency info: 4061 kB
[    0.023846][    T0]  memory used for stack traces: 2112 kB
[    0.023864][    T0]  per task-struct memory footprint: 1536 bytes
[    0.026140][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 125.00 BogoMIPS (lpj=625000)
[    0.026342][    T0] pid_max: default: 32768 minimum: 301
[    0.037995][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.038163][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.090792][    T0] CPU: Testing write buffer coherency: ok
[    0.094569][    T0] CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
[    0.094718][    T0] CPU0: Spectre BHB: enabling loop workaround for all CPUs
[    0.118342][    T1] /cpus/cpu@0 missing clock-frequency property
[    0.118989][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.148451][    T1] cblist_init_generic: Setting adjustable number of callback queues.
[    0.149021][    T1] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.152188][    T1] Running RCU-tasks wait API self tests
[    0.153928][    T1] Setting up static identity map for 0x40300000 - 0x403000ac
[    0.159343][   T10] Callback from call_rcu_tasks_rude() invoked.
[    0.161023][    T1] rcu: Hierarchical SRCU implementation.
[    0.161074][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.252842][    T1] EFI services will not be available.
[    0.271339][    T1] smp: Bringing up secondary CPUs ...
[    0.271508][    T1] smp: Brought up 1 node, 1 CPU
[    0.271655][    T1] SMP: Total of 1 processors activated (125.00 BogoMIPS).
[    0.271736][    T1] CPU: All CPU(s) started in SVC mode.
[    0.309434][    T1] devtmpfs: initialized
[    0.541181][    T1] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.594425][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.595491][    T1] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.616188][    T1] pinctrl core: initialized pinctrl subsystem
[    0.714541][    T1] DMI not present or invalid.
[    0.744673][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.784366][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.898919][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.900853][    T1] cpuidle: using governor menu
[    0.909869][    T1] No ATAGs?
[    0.911758][   T15] hw-breakpoint: CPU 0 debug is powered down!
[    0.987167][    T1] Serial: AMBA PL011 UART driver
[    1.291555][    T1] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 28, base_baud = 0) is a PL011 rev1
[    1.318988][    T1] printk: console [ttyAMA0] enabled
[    3.249051][    T1] iommu: Default domain type: Translated 
[    3.249309][    T1] iommu: DMA domain TLB invalidation policy: strict mode 
[    3.299995][    T1] SCSI subsystem initialized
[    3.370300][    T1] usbcore: registered new interface driver usbfs
[    3.373579][    T1] usbcore: registered new interface driver hub
[    3.375785][    T1] usbcore: registered new device driver usb
[    3.431672][    T1] pps_core: LinuxPPS API ver. 1 registered
[    3.431947][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    3.433518][    T1] PTP clock support registered
[    3.438143][    T1] EDAC MC: Ver: 3.0.0
[    3.581025][    T1] vgaarb: loaded
[    3.603786][    T1] clocksource: Switched to clocksource arch_sys_counter
[    7.305343][    T1] NET: Registered PF_INET protocol family
[    7.310851][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    7.339760][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 2, 20480 bytes, linear)
[    7.341016][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    7.341745][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    7.343032][    T1] TCP bind hash table entries: 8192 (order: 6, 327680 bytes, linear)
[    7.345920][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    7.362779][    T2] kthreadd invoked oom-killer: gfp_mask=0x40cc0(GFP_KERNEL|__GFP_COMP), order=1, oom_score_adj=0
[    7.363723][    T2] CPU: 0 PID: 2 Comm: kthreadd Tainted: G        W          6.0.0-rc7 #5
[    7.363998][    T2] Hardware name: Generic DT based system
[    7.364324][    T2]  unwind_backtrace from show_stack+0x18/0x1c
[    7.365084][    T2]  show_stack from dump_stack_lvl+0x90/0xb0
[    7.365198][    T2]  dump_stack_lvl from dump_header+0x13c/0x688
[    7.365306][    T2]  dump_header from out_of_memory+0x8c4/0x9f0
[    7.365408][    T2]  out_of_memory from __alloc_pages_may_oom+0x298/0x438
[    7.365517][    T2]  __alloc_pages_may_oom from __alloc_pages_slowpath.constprop.0+0x854/0x10a8
[    7.365635][    T2]  __alloc_pages_slowpath.constprop.0 from __alloc_pages+0x630/0x768
[    7.365773][    T2]  __alloc_pages from alloc_slab_page+0x64/0x8c
[    7.365871][    T2]  alloc_slab_page from allocate_slab+0x1f0/0x268
[    7.365998][    T2]  allocate_slab from ___slab_alloc.constprop.0+0x77c/0xcd4
[    7.366138][    T2]  ___slab_alloc.constprop.0 from __slab_alloc.constprop.0+0x2c/0x3c
[    7.366292][    T2]  __slab_alloc.constprop.0 from kmem_cache_alloc+0x258/0x45c
[    7.366432][    T2]  kmem_cache_alloc from dup_task_struct+0x38/0x74c
[    7.366565][    T2]  dup_task_struct from copy_process+0x53c/0x5048
[    7.366695][    T2]  copy_process from kernel_clone+0xec/0xa98
[    7.366822][    T2]  kernel_clone from kernel_thread+0xd4/0x104
[    7.366940][    T2]  kernel_thread from kthreadd+0x34c/0x4f4
[    7.367061][    T2]  kthreadd from ret_from_fork+0x14/0x2c
[    7.367195][    T2] Exception stack(0xf0833fb0 to 0xf0833ff8)
[    7.367458][    T2] 3fa0:                                     00000000 00000000 00000000 00000000
[    7.367595][    T2] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    7.367719][    T2] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    7.367947][    T2] Mem-Info:
[    7.368456][    T2] active_anon:0 inactive_anon:0 isolated_anon:0
[    7.368456][    T2]  active_file:0 inactive_file:0 isolated_file:0
[    7.368456][    T2]  unevictable:0 dirty:0 writeback:0
[    7.368456][    T2]  slab_reclaimable:2219 slab_unreclaimable:6009
[    7.368456][    T2]  mapped:0 shmem:0 pagetables:0 bounce:0
[    7.368456][    T2]  kernel_misc_reclaimable:0
[    7.368456][    T2]  free:67525 free_pcp:271 free_cma:16320
[    7.370314][    T2] Node 0 active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:0kB dirty:0kB writeback:0kB shmem:0kB writeback_tmp:0kB kernel_stack:448kB pagetables:0kB all_unreclaimable? no
[    7.371128][    T2] DMA free:8744kB boost:8192kB min:9060kB low:9276kB high:9492kB reserved_highatomic:16384KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:786432kB managed:47116kB mlocked:0kB bounce:0kB free_pcp:1036kB local_pcp:1036kB free_cma:0kB
[    7.371610][    T2] lowmem_reserve[]: 0 0 256 256
[    7.371906][    T2] HighMem free:261356kB boost:0kB min:256kB low:1460kB high:2664kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:262144kB managed:262144kB mlocked:0kB bounce:0kB free_pcp:48kB local_pcp:48kB free_cma:65280kB
[    7.372300][    T2] lowmem_reserve[]: 0 0 0 0
[    7.372570][    T2] DMA: 2*4kB (M) 2*8kB (MH) 3*16kB (MH) 3*32kB (M) 2*64kB (M) 2*128kB (M) 2*256kB (M) 3*512kB (M) 2*1024kB (MH) 2*2048kB (M) 0*4096kB 0*8192kB = 8744kB
[    7.373576][    T2] HighMem: 1*4kB (U) 1*8kB (U) 0*16kB 1*32kB (U) 1*64kB (U) 1*128kB (U) 2*256kB (UC) 1*512kB (C) 2*1024kB (UC) 2*2048kB (UC) 2*4096kB (UC) 30*8192kB (MC) = 261356kB
[    7.374320][    T2] 0 total pagecache pages
[    7.374460][    T2] 0 pages in swap cache
[    7.374590][    T2] Free swap  = 0kB
[    7.374697][    T2] Total swap = 0kB
[    7.374915][    T2] 262144 pages RAM
[    7.375011][    T2] 65536 pages HighMem/MovableOnly
[    7.375114][    T2] 184829 pages reserved
[    7.375206][    T2] 16384 pages cma reserved
[    7.375417][    T2] Unreclaimable slab info:
[    7.375711][    T2] Name                      Used          Total
[    7.376044][    T2] bio-164                   10KB         11KB
[    7.376250][    T2] bio-120                    0KB          3KB
[    7.376390][    T2] biovec-max               110KB        117KB
[    7.376532][    T2] dmaengine-unmap-256          1KB         15KB
[    7.376665][    T2] dmaengine-unmap-128          0KB          7KB
[    7.376787][    T2] dmaengine-unmap-16          0KB          4KB
[    7.376909][    T2] dmaengine-unmap-2          0KB          4KB
[    7.377041][    T2] skbuff_head_cache          8KB         11KB
[    7.377180][    T2] proc_dir_entry            42KB         43KB
[    7.377318][    T2] shmem_inode_cache         82KB         83KB
[    7.377440][    T2] kernfs_node_cache        978KB        980KB
[    7.377566][    T2] mnt_cache                  4KB          7KB
[    7.377688][    T2] names_cache              363KB        367KB
[    7.377810][    T2] nsproxy                    0KB          3KB
[    7.377943][    T2] mm_struct                  0KB          7KB
[    7.378069][    T2] fs_cache                   0KB          4KB
[    7.378192][    T2] files_cache                0KB          4KB
[    7.378317][    T2] signal_cache              29KB         31KB
[    7.378440][    T2] sighand_cache             43KB         46KB
[    7.378915][    T2] task_struct              122KB        122KB
[    7.379084][    T2] cred_jar                   7KB          8KB
[    7.379222][    T2] pid                        7KB          8KB
[    7.379349][    T2] trace_event_file         157KB        160KB
[    7.379473][    T2] ftrace_event_field        391KB        393KB
[    7.379603][    T2] pool_workqueue             9KB         15KB
[    7.379721][    T2] vmap_area                  8KB         11KB
[    7.379849][    T2] debug_objects_cache        178KB        180KB
[    7.379977][    T2] kmemleak_scan_area          2KB          3KB
[    7.380105][    T2] kmemleak_object         9091KB       9091KB
[    7.380267][    T2] kmalloc-8k                48KB         48KB
[    7.380389][    T2] kmalloc-4k              6732KB       6744KB
[    7.380505][    T2] kmalloc-2k               174KB        180KB
[    7.380626][    T2] kmalloc-1k               477KB        480KB
[    7.380746][    T2] kmalloc-512              337KB        345KB
[    7.380861][    T2] kmalloc-256               29KB         30KB
[    7.380984][    T2] kmalloc-192               85KB         86KB
[    7.381108][    T2] kmalloc-128              192KB        195KB
[    7.381230][    T2] kmalloc-64               988KB        992KB
[    7.381352][    T2] kmem_cache_node           26KB         28KB
[    7.381475][    T2] kmem_cache                33KB         33KB
[    7.381643][    T2] Tasks state (memory values in pages):
[    7.381765][    T2] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
[    7.382110][    T2] Out of memory and no killable processes...
[    7.382452][    T2] Kernel panic - not syncing: System is deadlocked on memory
[    7.382695][    T2] CPU: 0 PID: 2 Comm: kthreadd Tainted: G        W          6.0.0-rc7 #5
[    7.382859][    T2] Hardware name: Generic DT based system
[    7.382990][    T2]  unwind_backtrace from show_stack+0x18/0x1c
[    7.383145][    T2]  show_stack from dump_stack_lvl+0x70/0xb0
[    7.383277][    T2]  dump_stack_lvl from panic+0x234/0x5b0
[    7.383401][    T2]  panic from out_of_memory+0x958/0x9f0
[    7.383525][    T2]  out_of_memory from __alloc_pages_may_oom+0x298/0x438
[    7.383655][    T2]  __alloc_pages_may_oom from __alloc_pages_slowpath.constprop.0+0x854/0x10a8
[    7.383813][    T2]  __alloc_pages_slowpath.constprop.0 from __alloc_pages+0x630/0x768
[    7.383965][    T2]  __alloc_pages from alloc_slab_page+0x64/0x8c
[    7.384066][    T2]  alloc_slab_page from allocate_slab+0x1f0/0x268
[    7.384194][    T2]  allocate_slab from ___slab_alloc.constprop.0+0x77c/0xcd4
[    7.384337][    T2]  ___slab_alloc.constprop.0 from __slab_alloc.constprop.0+0x2c/0x3c
[    7.384491][    T2]  __slab_alloc.constprop.0 from kmem_cache_alloc+0x258/0x45c
[    7.384641][    T2]  kmem_cache_alloc from dup_task_struct+0x38/0x74c
[    7.384777][    T2]  dup_task_struct from copy_process+0x53c/0x5048
[    7.384906][    T2]  copy_process from kernel_clone+0xec/0xa98
[    7.385029][    T2]  kernel_clone from kernel_thread+0xd4/0x104
[    7.385157][    T2]  kernel_thread from kthreadd+0x34c/0x4f4
[    7.385280][    T2]  kthreadd from ret_from_fork+0x14/0x2c
[    7.385398][    T2] Exception stack(0xf0833fb0 to 0xf0833ff8)
[    7.385518][    T2] 3fa0:                                     00000000 00000000 00000000 00000000
[    7.385683][    T2] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    7.385833][    T2] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    7.386915][    T2] ---[ end Kernel panic - not syncing: System is deadlocked on memory ]---


[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: next/master bisection: baseline.login on qemu_arm-virt-gicv3
  2022-10-10 13:31             ` Masahiro Yamada
  2022-10-10 13:35               ` Masahiro Yamada
@ 2022-10-10 13:49               ` Mark Brown
  2022-10-10 14:03                 ` Masahiro Yamada
  1 sibling, 1 reply; 11+ messages in thread
From: Mark Brown @ 2022-10-10 13:49 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: kernelci-results, bot, Russell King, Nick Desaulniers,
	Nicolas Schier, gtucker, linux-arm-kernel, linux-kbuild,
	Michal Marek


[-- Attachment #1.1: Type: text/plain, Size: 867 bytes --]

On Mon, Oct 10, 2022 at 10:31:51PM +0900, Masahiro Yamada wrote:
> On Mon, Oct 10, 2022 at 7:35 PM Mark Brown <broonie@kernel.org> wrote:
> > On Fri, Oct 07, 2022 at 11:35:25PM +0900, Masahiro Yamada wrote:

> > The baseline config and fragment are both in:

> >    https://storage.kernelci.org/next/master/next-20221004/arm/multi_v7_defconfig%2Bdebug/gcc-10/config/

> Thanks for sharing the .config file.

> With it applied, I can reproduce the boot error.

> And, I see the same boot error on v6.0-rc7, which my branch is based on.

> So, arm is already broken in the mainline, and
> my kbuild patches are irrelevant.

> Also, please check the bisection logic of kernelci.

I *suspect* there's some involvement from link ordering, object sizes
and exact placements here and there's probably some toolchain variance
(the KernelCI results are with Debian's GCC 10).

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: next/master bisection: baseline.login on qemu_arm-virt-gicv3
  2022-10-10 13:49               ` Mark Brown
@ 2022-10-10 14:03                 ` Masahiro Yamada
  0 siblings, 0 replies; 11+ messages in thread
From: Masahiro Yamada @ 2022-10-10 14:03 UTC (permalink / raw)
  To: Mark Brown
  Cc: kernelci-results, bot, Russell King, Nick Desaulniers,
	Nicolas Schier, gtucker, linux-arm-kernel, linux-kbuild,
	Michal Marek

On Mon, Oct 10, 2022 at 10:49 PM Mark Brown <broonie@kernel.org> wrote:
>
> On Mon, Oct 10, 2022 at 10:31:51PM +0900, Masahiro Yamada wrote:
> > On Mon, Oct 10, 2022 at 7:35 PM Mark Brown <broonie@kernel.org> wrote:
> > > On Fri, Oct 07, 2022 at 11:35:25PM +0900, Masahiro Yamada wrote:
>
> > > The baseline config and fragment are both in:
>
> > >    https://storage.kernelci.org/next/master/next-20221004/arm/multi_v7_defconfig%2Bdebug/gcc-10/config/
>
> > Thanks for sharing the .config file.
>
> > With it applied, I can reproduce the boot error.
>
> > And, I see the same boot error on v6.0-rc7, which my branch is based on.
>
> > So, arm is already broken in the mainline, and
> > my kbuild patches are irrelevant.
>
> > Also, please check the bisection logic of kernelci.
>
> I *suspect* there's some involvement from link ordering, object sizes
> and exact placements here and there's probably some toolchain variance
> (the KernelCI results are with Debian's GCC 10).


Different GCC versions result in different machine code output.
If the problem repeats appear/disappear with slightly different code
placement, it is already broken.

Just in case, I removed the output tree, and built v6.0-rc7 kernel
from the clean tree.  I swear to see the boot failure.
I want to agree my patch is not the cause of the issue.


-- 
Best Regards
Masahiro Yamada

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-10-10 14:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <633f0406.050a0220.9431e.d406@mx.google.com>
2022-10-06 16:53 ` next/master bisection: baseline.login on qemu_arm-virt-gicv3 Mark Brown
2022-10-07  5:11   ` Masahiro Yamada
2022-10-07  5:38     ` Masahiro Yamada
2022-10-07  9:28       ` Ard Biesheuvel
2022-10-07 11:31       ` Mark Brown
2022-10-07 14:35         ` Masahiro Yamada
2022-10-10 10:35           ` Mark Brown
2022-10-10 13:31             ` Masahiro Yamada
2022-10-10 13:35               ` Masahiro Yamada
2022-10-10 13:49               ` Mark Brown
2022-10-10 14:03                 ` Masahiro Yamada

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).