Re: [RFC] pgflags_t

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

 



On 06.10.21 17:46, Al Viro wrote:
On Wed, Oct 06, 2021 at 05:32:39PM +0200, David Hildenbrand wrote:

It feels to me like using __bitwise for access checks and then still
modifying the __bitwise fields randomly via a backdoor. But sure, if it
works, I'll be happy if we can use that.

__bitwise == "can't do anything other than bitwise operations without
an explicit force-cast".  All there is to it.  Hell, the very first
use had been for things like __le32 et.al., where the primitives
very much do non-bitwise accesses.  They are known to be safe (==
do the same thing regardless of the host endianness).  Internally
they contain force-casts, precisely so that the caller wouldn't
need to.

Thanks for clarifying that :)

--
Thanks,

David / dhildenb




[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