Re: [PATCH] fs: namespace: convert mnt_namespace.count from atomic_t to refcount_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 29, 2018 at 01:58:40AM +0000, Yang Xiao wrote:
> Hello, see commit 387ad9674b00 ("kernel: convert cgroup_namespace.count 
> from atomic_t to refcount_t") for detail.

That would be
    refcount_t type and corresponding API should be
    used instead of atomic_t when the variable is used as
    a reference counter. This allows to avoid accidental
    refcounter overflows that might lead to use-after-free
    situations.

AFAICS, that is the text you'd put into the original posting.  Verbatim.

Which additional information have I failed to notice in the commit
you'd mentioned?



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux