diff options
| author | Florian Fainelli <f.fainelli@gmail.com> | 2026-10-16 15:18:26 -0700 |
|---|---|---|
| committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2026-11-05 15:27:27 +0100 |
| commit | 792ac17faa0503448f3ef85b49f16456ac54ab84 (patch) | |
| tree | b05c7db9604cff43a08fad954613d50c203544f5 /tools/lib/python/kdoc/python_version.py | |
| parent | dd722e605bd6b5ac593475ad2ed76cd9d27cb2ef (diff) | |
MIPS: Alchemy: Save the Ethernet address before reusing PROM memory
Alchemy keeps pointers into the firmware environment and looks up ethaddr
when initializing the Ethernet devices. By that point, memory allocation
can have overwritten the environment, causing prom_getenv() to pass an
invalid pointer to strchr() and panic during boot.
On the MTX-1, the struct page layout change in 9ddb3c14afba reduces struct
page from 40 to 32 bytes and exposes this unreserved firmware memory.
Bisection and boot tests confirmed that the parent boots while the change
reproduces the panic.
Parse the Ethernet address during prom_init(), before registering RAM
with memblock, and keep the six bytes in kernel-owned init data. Return
the saved address during device initialization, preserving the existing
YAMON formats and command-line fallback without reserving a fixed
low-memory region.
Fixes: b93ddc4f9156 ("mips: Reserve memory for the kernel image resources")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
