linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] creds/cgroups/ns_proxy refcount_t conversions
@ 2019-03-06 11:05 Elena Reshetova
  2019-03-06 11:05 ` [PATCH 1/3] nsproxy: convert nsproxy.count to refcount_t Elena Reshetova
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Elena Reshetova @ 2019-03-06 11:05 UTC (permalink / raw)
  To: ebiederm; +Cc: serue, keescook, peterz, linux-kernel, Elena Reshetova

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


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH 0/3] Convert nsproxy, groups, and creds to refcount_t
@ 2020-06-12 18:34 Kees Cook
  2020-06-12 18:34 ` [PATCH 2/3] groups: convert group_info.usage " Kees Cook
  0 siblings, 1 reply; 6+ messages in thread
From: Kees Cook @ 2020-06-12 18:34 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: Kees Cook, Xiaoming Ni, David Windsor, Hans Liljestrand,
	Elena Reshetova, Paul Moore, edumazet, paulmck, David Howells,
	shakeelb, James Morris, alex.huangjianhui, dylix.dailei,
	chenzefeng2, linux-kernel

This series was never applied[1], and was recently pointed out as
missing[2]. If someone has a tree for this, please take it. Otherwise,
please Ack and I'll send it to Linus.

Thanks!

-Kees

[1] https://lore.kernel.org/lkml/20190306110549.7628-1-elena.reshetova@intel.com/
[2] https://lore.kernel.org/lkml/1591957695-118312-1-git-send-email-nixiaoming@huawei.com/

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 |  7 +++----
 kernel/cred.c           | 44 ++++++++++++++++++++---------------------
 kernel/groups.c         |  2 +-
 kernel/nsproxy.c        |  6 +++---
 net/sunrpc/auth.c       |  2 +-
 6 files changed, 38 insertions(+), 38 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2020-06-12 18:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-06 11:05 [PATCH 0/3] creds/cgroups/ns_proxy refcount_t conversions Elena Reshetova
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
2020-06-12 18:34 [PATCH 0/3] Convert nsproxy, groups, and creds to refcount_t Kees Cook
2020-06-12 18:34 ` [PATCH 2/3] groups: convert group_info.usage " Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).