mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Elena Reshetova <elena.reshetova@intel.com>
To: ebiederm@xmission.com
Cc: serue@us.ibm.com, keescook@chromium.org, peterz@infradead.org,
	linux-kernel@vger.kernel.org,
	Elena Reshetova <elena.reshetova@intel.com>
Subject: [PATCH 0/3] creds/cgroups/ns_proxy refcount_t conversions
Date: Wed,  6 Mar 2019 13:05:46 +0200	[thread overview]
Message-ID: <20190306110549.7628-1-elena.reshetova@intel.com> (raw)

I would like to reopen ages-old discussion on these conversions now.
Eric had objections against them in past, namely on not providing enough
security for reference counters (but we still argue it is better
than overflowing atomic_t and resulting use-after-free).
However now, refcount_t has been successfully used in kernel in many places,
helped to detect bugs and mistakes in logic of refcounters.
We have converted most of core kernel reference counters by now and these
3 are pretty core ones, so it would be really great to have them covered
also.

The patches are fully independent and can be cherry-picked and
discussed separately. More information about each conversion in each patch
separately.

Elena Reshetova (3):
  nsproxy: convert nsproxy.count to refcount_t
  groups: convert group_info.usage to refcount_t
  creds: convert cred.usage to refcount_t

 include/linux/cred.h    | 15 +++++++-------
 include/linux/nsproxy.h |  6 +++---
 kernel/cred.c           | 44 ++++++++++++++++++++---------------------
 kernel/groups.c         |  2 +-
 kernel/nsproxy.c        |  6 +++---
 net/sunrpc/auth.c       |  2 +-
 6 files changed, 38 insertions(+), 37 deletions(-)

-- 
2.17.1


             reply	other threads:[~2019-03-06 11:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-06 11:05 Elena Reshetova [this message]
2019-03-06 11:05 ` [PATCH 1/3] nsproxy: convert nsproxy.count to refcount_t Elena Reshetova
2019-03-06 11:05 ` [PATCH 2/3] groups: convert group_info.usage " Elena Reshetova
2019-03-06 11:05 ` [PATCH 3/3] creds: convert cred.usage " Elena Reshetova
2019-03-07 17:43 ` [PATCH 0/3] creds/cgroups/ns_proxy refcount_t conversions Kees Cook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190306110549.7628-1-elena.reshetova@intel.com \
    --to=elena.reshetova@intel.com \
    --cc=ebiederm@xmission.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=serue@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®