--- v17
+++ v18
@@ -16,17 +16,16 @@
An example is provided, in the form of self-testing.
-Changes since v16:
-[http://www.openwall.com/lists/kernel-hardening/2018/02/12/13]
+Changes since v17:
-* introduced lkdtm test for write protection of a variable
-* added comments with rationale for use of BUG_ON() when running selftest
-* converted self-tests to kernel naming patter "test_xxx.c"
-* moved triggering of pmalloc self-testing to early phase of main.c
-* improved summaries of genalloc and vmalloc patches
-* removed example of optimization of find_vm_area because of possible bug
- in vmalloc_to_page:
-[https://www.mail-archive.com/linux-kernel at vger.kernel.org/msg1617030.html]
+* turned all BUGs into WARNs, with the exceptions of the (optional)
+ genalloc selftesting
+* added mode descriptive messages, in case of failures
+* fixed incorrect description of behavior when destroying a pool
+* added tetst case of allocating memory from protected pool
+* fixed kerneldoc description also for genalloc.h
+* added missing Kconfig dependency for pmalloc, on MMU
+* fixed location of initialization of link page struct -> vm_area
Igor Stoppa (7):
genalloc: track beginning of allocations
@@ -38,28 +37,28 @@
Documentation for Pmalloc
Documentation/core-api/index.rst | 1 +
- Documentation/core-api/pmalloc.rst | 114 +++++++
+ Documentation/core-api/pmalloc.rst | 111 ++++++
drivers/misc/lkdtm.h | 1 +
drivers/misc/lkdtm_core.c | 3 +
drivers/misc/lkdtm_perms.c | 28 ++
- include/linux/genalloc.h | 7 +-
+ include/linux/genalloc.h | 367 +++++++++++++++---
include/linux/mm_types.h | 1 +
- include/linux/pmalloc.h | 242 ++++++++++++++
+ include/linux/pmalloc.h | 242 ++++++++++++
include/linux/test_genalloc.h | 26 ++
include/linux/test_pmalloc.h | 24 ++
include/linux/vmalloc.h | 1 +
init/main.c | 4 +
lib/Kconfig | 15 +
lib/Makefile | 1 +
- lib/genalloc.c | 658 +++++++++++++++++++++++++++----------
- lib/test_genalloc.c | 410 +++++++++++++++++++++++
- mm/Kconfig | 15 +
+ lib/genalloc.c | 745 +++++++++++++++++++++++++++----------
+ lib/test_genalloc.c | 410 ++++++++++++++++++++
+ mm/Kconfig | 17 +
mm/Makefile | 2 +
- mm/pmalloc.c | 499 ++++++++++++++++++++++++++++
- mm/test_pmalloc.c | 79 +++++
+ mm/pmalloc.c | 468 +++++++++++++++++++++++
+ mm/test_pmalloc.c | 100 +++++
mm/usercopy.c | 33 ++
- mm/vmalloc.c | 5 +
- 22 files changed, 1999 insertions(+), 170 deletions(-)
+ mm/vmalloc.c | 2 +
+ 22 files changed, 2364 insertions(+), 238 deletions(-)
create mode 100644 Documentation/core-api/pmalloc.rst
create mode 100644 include/linux/pmalloc.h
create mode 100644 include/linux/test_genalloc.h