From: paeyz <iwasbaeyz@gmail.com>
To: Russell King <linux@armlinux.org.uk>, gregkh@linuxfoundation.org
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@kernel.org, Kees Cook <kees@kernel.org>,
Al Viro <viro@zeniv.linux.org.uk>
Subject: Re: [PATCH] adfs: validate nzones in adfs_read_map()
Date: Sat, 21 Mar 2026 00:21:31 +0900 [thread overview]
Message-ID: <20260320152131.34551-1-iwasbaeyz@gmail.com> (raw)
In-Reply-To: <2026032021-renewable-control-9c81@gregkh>
From: Bae Yeonju <iwasbaeyz@gmail.com>
Hi,
I tested moving the nzones validation to adfs_validate_bblk() on
6.12.36 with KASAN enabled.
With this change, a crafted image with nzones=0 is rejected during
validation:
ADFS-fs (loop0): error: can't find an ADFS filesystem on dev loop0.
mount() returns -EINVAL, and no crash or KASAN report is observed.
So the issue can be prevented by validating nzones earlier in the
validation path.
Tested-by: Bae Yeonju <iwasbaeyz@gmail.com>
next prev parent reply other threads:[~2026-03-20 15:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-20 14:23 [PATCH] adfs: validate nzones in adfs_read_map() Greg Kroah-Hartman
2026-03-20 14:37 ` Russell King (Oracle)
2026-03-20 15:05 ` Greg Kroah-Hartman
2026-03-20 15:21 ` paeyz [this message]
2026-03-20 15:40 ` Greg KH
2026-03-20 15:52 ` [PATCH v2] adfs: validate nzones in adfs_validate_bblk() paeyz
2026-03-20 16:04 ` Greg KH
2026-03-20 16:08 ` Russell King (Oracle)
2026-03-20 16:11 ` Greg KH
2026-03-21 4:45 ` [PATCH v3] " paeyz
2026-03-20 16:05 ` [PATCH] adfs: validate nzones in adfs_read_map() Russell King (Oracle)
2026-03-20 16:02 ` Russell King (Oracle)
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=20260320152131.34551-1-iwasbaeyz@gmail.com \
--to=iwasbaeyz@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=kees@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=stable@kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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