diff options
author | Florian Fainelli <[email protected]> | 2021-02-25 17:22:46 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-02-26 09:41:05 -0800 |
commit | dd23e8098f33a55b22b869bc7fc0a795ccbb9f87 (patch) | |
tree | 54d1cfdef6cacc7250efd48520ac5737e9aac736 /drivers | |
parent | 6aaa31aeb9cf260e1b7155cc11ec864f052db5ec (diff) |
initramfs: panic with memory information
On systems with large amounts of reserved memory we may fail to
successfully complete unpack_to_rootfs() and be left with:
Kernel panic - not syncing: write error
this is not too helpful to understand what happened, so let's wrap the
panic() calls with a surrounding show_mem() such that we have a chance of
understanding the memory conditions leading to these allocation failures.
[[email protected]: replace macro with C function]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Florian Fainelli <[email protected]>
Cc: Barret Rhoden <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions