diff options
author | Yuntao Wang <[email protected]> | 2023-12-09 22:14:38 +0800 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-12-12 17:20:18 -0800 |
commit | 1dd11e977360ad3493812da0b05ffd9adcdd15a1 (patch) | |
tree | 3a51fe456752e1147c72d447ea58a81d09578c56 /scripts/generate_rust_analyzer.py | |
parent | 69f8ca8d36b5e52360f45c3b63bcb3d075da36df (diff) |
crash_core: fix the check for whether crashkernel is from high memory
If crash_base is equal to CRASH_ADDR_LOW_MAX, it also indicates that
the crashkernel memory is allocated from high memory. However, the
current check only considers the case where crash_base is greater than
CRASH_ADDR_LOW_MAX. Fix it.
The runtime effects is that crashkernel high memory is successfully
reserved, whereas the crashkernel low memory is bypassed in this case,
then kdump kernel bootup will fail because of no low memory under 4G.
This patch also includes some minor cleanups.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 0ab97169aa05 ("crash_core: add generic function to do reservation")
Signed-off-by: Yuntao Wang <[email protected]>
Cc: Baoquan He <[email protected]>
Cc: Dave Young <[email protected]>
Cc: Vivek Goyal <[email protected]>
Cc: Zhen Lei <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions