Re: [PATCH] mm: mincore: add hwpoison page handle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 12, 2014 at 11:39:29AM +0800, Weijie Yang wrote:
> When encounter pte is a swap entry, the current code handles two cases:
> migration and normal swapentry, but we have a third case: hwpoison page.
> 
> This patch adds hwpoison page handle, consider hwpoison page incore as
> same as migration.
> 
> Signed-off-by: Weijie Yang <weijie.yang@xxxxxxxxxxx>

The change makes sense:

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>

But please add a description of what happens when a poison entry is
encountered with the current code.  I'm guessing swap_address_space()
will return garbage and this might crash the kernel?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]