On Wed, Apr 08, 2020 at 08:01:48AM -0700, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" <willy@xxxxxxxxxxxxx> > > If a page is poisoned, the page->compound_head will be set to -1. > Since it has bit zero set, we will think it is a tail page, and the head > page is at 0xff..fe. Checking said head page for being poisoned will > not have good results. Therefore we need to check for poison in each > of compound_head(), PageTail() and PageCompound() (and can remove the > checks which are now redundant from the PF_ macros). > > Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> -- Kirill A. Shutemov