lkml.org 
[lkml]   [2020]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 0/3] Convert nsproxy, groups, and creds to refcount_t
    From
    Date
    On 2020/6/13 2:34, Kees Cook wrote:
    > 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(-)
    >

    Should mm->mm_users also be replaced by refcount_t?

    In addition, is it better to change all variables that use
    atomic_dec_and_test to control the release process to refconut_t?

    Thanks
    Xiaoming Ni

    \
     
     \ /
      Last update: 2020-06-15 04:11    [W:4.481 / U:0.256 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site