linux/arch/arm
Stefano Stabellini 7bf9a6b465 arm/xen: fix xen_vcpu_info allocation alignment
xen_vcpu_info is a percpu area than needs to be mapped by Xen.
Currently, it could cross a page boundary resulting in Xen being unable
to map it:

[    0.567318] kernel BUG at arch/arm64/xen/../../arm/xen/enlighten.c:164!
[    0.574002] Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP

Fix the issue by using __alloc_percpu and requesting alignment for the
memory allocation.

Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>

Link: https://lore.kernel.org/r/alpine.DEB.2.22.394.2311221501340.2053963@ubuntu-linux-20-04-desktop
Fixes: 24d5373dda ("arm/xen: Use alloc_percpu rather than __alloc_percpu")
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
History 2023-11-23 09:32:41 +01:00
..
boot Pin control changes for the v6.7 kernel cycle 2023-11-03 19:15:19 -10:00
common ARM: 9319/1: sa1111: fix sa1111_probe kernel-doc warnings 2023-10-05 16:15:40 +01:00
configs - removed AR7 platform support 2023-11-10 09:19:46 -08:00
crypto crypto: arm/nhpoly1305 - implement ->digest 2023-10-20 13:39:25 +08:00
include Probes fixes for v6.7-rc1: 2023-11-10 16:35:04 -08:00
kernel TTY/Serial changes for 6.7-rc1 2023-11-03 15:44:25 -10:00
lib ARM: 9321/1: memset: cast the constant byte to unsigned char 2023-10-05 16:15:41 +01:00
mach-actions treewide: Trace IPIs sent via smp_send_reschedule() 2023-03-24 11:01:28 +01:00
mach-airoha ARM: Add basic support for Airoha EN7523 SoC 2022-03-01 09:02:01 +01:00
mach-alpine ARM: alpine: Drop unused includes 2023-08-12 10:30:59 +02:00
mach-artpec treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mach-asm9260 ARM: rework endianess selection 2022-04-08 17:20:54 +02:00
mach-aspeed ARM: aspeed: Kconfig: Fix indentation 2022-09-28 22:33:55 +02:00
mach-at91 ARM: at91: Explicitly include correct DT includes 2023-07-29 16:56:04 +03:00
mach-axxia ARM: Fix refcount leak in axxia_boot_secondary 2022-06-14 12:19:13 +02:00
mach-bcm ARM: bcm: Drop unused includes 2023-07-21 10:01:47 -07:00
mach-berlin ARM: berlin: Drop unused includes 2023-08-12 10:30:59 +02:00
mach-clps711x ARM: rework endianess selection 2022-04-08 17:20:54 +02:00
mach-davinci ARM: davinci: Drop unused includes 2023-08-29 16:01:32 -04:00
mach-digicolor treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mach-dove ARM: dove: Drop unused includes 2023-08-12 10:30:59 +02:00
mach-ep93xx ARM: ep93xx: fix missing-prototype warnings 2023-05-26 13:31:37 +02:00
mach-exynos ARM: SoC changes for 6.5 2023-06-29 15:28:33 -07:00
mach-footbridge ARM: unused boardfile removal for 6.3 2023-02-20 15:28:57 -08:00
mach-gemini arch/idle: Change arch_cpu_idle() behavior: always exit with IRQs disabled 2023-01-13 11:48:15 +01:00
mach-highbank ARM: highbank: add missing include 2023-05-26 13:31:37 +02:00
mach-hisi ARM: hisi: Drop unused includes 2023-07-19 06:29:04 +00:00
mach-hpe ARM: hpe: Drop unused includes 2023-08-12 10:30:59 +02:00
mach-imx ARM: imx: Drop unused includes 2023-07-19 15:28:44 +08:00
mach-ixp4xx ARM: ixp4xx: Remove unused debug iomap 2022-11-23 09:29:20 +01:00
mach-keystone ARM: keystone: Merge PM function into main support file 2023-08-01 23:57:28 -05:00
mach-lpc18xx ARM: remove obsolete Makefile.boot infrastructure 2022-08-18 16:44:59 +02:00
mach-lpc32xx ARM: lpc32xx: add missing include 2023-05-26 13:33:05 +02:00
mach-mediatek arm: mediatek: select arch timer for mt7629 2022-04-22 17:12:05 +02:00
mach-meson ARM: meson: Drop unused includes 2023-07-31 11:58:18 +02:00
mach-milbeaut treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mach-mmp ARM: mmp: Drop unused includes 2023-08-12 10:31:00 +02:00
mach-moxart ARM: rework endianess selection 2022-04-08 17:20:54 +02:00
mach-mstar ARM: mstar: remove unused config MACH_MERCURY 2023-03-24 18:53:25 +01:00
mach-mv78xx0 pci-v6.4-changes 2023-04-27 10:45:30 -07:00
mach-mvebu ARM: mvebu: Explicitly include correct DT includes 2023-08-12 10:31:00 +02:00
mach-mxs ARM: 9298/1: Drop custom mdesc->handle_irq() 2023-06-19 09:35:48 +01:00
mach-nomadik ARM: nomadik: Drop unused includes 2023-08-12 10:31:00 +02:00
mach-npcm ARM: npcm: Drop unused includes 2023-08-12 10:31:00 +02:00
mach-nspire ARM: nspire: Remove unused header file mmio.h 2023-08-12 11:49:32 +02:00
mach-omap1 gpio updates for v6.7-rc1 2023-10-31 17:21:54 -10:00
mach-omap2 sound updates for 6.7 2023-11-02 14:34:14 -10:00
mach-orion5x ARM: orion5x: fix d2net gpio initialization 2023-05-26 13:33:05 +02:00
mach-pxa ARM: SoC cleanups for 6.6 2023-08-30 16:49:40 -07:00
mach-qcom firmware: qcom_scm: Move qcom_scm.h to include/linux/firmware/qcom/ 2023-02-08 19:15:16 -08:00
mach-rda ARM: 9285/1: remove meaningless arch/arm/mach-rda/Makefile 2023-01-12 14:30:16 +00:00
mach-realtek ARM: Prepare Realtek RTD1195 2020-04-12 23:13:38 +02:00
mach-rockchip ARM: rockchip: Drop unused includes 2023-08-12 10:31:00 +02:00
mach-rpc lazy tlb: introduce lazy tlb mm refcount helper functions 2023-03-28 16:20:08 -07:00
mach-s3c ARM: s3c: Switch i2c drivers back to use .probe() 2023-05-30 09:40:37 +02:00
mach-s5pv210 ARM: s5pv210: Explicitly include correct DT includes 2023-08-14 18:15:48 +02:00
mach-sa1100 ARM: locomo: fix locomolcd_power declaration 2023-09-28 09:15:51 +02:00
mach-shmobile ARM: shmobile: sh73a0: Reserve boot area when SMP is enabled 2023-09-27 11:00:27 +02:00
mach-socfpga ARM: socfpga: Explicitly include correct DT includes 2023-07-20 14:38:38 -05:00
mach-spear ARM: spear: Explicitly include correct DT includes 2023-08-12 10:31:01 +02:00
mach-sti ARM: sti: Drop unused includes 2023-08-12 10:30:59 +02:00
mach-stm32 ARM: stm32: add support for STM32MP151 2023-03-28 16:39:36 +02:00
mach-sunplus ARM: sunplus: fix serial console kconfig and build problems 2022-09-23 14:20:00 +02:00
mach-sunxi ARM: sunxi: Drop of_device.h include 2023-04-13 17:46:34 -05:00
mach-tegra power: remove pda_power supply driver 2023-02-01 17:23:38 +01:00
mach-uniphier ARM: uniphier: select RESET_CONTROLLER 2018-07-31 19:04:41 -07:00
mach-ux500 ARM: ux500: Move power-domain driver to the genpd dir 2023-07-14 10:41:59 +02:00
mach-versatile ARM: versatile: Drop unused includes 2023-08-12 10:31:00 +02:00
mach-vt8500 ARM: remove obsolete Makefile.boot infrastructure 2022-08-18 16:44:59 +02:00
mach-zynq ARM: zynq: Explicitly include correct DT includes 2023-07-20 17:06:50 +02:00
mm ARM: uniphier: fix cache kernel-doc warnings 2023-09-27 11:02:14 +02:00
net arm32, bpf: add support for 64 bit division instruction 2023-09-15 17:16:56 -07:00
nwfpe ARM: entry: Make asm coproc dispatch code NWFPE only 2023-05-17 15:08:22 +02:00
plat-orion ARM: orion/gpio: Use the right include 2023-03-06 12:33:00 +02:00
probes ARM: 9303/1: kprobes: avoid missing-declaration warnings 2023-06-19 09:35:51 +01:00
tools asm-generic updates for v6.7 2023-11-01 15:28:33 -10:00
vdso kbuild: unify vdso_install rules 2023-10-28 21:09:02 +09:00
vfp Merge branch 'devel-stable' into for-next 2023-08-14 12:18:06 +01:00
xen arm/xen: fix xen_vcpu_info allocation alignment 2023-11-23 09:32:41 +01:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig dma-direct: add a CONFIG_ARCH_HAS_DMA_ALLOC symbol 2023-10-22 16:38:54 +02:00
Kconfig-nommu ARM: 8832/1: NOMMU: Limit visibility for CONFIG_FLASH_{MEM_BASE,SIZE} 2019-02-01 21:44:46 +00:00
Kconfig.assembler ARM: 8991/1: use VFP assembler mnemonics if available 2020-07-21 16:33:39 +01:00
Kconfig.debug arm: debug: reuse the config DEBUG_OMAP2UART{1,2} for OMAP{3,4,5} 2023-10-26 17:26:15 +02:00
Makefile kbuild: unify vdso_install rules 2023-10-28 21:09:02 +09:00