linux/drivers/of
Lucas Tanure b413281876 of: fdt: Scan /memreserve/ last
Change the scanning /memreserve/ and /reserved-memory node order to fix
Kernel panic on Khadas Vim3 Board.

If /memreserve/ goes first, the memory is reserved, but nomap can't be
applied to the region. So the memory won't be used by Linux, but it is
still present in the linear map as normal memory, which allows
speculation. Legitimate access to adjacent pages will cause the CPU
to end up prefetching into them leading to Kernel panic.

So /reserved-memory node should go first, as it has a more updated
description of the memory regions and can apply flags, like nomap.

Link: https://lore.kernel.org/all/CAJX_Q+1Tjc+-TjZ6JW9X0NxEdFe=82a9626yL63j7uVD4LpxEA@mail.gmail.com/
Signed-off-by: Lucas Tanure <tanure@linux.com>
Link: https://lore.kernel.org/r/20230424113846.46382-1-tanure@linux.com
Signed-off-by: Rob Herring <robh@kernel.org>
2023-04-27 15:52:16 -05:00
..
unittest-data of: unittest: add node lifecycle tests 2023-02-20 15:36:51 -06:00
address.c of: address: Reshuffle to remove forward declarations 2023-04-04 12:12:13 -05:00
base.c of: base: use strscpy() to instead of strncpy() 2023-01-05 21:23:14 -06:00
device.c Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
dynamic.c of: dynamic: Fix spelling mistake "kojbect" -> "kobject" 2023-02-21 10:22:04 -06:00
fdt_address.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
fdt.c of: fdt: Scan /memreserve/ last 2023-04-27 15:52:16 -05:00
irq.c of/irq: add missing of_node_put() for interrupt parent node 2023-01-18 11:31:42 -06:00
Kconfig of: update kconfig unittest help 2023-02-17 15:46:20 -06:00
kexec.c of/kexec: Fix reading 32-bit "linux,initrd-{start,end}" values 2022-12-06 14:50:36 -06:00
kobj.c of: make of_node_ktype constant 2023-02-06 11:03:00 -06:00
Makefile of: net: move of_net under net/ 2021-10-07 13:39:51 +01:00
of_numa.c of, numa: Fetch empty NUMA node ID from distance map 2021-10-04 13:13:44 -05:00
of_private.h of: Fix "dma-ranges" handling for bus controllers 2022-09-30 14:35:43 -05:00
of_reserved_mem.c Devicetree updates for v6.3: 2023-02-24 13:31:53 -08:00
overlay.c of: overlay: Fix trivial typo 2022-12-26 16:09:29 -06:00
pdt.c of: Remove struct device_node.type pointer 2019-01-10 16:24:44 -06:00
platform.c Devicetree updates for v6.3: 2023-02-24 13:31:53 -08:00
property.c Devicetree updates for v6.3: 2023-02-24 13:31:53 -08:00
resolver.c of: overlay: log the error cause on resolver failure 2020-03-02 11:32:44 -06:00
unittest.c of: unittest: Convert to platform remove callback returning void 2023-03-20 14:59:08 -05:00