Re: [RFC] a possible way of reducing the PITA of ->d_name audits

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

 



On Mon, 08 Sep 2025, Al Viro wrote:
> That way xfs hits will be down to that claim_stability() and the obscenity in
> trace.h - until the users of the latter get wrapped into something that would
> take snapshots and pass those instead of messing with ->d_name.  Considering
> the fun quoted above, not having to repeat that digging is something I'd
> count as a win...
> 

What would you think of providing an accessor function and insisting
everyone use it - and have some sort of lockdep_assert_held() to that
function so that developers who test their code will see these problem?

Then a simple grep can find any unapproved uses.

NeilBrown





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

  Powered by Linux