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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri,  3 Mar 2017 11:15:05 +0200
From:   Elena Reshetova <elena.reshetova@...el.com>
To:     linux-kernel@...r.kernel.org
Cc:     ceph-devel@...r.kernel.org, peterz@...radead.org,
        gregkh@...uxfoundation.org, zyan@...hat.com, sage@...hat.com,
        idryomov@...il.com, Elena Reshetova <elena.reshetova@...el.com>
Subject: [PATCH 0/2] fs, ceph filesystem refcount conversions

Now when new refcount_t type and API are finally merged
(see include/linux/refcount.h), the following
patches convert various refcounters in the ceph filesystem from atomic_t
to refcount_t. By doing this we prevent intentional or accidental
underflows or overflows that can led to use-after-free vulnerabilities.

The below patches are fully independent and can be cherry-picked separately.
Since we convert all kernel subsystems in the same fashion, resulting
in about 300 patches, we have to group them for sending at least in some
fashion to be manageable. Please excuse the long cc list.

Not runtime tested, since I am not sure how to do it for ceph.
However changes are pretty trivial in this case.

Elena Reshetova (2):
  fs, ceph: convert ceph_mds_session.s_ref from atomic_t to refcount_t
  fs, ceph: convert ceph_cap_snap.nref from atomic_t to refcount_t

 fs/ceph/caps.c       |  4 ++--
 fs/ceph/mds_client.c | 18 +++++++++---------
 fs/ceph/mds_client.h |  5 +++--
 fs/ceph/snap.c       |  2 +-
 fs/ceph/super.h      |  5 +++--
 5 files changed, 18 insertions(+), 16 deletions(-)

-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ