linux/drivers/xen/xenbus
Josh Poimboeuf 0330b7fbbf drivers/xen/xenbus: Fix namespace collision and split() section placement with AutoFDO
When compiling the kernel with -ffunction-sections enabled, the split()
function gets compiled into the .text.split section.  In some cases it
can even be cloned into .text.split.constprop.0 or .text.split.isra.0.

However, .text.split.* is already reserved for use by the Clang
-fsplit-machine-functions flag, which is used by AutoFDO.  That may
place part of a function's code in a .text.split.<func> section.

This naming conflict causes the vmlinux linker script to wrongly place
split() with other .text.split.* code, rather than where it belongs with
regular text.

Fix it by renaming split() to split_strings().

Fixes: 6568f14cb5 ("vmlinux.lds: Exclude .text.startup and .text.exit from TEXT_MAIN")
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: live-patching@vger.kernel.org
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://patch.msgid.link/92a194234a0f757765e275b288bb1a7236c2c35c.1762991150.git.jpoimboe@kernel.org
2025-11-13 08:03:10 +01:00
..
Makefile xen/xenbus: Use *-y instead of *-objs in Makefile 2024-05-17 12:14:13 +02:00
xenbus.h xenbus: Use kref to track req lifetime 2025-05-07 16:21:41 +02:00
xenbus_client.c xen: replace XENFEAT_auto_translated_physmap with xen_pv_domain() 2025-09-08 17:01:36 +02:00
xenbus_comms.c xenbus: Use kref to track req lifetime 2025-05-07 16:21:41 +02:00
xenbus_dev_backend.c
xenbus_dev_frontend.c xenbus: Use kref to track req lifetime 2025-05-07 16:21:41 +02:00
xenbus_probe.c xenbus: Allow PVH dom0 a non-local xenstore 2025-05-07 16:15:27 +02:00
xenbus_probe_backend.c xenbus/backend: dynamically allocate the xen-backend shrinker 2023-10-04 10:32:23 -07:00
xenbus_probe_frontend.c xenbus: add module description 2025-04-07 08:33:53 +02:00
xenbus_xs.c drivers/xen/xenbus: Fix namespace collision and split() section placement with AutoFDO 2025-11-13 08:03:10 +01:00