[backport v3.12 PATCH 0/3] Avoid out of bounds access in isolate_migratepages_range

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

 



The backport is to avoid the out of bounds access detected by the
KASan kernel. The details can be found:
mm: compaction: buffer overflow in isolate_migratepages_range
https://lkml.org/lkml/2014/8/9/162

The first patch, pass VM_BUG_ON() reason to dump_page(), was
backported to avoid the kernel building errors which is lacking of
VM_BUG_ON_PAGE macro definition.

The second patch, redesign ballooned pages management, is the patch to
fix the bug and other 3 related bugs. 

The third patch, fix deflation when compaction is disabled, is the fix
to avoid the unnecessary check if the CONFIG_BALLOON_COMPACTION is not
enabled.

Dave Hansen (1):
  mm: pass VM_BUG_ON() reason to dump_page()

Konstantin Khlebnikov (2):
  mm/balloon_compaction: redesign ballooned pages management
  mm/balloon_compaction: fix deflation when compaction is disabled

 drivers/virtio/virtio_balloon.c    | 15 +++---
 include/linux/balloon_compaction.h | 97 ++++++++++----------------------------
 include/linux/migrate.h            | 11 +----
 include/linux/mm.h                 | 19 ++++++++
 include/linux/mmdebug.h            |  9 ++++
 mm/balloon_compaction.c            | 28 +++++------
 mm/compaction.c                    |  2 +-
 mm/migrate.c                       | 21 +++------
 8 files changed, 81 insertions(+), 121 deletions(-)

-- 
2.0.0

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]