anolis-cloud-kernel/drivers/firmware
Zelin Deng 05c0f79ba4 anolis: efi/libstub: should redefine for_each_set_bitrange_from
ANBZ: #20714

We observed kernel was stuck at "accept memory" when "kaslr" was enabled
at kernel decompression stage.
If kaslr choses a random relocation address which is "unaccepted
memory", efistub will do accept_memory(), a inifite loop happens when
accept_memory() is retrieving bitmap of unaccepted memory by using:
for_each_set_bitrange_from.

for_each_set_bitrange_from won't be override as it has been defined in
other place, which may cause infinite loop.
Replase #ifndef...#endif by #undefine to ensure it is override

Fixes: 7417dc9cb9bb("efi/libstub: Implement support for unaccepted memory")
Signed-off-by: Zelin Deng <zelin.deng@linux.alibaba.com>
Reviewed-by: Shuai Xue <xueshuai@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/5176
2025-04-28 05:45:25 +00:00
..
arm_scmi firmware: arm_scmi: Harden accesses to the reset domains 2025-03-31 02:02:37 +00:00
broadcom firmware: tee_bnxt: Release TEE shm, session, and context during kexec 2021-08-15 14:00:25 +02:00
efi anolis: efi/libstub: should redefine for_each_set_bitrange_from 2025-04-28 05:45:25 +00:00
google firmware: google: Properly state IOMEM dependency 2022-04-08 14:40:28 +02:00
imx
meson
psci arm/arm64: Probe for the presence of KVM hypervisor 2022-08-02 16:35:16 +08:00
smccc arm/arm64: Probe for the presence of KVM hypervisor 2022-08-02 16:35:16 +08:00
tegra firmware: tegra: bpmp: Fix Tegra234-only builds 2021-07-25 14:36:15 +02:00
thead anolis: riscv: firmware: add Light Aon protocol driver 2023-02-26 01:51:05 +00:00
xilinx firmware: xilinx: Fix dereferencing freed memory 2021-05-14 09:50:05 +02:00
Kconfig anolis: sw64: kvm: add qemu fw_cfg device support in sysfs 2023-06-08 05:48:58 +00:00
Makefile anolis: riscv: firmware: add Light Aon protocol driver 2023-02-26 01:51:05 +00:00
arm_scpi.c firmware: arm_scpi: Check the DVFS OPP count returned by the firmware 2025-03-25 11:16:37 +00:00
arm_sdei.c arm64: sdei: move uaccess logic to arch/arm64/ 2022-08-03 02:53:37 +00:00
dmi-id.c
dmi-sysfs.c firmware: dmi-sysfs: Fix memory leak in dmi_sysfs_register_handle 2022-06-14 18:32:34 +02:00
dmi_scan.c
edd.c
iscsi_ibft.c
iscsi_ibft_find.c
memmap.c
pcdp.c
pcdp.h
qcom_scm-legacy.c
qcom_scm-smc.c firmware: qcom_scm: Reduce locking section for __get_convention() 2021-05-14 09:50:14 +02:00
qcom_scm.c firmware: qcom: scm: Remove reassignment to desc following initializer 2022-04-08 14:40:06 +02:00
qcom_scm.h firmware: qcom_scm: Reduce locking section for __get_convention() 2021-05-14 09:50:14 +02:00
qemu_fw_cfg.c anolis: sw64: kvm: add qemu fw_cfg device support in sysfs 2023-06-08 05:48:58 +00:00
raspberrypi.c firmware: raspberrypi: Fix a leak in 'rpi_firmware_get()' 2021-09-15 09:50:41 +02:00
scpi_pm_domain.c firmware: arm_scpi: Fix string overflow in SCPI genpd driver 2021-12-22 09:30:50 +01:00
stratix10-rsu.c
stratix10-svc.c firmware: stratix10-svc: fix a missing check on list iterator 2022-06-14 18:32:32 +02:00
ti_sci.c
ti_sci.h
trusted_foundations.c
turris-mox-rwtm.c firmware: turris-mox-rwtm: add marvell,armada-3700-rwtm-firmware compatible string 2021-07-25 14:36:17 +02:00