Skip to content

ARM hangs on boot with CONFIG_FORTIFY_SOURCE and ATAGs

[email protected] linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1Set cmdline array size to COMMAND_LINE_SIZEarch/arm/include/uapi/asm/setup.h+1 -10 replies

Reviews trailers per patch

The patch has no Reviewed-by or Acked-by.

PatchBerto Furth
1/1T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/1] ARM hangs on boot with CONFIG_FORTIFY_SOURCE and ATAGs

From: Berto Furth <[email protected]>

ARM may hang on boot with ATAGS and CONFIG_FORTIFY_SOURCE.

An ARM 32 device may hang on boot after the

Uncompressing Linux... done, booting the kernel.

message if the bootloader passes a command line via ATAG to the kernel and CONFIG_FORTIFY_SOURCE is enabled.

Workaround : Disable CONFIG_FORTIFY_SOURCE in kernel build options.

Details : I am trying to build v5.14.0-rc5 for an old 32 bit arm NAS system (Cavium CNS3420 based Seagate Central).

The embedded u-boot bootloader on this system is very old and uses ATAGs to pass parameters to the kernel.

I am confident that the hang problem is occurring because of the fortified string functions which check the declared size of string objects before working with them.

My tests show that when booting using kernel v4.19.195 (which does not have fortified string functions) or with kernel v5.14.0-rc5 with CONFIG_FORTIFY_SOURCE disabled, that the system does not hang on boot.

Berto Furth (1):
Make cmdline ATAG work with fortified string fn

 arch/arm/include/uapi/asm/setup.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

base-commit: d6d09a6942050f21b065a134169002b4d6b701ef

Signature · 7 lines
2.32.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel