linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fix IMA deadlock
@ 2017-05-10  6:45 Christoph Hellwig
  2017-05-10  6:45 ` [PATCH] security/ima: use fs method to read integrity data Christoph Hellwig
  0 siblings, 1 reply; 15+ messages in thread
From: Christoph Hellwig @ 2017-05-10  6:45 UTC (permalink / raw)
  To: Al Viro, Mimi Zohar; +Cc: linux-fsdevel, linux-ima-devel, linux-security-module

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.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-06-05  1:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-10  6:45 fix IMA deadlock Christoph Hellwig
2017-05-10  6:45 ` [PATCH] security/ima: use fs method to read integrity data Christoph Hellwig
2017-05-10 12:20   ` Boaz Harrosh
2017-05-10 13:24     ` Christoph Hellwig
2017-05-10 15:55       ` Boaz Harrosh
2017-05-10 21:00       ` Mimi Zohar
2017-05-11  8:16         ` Christoph Hellwig
2017-05-12 21:09           ` Mimi Zohar
2017-05-10 23:59   ` James Morris
2017-06-04  5:47     ` Christoph Hellwig
2017-06-05  0:23       ` James Morris
2017-06-05  1:57         ` Mimi Zohar
2017-05-11  0:34   ` Li Kun
2017-05-11  0:59     ` Al Viro
2017-05-11  4:03       ` Li Kun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).