All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] fs, ceph filesystem refcount conversions
@ 2017-03-03  9:15 Elena Reshetova
  2017-03-03  9:15 ` [PATCH 1/2] fs, ceph: convert ceph_mds_session.s_ref from atomic_t to refcount_t Elena Reshetova
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Elena Reshetova @ 2017-03-03  9:15 UTC (permalink / raw)
  To: linux-kernel
  Cc: ceph-devel, peterz, gregkh, zyan, sage, idryomov, Elena Reshetova

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-04-20 10:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-03  9:15 [PATCH 0/2] fs, ceph filesystem refcount conversions Elena Reshetova
2017-03-03  9:15 ` [PATCH 1/2] fs, ceph: convert ceph_mds_session.s_ref from atomic_t to refcount_t Elena Reshetova
2017-03-03  9:15 ` [PATCH 2/2] fs, ceph: convert ceph_cap_snap.nref " Elena Reshetova
2017-03-03 16:39 ` [PATCH 0/2] fs, ceph filesystem refcount conversions Ilya Dryomov
2017-04-20  7:40   ` Reshetova, Elena
2017-04-20  9:40     ` Ilya Dryomov
2017-04-20 10:28       ` Reshetova, Elena

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.