All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 0/2] Fix another VM_BUG_ON_PAGE(PageTail(page)) on mbind(2)
@ 2016-02-02 16:20 ` Kirill A. Shutemov
  0 siblings, 0 replies; 12+ messages in thread
From: Kirill A. Shutemov @ 2016-02-02 16:20 UTC (permalink / raw)
  To: Andrew Morton, Dmitry Vyukov
  Cc: Vlastimil Babka, David Rientjes, Naoya Horiguchi, Michal Hocko,
	linux-mm, linux-kernel, Kirill A. Shutemov

Dmitry Vyukov reported yet another VM_BUG_ON_PAGE(PageTail(page)) bug from
isolate_lru_page().

The fisrt patch fixes the bug by filter out non migratable VMAs in
queue_pages_test_walk(). There's no point to queue pages from non-migratable
VMA even for MPOL_MF_STRICT.

The second patch replace VM_BUG_ON_PAGE() with WARN_RATELIMIT() in
isolate_lru_page(). Most attempts to isolate tail pages are not fatal, as
these pages usually are not on LRU and will not be isolated.

v2:
 - address feedback from Michal Hocko;

Kirill A. Shutemov (2):
  mempolicy: do not try to queue pages from !vma_migratable()
  mm: downgrade VM_BUG in isolate_lru_page() to warning

 mm/mempolicy.c | 14 +++++---------
 mm/vmscan.c    |  2 +-
 2 files changed, 6 insertions(+), 10 deletions(-)

-- 
2.7.0

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-02-03 14:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-02 16:20 [PATCHv2 0/2] Fix another VM_BUG_ON_PAGE(PageTail(page)) on mbind(2) Kirill A. Shutemov
2016-02-02 16:20 ` Kirill A. Shutemov
2016-02-02 16:21 ` [PATCHv2 1/2] mempolicy: do not try to queue pages from !vma_migratable() Kirill A. Shutemov
2016-02-02 16:21   ` Kirill A. Shutemov
2016-02-02 16:21 ` [PATCHv2 2/2] mm: downgrade VM_BUG in isolate_lru_page() to warning Kirill A. Shutemov
2016-02-02 16:21   ` Kirill A. Shutemov
2016-02-02 20:58   ` Andrew Morton
2016-02-02 20:58     ` Andrew Morton
2016-02-02 22:03     ` Kirill A. Shutemov
2016-02-02 22:03       ` Kirill A. Shutemov
2016-02-03 14:58   ` Michal Hocko
2016-02-03 14:58     ` Michal Hocko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.