ima: annotate iint mutex to avoid lockdep false positive warnings
authorAmir Goldstein <amir73il@gmail.com>
Thu, 5 Oct 2023 11:15:58 +0000 (14:15 +0300)
committerMimi Zohar <zohar@linux.ibm.com>
Tue, 31 Oct 2023 12:20:09 +0000 (08:20 -0400)
commite044374a8a0a99e46f4e6d6751d3042b6d9cc12e
tree122d29262e3aa2213cf8536aa9809c0f4239c29e
parent94f6f0550c625fab1f373bb86a6669b45e9748b3
ima: annotate iint mutex to avoid lockdep false positive warnings

It is not clear that IMA should be nested at all, but as long is it
measures files both on overlayfs and on underlying fs, we need to
annotate the iint mutex to avoid lockdep false positives related to
IMA + overlayfs, same as overlayfs annotates the inode mutex.

Reported-and-tested-by: syzbot+b42fe626038981fb7bfa@syzkaller.appspotmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/iint.c