diff options
author | Pavel Tatashin <[email protected]> | 2018-07-03 17:02:53 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-07-03 17:32:19 -0700 |
commit | fc36def997cfd6cbff3eda4f82853a5c311c5466 (patch) | |
tree | 30bcbc53d846d0af57df66256968458590cb7cd7 /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | 5e4e290d3751607726a62f0b49e11261a0a9345e (diff) |
mm: teach dump_page() to correctly output poisoned struct pages
If struct page is poisoned, and uninitialized access is detected via
PF_POISONED_CHECK(page) dump_page() is called to output the page. But,
the dump_page() itself accesses struct page to determine how to print
it, and therefore gets into a recursive loop.
For example:
dump_page()
__dump_page()
PageSlab(page)
PF_POISONED_CHECK(page)
VM_BUG_ON_PGFLAGS(PagePoisoned(page), page)
dump_page() recursion loop.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: f165b378bbdf ("mm: uninitialized struct page poisoning sanity checking")
Signed-off-by: Pavel Tatashin <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions