Re: [PATCH 16/16] mm: sanitize page->mapping for tail pages

2015-09-24 Thread Jerome Glisse
On Thu, Sep 24, 2015 at 05:51:04PM +0300, Kirill A. Shutemov wrote: > We don't define meaning of page->mapping for tail pages. Currently it's > always NULL, which can be inconsistent with head page and potentially lead > to problems. > > Let's poison the pointer to catch all illigal uses. > >

[PATCH 16/16] mm: sanitize page->mapping for tail pages

2015-09-24 Thread Kirill A. Shutemov
We don't define meaning of page->mapping for tail pages. Currently it's always NULL, which can be inconsistent with head page and potentially lead to problems. Let's poison the pointer to catch all illigal uses. page_rmapping(), page_mapping() and page_anon_vma() are changed to look on head

[PATCH 16/16] mm: sanitize page->mapping for tail pages

2015-09-24 Thread Kirill A. Shutemov
We don't define meaning of page->mapping for tail pages. Currently it's always NULL, which can be inconsistent with head page and potentially lead to problems. Let's poison the pointer to catch all illigal uses. page_rmapping(), page_mapping() and page_anon_vma() are changed to look on head

Re: [PATCH 16/16] mm: sanitize page->mapping for tail pages

2015-09-24 Thread Jerome Glisse
On Thu, Sep 24, 2015 at 05:51:04PM +0300, Kirill A. Shutemov wrote: > We don't define meaning of page->mapping for tail pages. Currently it's > always NULL, which can be inconsistent with head page and potentially lead > to problems. > > Let's poison the pointer to catch all illigal uses. > >

[PATCH 16/16] mm: sanitize page->mapping for tail pages

2015-03-19 Thread Kirill A. Shutemov
We don't define meaning of page->mapping for tail pages. Currently it's always NULL, which can be inconsistent with head page and potentially lead to problems. Let's poison the pointer to catch all illigal uses. page_rmapping() and page_mapping() are changed to look on head page. The only

[PATCH 16/16] mm: sanitize page-mapping for tail pages

2015-03-19 Thread Kirill A. Shutemov
We don't define meaning of page-mapping for tail pages. Currently it's always NULL, which can be inconsistent with head page and potentially lead to problems. Let's poison the pointer to catch all illigal uses. page_rmapping() and page_mapping() are changed to look on head page. The only