summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAaron Thompson <dev@aaront.org>2023-02-07 08:21:51 +0000
committerMike Rapoport (IBM) <rppt@kernel.org>2023-02-07 13:07:37 +0200
commit647037adcad00f2bab8828d3d41cd0553d41f3bd (patch)
treeec268261b3ec093b4bd75df43c83d8e1edc4e70e /drivers
parent4ec5183ec48656cec489c49f989c508b68b518e3 (diff)
downloadlinux-647037adcad00f2bab8828d3d41cd0553d41f3bd.tar.gz
linux-647037adcad00f2bab8828d3d41cd0553d41f3bd.tar.bz2
linux-647037adcad00f2bab8828d3d41cd0553d41f3bd.zip
Revert "mm: Always release pages to the buddy allocator in memblock_free_late()."
This reverts commit 115d9d77bb0f9152c60b6e8646369fa7f6167593. The pages being freed by memblock_free_late() have already been initialized, but if they are in the deferred init range, __free_one_page() might access nearby uninitialized pages when trying to coalesce buddies. This can, for example, trigger this BUG: BUG: unable to handle page fault for address: ffffe964c02580c8 RIP: 0010:__list_del_entry_valid+0x3f/0x70 <TASK> __free_one_page+0x139/0x410 __free_pages_ok+0x21d/0x450 memblock_free_late+0x8c/0xb9 efi_free_boot_services+0x16b/0x25c efi_enter_virtual_mode+0x403/0x446 start_kernel+0x678/0x714 secondary_startup_64_no_verify+0xd2/0xdb </TASK> A proper fix will be more involved so revert this change for the time being. Fixes: 115d9d77bb0f ("mm: Always release pages to the buddy allocator in memblock_free_late().") Signed-off-by: Aaron Thompson <dev@aaront.org> Link: https://lore.kernel.org/r/20230207082151.1303-1-dev@aaront.org Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions