diff options
| author | Alexander Potapenko <[email protected]> | 2020-01-16 11:09:34 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2020-01-16 22:51:45 +0000 |
| commit | 18451f9f9e5810b8bd1245c5ae166f257e0e2b9d (patch) | |
| tree | 1c2fbb83b60b6f165779b8414af59653d434f370 /lib/xarray.c | |
| parent | Linux 5.5-rc6 (diff) | |
| download | kernel-18451f9f9e5810b8bd1245c5ae166f257e0e2b9d.tar.gz kernel-18451f9f9e5810b8bd1245c5ae166f257e0e2b9d.zip | |
PM: hibernate: fix crashes with init_on_free=1
Upon resuming from hibernation, free pages may contain stale data from
the kernel that initiated the resume. This breaks the invariant
inflicted by init_on_free=1 that freed pages must be zeroed.
To deal with this problem, make clear_free_pages() also clear the free
pages when init_on_free is enabled.
Fixes: 6471384af2a6 ("mm: security: introduce init_on_alloc=1 and init_on_free=1 boot options")
Reported-by: Johannes Stezenbach <[email protected]>
Signed-off-by: Alexander Potapenko <[email protected]>
Cc: 5.3+ <[email protected]> # 5.3+
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions
