summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2021-02-26 04:22:46 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2021-02-26 20:41:05 +0300
commitdd23e8098f33a55b22b869bc7fc0a795ccbb9f87 (patch)
tree54d1cfdef6cacc7250efd48520ac5737e9aac736 /include
parent6aaa31aeb9cf260e1b7155cc11ec864f052db5ec (diff)
downloadlinux-dd23e8098f33a55b22b869bc7fc0a795ccbb9f87.tar.xz
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. [akpm@linux-foundation.org: replace macro with C function] Link: https://lkml.kernel.org/r/20210114231517.1854379-1-f.fainelli@gmail.com Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Cc: Barret Rhoden <brho@google.com> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions