From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796301257; b=4SEgFN50IJHtsKfk+6oo1TsXi1aNdBUsAyfKToTKy6ZRS2+0H4YpEybBeGyVrTItT937 waWPG1Tag6btL6RynnGZOa3A4Bvjv3FC6TjAtf0Ab2z07ho9MfnOFMR0wiaFQvv1HZ1lR vg7G/x4nAqcZ0oWW7KcPZCZNKDuT326+Jc5DBM7PFtqJ1vesdOV04XDth26Y08EgLFsNP CjszA9D1/NqhvVCvuAyk+py0OYy653h1AjbqgBFCmM3eb+iyX1WM5Gl6cI9y0JrWnONNt DP8rAmcLByl68YodIhzFGvayPitA6tr4gIBi3z4LqbbTCKJNjJqt1lppIgKiR2XAbXA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796301257; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=G7fyCHIauU9UbSOfMPmaQnUA5l/bhbVNHFaQ0Ep/Hy4=; b=mMKbdmNsIUK5reY9eb59UHFFrSR8EwnnP2D6Je20UbDhM8s5GlFv7urLbUQ2HwFZ8MTD 33FF8Yx2KkWDtXKyksy8geW2xcsORhzpuI78iV2FlAthxfnN6/BbjbRKJBpYX0M+ICZTP 02zE9q5lwCCGoPE5U6VgGOhJv9H2CsGZy6MKdsLHrjOUIS/NUv7hLtq4bJAmnud9b0kmB /YXwtawte4x5p+sFUa21N7ctDVvLUvBN3BrtR8pIuRuAEancz512HXhtQ3F/G93BqXvJm Xj3tOOLHlQyroDXQ9xXVcSJxU2vfYlJki4R6OjcRgTwhy/2YJlfEzG3r1I9rDEM7T6Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="Q/Wn38MM"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83A06606A32D for ; Thu, 3 Dec 2026 12:34:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Q/Wn38MM Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A27D1F000C1 for ; Thu, 3 Dec 2026 12:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796301257; bh=G7fyCHIauU9UbSOfMPmaQnUA5l/bhbVNHFaQ0Ep/Hy4=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=Q/Wn38MMFzSYghBBKJUlL/zdE1gySGcO84Er3ZXbadI9GywGS+JlryoBk94bxbwHK 3nA2Y3K88WwtZMuy666caKwNUs2yMavAW7MfkRMetUZ4Ql+ira21LSGdIJSQKDE4lZ KNuP3psaAKNCAJcoCzwtkUtZYuZTX3w/bZhaOy7S6Ban7D9j8u+nd89kUUXE3PC6it o0H+l26onMeEtx3HfHM29tjJKUEk+vWTMS8JIkGc6evF0+e14hc7kHYwXnb5oC2ieb naYtiMFQ1nK5RJ6VSugxc/A9oxC6jC/+yE8lRYcGQ4MByVVPUGrGCcJIq7xWi0/pkK bWKGGJfEOfVjw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] ima: annotate iint->mutex per filesystem type and stacking depth Reply-To: sashiko-reviews@lists.linux.dev To: linux-security-module@vger.kernel.org In-Reply-To: <4281b2df-1f40-4c78-ae36-c5f1b05df7ee@mail.kernel.org> References: <4281b2df-1f40-4c78-ae36-c5f1b05df7ee@mail.kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 12:34:16 +0000 X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Krystian Kaniewski >=20 > 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 =3D=3D 0) share = the > same lockdep class for iint->mutex, allowing lockdep to falsely bridge lo= ck > dependencies across unrelated filesystems. >=20 > With a custom IMA FILE_CHECK policy measuring files across filesystems, > lockdep observes a false circular dependency cycle between overlayfs, ext= 4, > 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/resu= me > [ ... ] > 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=3Dda1d15f707a556f6e48c > Link: https://syzkaller.appspot.com/ai_job?id=3Df0feaef1-2d84-47cc-908f-1= 43543aa7da9 > Signed-off-by: Krystian Kaniewski Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/4281b2df-1f40-4c78-= ae36-c5f1b05df7ee@mail.kernel.org?part=3D1