lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210902000154.1096484-1-imran.f.khan@oracle.com>
Date:   Thu,  2 Sep 2021 10:01:52 +1000
From:   Imran Khan <imran.f.khan@...cle.com>
To:     vbabka@...e.cz, geert@...ux-m68k.org, akpm@...ux-foundation.org,
        ryabinin.a.a@...il.com, glider@...gle.com, andreyknvl@...il.com,
        dvyukov@...gle.com
Cc:     linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: [RFC PATCH v2 0/2] lib, stackdepot: check stackdepot handle before accessing slabs

Original cover letter
---------------------------------------
This RFC patch series addresses suggestion discussed in an earlier
RFC [1]. Since earlier RFC was about SLUB subsystem, and current
changes only involve stackdepot, I am submitting the patches in
a new thread.

The changes of this patch set are as follows:

PATCH-1: Checks validity of a stackdepot handle before proceeding
to access stackdepot slab/objects.

PATCH-2: Adds a helper in stackdepot, to allow users to print
stack entries just by specifying the stackdepot handle.   

[1] https://lore.kernel.org/lkml/2772cf56-4183-857f-d070-c54bceb5c8d9@suse.cz/
--------------------------------------

Changes in v2:
- remove WARN messages
- add declaration of stack_depot_print in stackdepot.h
- make current users, which use stack_depot_fetch + stack_trace_print 
  to print stack entries, use stack_depot_print

Imran Khan (2):
  lib, stackdepot: check stackdepot handle before accessing slabs.
  lib, stackdepot: Add helper to print stack entries.

 include/linux/stackdepot.h |  2 ++
 lib/stackdepot.c           | 20 ++++++++++++++++++++
 mm/kasan/report.c          | 15 +++------------
 mm/page_owner.c            | 13 ++++---------
 4 files changed, 29 insertions(+), 21 deletions(-)

-- 
2.30.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ