Linux Security Modules development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: linux-security-module@vger.kernel.org
Subject: Re: [PATCH] ima: annotate iint->mutex per filesystem type and stacking depth
Date: Thu, 03 Dec 2026 12:34:16 +0000	[thread overview]
Message-ID: <sashiko-outbox-247767@kernel.org> (raw)
In-Reply-To: <4281b2df-1f40-4c78-ae36-c5f1b05df7ee@mail.kernel.org>

> From: Krystian Kaniewski <krystianmkaniewski@gmail.com>
> 
> ima_iint_lockdep_annotate() currently assigns a global lockdep class
> ima_iint_mutex_key[depth] indexed solely by inode->i_sb->s_stack_depth.
> Consequently, all non-stacked filesystems (s_stack_depth == 0) share the
> same lockdep class for iint->mutex, allowing lockdep to falsely bridge lock
> dependencies across unrelated filesystems.
> 
> With a custom IMA FILE_CHECK policy measuring files across filesystems,
> lockdep observes a false circular dependency cycle between overlayfs, ext4,
> and sysfs: overlayfs directory creation links ovl_i_mutex_dir_key to ext4
> sb_writers, opening an ext4 file with O_TRUNC links sb_writers to
> ima_iint_mutex_key[0] in process_measurement(), opening /sys/power/resume
> with O_RDWR links the same ima_iint_mutex_key[0] to kernfs of->mutex via
> integrity_kernel_read(), and writing an overlayfs path to /sys/power/resume
> [ ... ]
> Assisted-by: Gemini:gemini-4-hydrogen Gemini:gemini-3.8-flash syzbot
> Reported-by: syzbot+da1d15f707a556f6e48c@syzkaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=da1d15f707a556f6e48c
> Link: https://syzkaller.appspot.com/ai_job?id=f0feaef1-2d84-47cc-908f-143543aa7da9
> Signed-off-by: Krystian Kaniewski <krystianmkaniewski@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/4281b2df-1f40-4c78-ae36-c5f1b05df7ee@mail.kernel.org?part=1

      reply	other threads:[~2026-12-03 12:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 12:19 [PATCH] ima: annotate iint->mutex per filesystem type and stacking depth syzbot
2026-12-03 12:34 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-247767@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox