linux-yocto/arch/um
Tiwei Bie dd072fa647 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:37:20 +02:00
..
configs um: Fix hostaudio build errors 2023-08-19 23:30:22 +02:00
drivers um: vector: Reduce stack usage in vector_eth_configure() 2025-07-17 18:37:20 +02:00
include um: Add cmpxchg8b_emu and checksum functions to asm-prototypes.h 2025-07-06 11:01:34 +02:00
kernel um: use proper care when taking mmap lock during segfault 2025-07-06 11:01:34 +02:00
os-Linux um: remove copy_from_kernel_nofault_allowed 2025-04-10 14:39:25 +02:00
scripts um: prevent user code in modules 2023-04-20 23:06:38 +02:00
.gitignore
Kbuild um: use obj-y to descend into arch/um/*/ 2023-08-26 22:41:34 +02:00
Kconfig um: remove ARCH_NO_PREEMPT_DYNAMIC 2024-09-12 20:12:37 +02:00
Kconfig.debug
Makefile um: let 'make clean' properly clean underlying SUBARCH as well 2025-06-04 14:43:52 +02:00
Makefile-os-Linux
Makefile-skas arch: um: Add Clang coverage support 2024-01-05 00:30:35 +01:00