linux-yocto/arch/um
Tiwei Bie 78fe114f13 um: vector: Reduce stack usage in vector_eth_configure()
[ Upstream commit 2d65fc13be ]

When compiling with clang (19.1.7), initializing *vp using a compound
literal may result in excessive stack usage. Fix it by initializing the
required fields of *vp individually.

Without this patch:

$ objdump -d arch/um/drivers/vector_kern.o | ./scripts/checkstack.pl x86_64 0
...
0x0000000000000540 vector_eth_configure [vector_kern.o]:1472
...

With this patch:

$ objdump -d arch/um/drivers/vector_kern.o | ./scripts/checkstack.pl x86_64 0
...
0x0000000000000540 vector_eth_configure [vector_kern.o]:208
...

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506221017.WtB7Usua-lkp@intel.com/
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20250623110829.314864-1-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-17 18:30:54 +02:00
..
configs um: Fix hostaudio build errors 2023-09-19 12:22:49 +02:00
drivers um: vector: Reduce stack usage in vector_eth_configure() 2025-07-17 18:30:54 +02:00
include um: Add cmpxchg8b_emu and checksum functions to asm-prototypes.h 2025-07-10 15:57:33 +02:00
kernel um: Update min_low_pfn to match changes in uml_reserved 2025-06-04 14:37:56 +02:00
os-Linux um: time-travel: fix signal blocking race/hang 2024-08-19 05:45:23 +02:00
scripts
.gitignore
Kbuild
Kconfig um/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:58:31 +02:00
Kconfig.debug
Makefile um: let 'make clean' properly clean underlying SUBARCH as well 2025-06-04 14:38:08 +02:00
Makefile-os-Linux
Makefile-skas