aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorPratyush Yadav <[email protected]>2025-11-03 18:02:32 +0000
committerAndrew Morton <[email protected]>2025-11-10 05:19:47 +0000
commitb05addf6f0596edb1f82ab4059438c7ef2d2686d (patch)
tree8abae364a9020a22cdf18d146d5e5e93f0549f2c /drivers/scsi/mpt2sas/mpi/mpi2_raid.h
parentkho: fix unpreservation of higher-order vmalloc preservations (diff)
downloadkernel-b05addf6f0596edb1f82ab4059438c7ef2d2686d.tar.gz
kernel-b05addf6f0596edb1f82ab4059438c7ef2d2686d.zip
kho: warn and exit when unpreserved page wasn't preserved
Calling __kho_unpreserve() on a pair of (pfn, end_pfn) that wasn't preserved is a bug. Currently, if that is done, the physxa or bits can be NULL. This results in a soft lockup since a NULL physxa or bits results in redoing the loop without ever making any progress. Return when physxa or bits are not found, but WARN first to loudly indicate invalid behaviour. Link: https://lkml.kernel.org/r/[email protected] Fixes: fc33e4b44b27 ("kexec: enable KHO support for memory preservation") Signed-off-by: Pratyush Yadav <[email protected]> Reviewed-by: Mike Rapoport (Microsoft) <[email protected]> Cc: Alexander Graf <[email protected]> Cc: Baoquan He <[email protected]> Cc: Pasha Tatashin <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions