--- a/mm/memory-failure.c~mm-memory-failurec-replace-with-page_shift-in-add_to_kill +++ a/mm/memory-failure.c @@ -320,7 +320,7 @@ static void add_to_kill(struct task_stru if (is_zone_device_page(p)) tk->size_shift = dev_pagemap_mapping_shift(p, vma); else - tk->size_shift = compound_order(compound_head(p)) + PAGE_SHIFT; + tk->size_shift = page_shift(compound_head(p)); /* * Send SIGKILL if "tk->addr == -EFAULT". Also, as