linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] KASAN double-free detection
@ 2016-05-24 18:27 Kuthonuzo Luruo
  0 siblings, 0 replies; only message in thread
From: Kuthonuzo Luruo @ 2016-05-24 18:27 UTC (permalink / raw)
  To: dvyukov, aryabinin, glider, cl, penberg, rientjes, iamjoonsoo.kim, akpm
  Cc: kasan-dev, linux-kernel, linux-mm, ynorov, kuthonuzo.luruo

Hello Alexander/Andrey/Dmitry/Reviewers,

Submitting v3 for your review/consideration. First patch provides more
reliable double-free detection for KASAN. Second patch provides new
double-free tests for 'test_kasan'.

Major changes from v2:
o object lock/unlock simplified to use generic bit spinlock apis instead of
  custom CAS loop. A 'safety valve' is provided for lock in case an
  out-of-bounds write flips lock bit.

o test_kasan concurrent double-free test simplified to use
  on_each_cpu_mask() instead of custom threads.
 
v2 link: https://lkml.org/lkml/2016/5/6/210

Patchset is based on linux-next 'next-20160524'.

Thanks,

Kuthonuzo

Kuthonuzo Luruo (2):
  mm, kasan: improve double-free detection
  kasan: add double-free tests

 include/linux/kasan.h |    7 +++-
 lib/test_kasan.c      |   47 ++++++++++++++++++++++++++
 mm/kasan/kasan.c      |   88 ++++++++++++++++++++++++++++++++++---------------
 mm/kasan/kasan.h      |   44 +++++++++++++++++++++++-
 mm/kasan/quarantine.c |    2 +
 mm/kasan/report.c     |   28 ++++++++++++++--
 mm/slab.c             |    3 +-
 mm/slub.c             |    2 +-
 8 files changed, 185 insertions(+), 36 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-24 18:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-24 18:27 [PATCH v3 0/2] KASAN double-free detection Kuthonuzo Luruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox