fix IMA deadlock

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

 



IMA currently tries to read the file to calculate a hash from inside
i_rwsem.  On file system like XFS that also take i_rwsem for reads this
deadlocks.

This patch instead adds a new ->integrity_read method for IMA that can
be used to read data with i_rwsem held.  For XFS it has an implementation
that skips the locking, other file systems can just set it to the default
implementation.

As a side effect this also gets rid of playing with the address limit.



[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