public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: "Miguel García" <miguelgarciaroman8@gmail.com>
Cc: stable@vger.kernel.org, skhan@linuxfoundation.org,
	Konstantin Komarov <almaz.alexandrovich@paragon-software.com>,
	syzbot+010986becd65dbf9464b@syzkaller.appspotmail.com
Subject: Re: [PATCH 5.15.y] fs/ntfs3: Fix shift-out-of-bounds in ntfs_fill_super
Date: Mon, 10 Mar 2025 17:21:54 +0100	[thread overview]
Message-ID: <2025031032-bamboo-unsent-00fa@gregkh> (raw)
In-Reply-To: <20250309145636.633501-1-miguelgarciaroman8@gmail.com>

On Sun, Mar 09, 2025 at 03:56:36PM +0100, Miguel García wrote:
> From: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
> 
> commit 91a4b1ee78cb ("fs/ntfs3: Fix shift-out-of-bounds in ntfs_fill_super")
> 
> This patch is a backport and fixes an UBSAN warning about shift-out-of-bounds in
> ntfs_fill_super() function of the NTFS3 driver. The original code
> incorrectly calculated MFT record size, causing undefined behavior
> when performing bit shifts with values that exceed type limits.
> 
> The fix has been verified by executing the syzkaller reproducer test case.
> After applying this patch, the system successfully handles the test case
> without kernel panic or UBSAN warnings.
> 
> Bug: https://syzkaller.appspot.com/bug?extid=010986becd65dbf9464b
> Reported-by: syzbot+010986becd65dbf9464b@syzkaller.appspotmail.com
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
> Signed-off-by: Miguel Garcia Roman <miguelgarciaroman8@gmail.com>
> (cherry picked from commit 91a4b1ee78cb100b19b70f077c247f211110348f)
> ---
>  fs/ntfs3/ntfs_fs.h |  2 ++
>  fs/ntfs3/super.c   | 63 +++++++++++++++++++++++++++++++++++-----------
>  2 files changed, 50 insertions(+), 15 deletions(-)

We need a 6.1.y version of this first.  Please submit that first and
then resend this for older kernels.

thanks,

greg k-h

  parent reply	other threads:[~2025-03-10 16:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-09 14:56 [PATCH 5.15.y] fs/ntfs3: Fix shift-out-of-bounds in ntfs_fill_super Miguel García
2025-03-10  2:14 ` Sasha Levin
2025-03-10  8:48   ` Miguel García
2025-03-10 16:20     ` Greg KH
2025-03-13  9:08     ` Sasha Levin
2025-03-10 16:21 ` Greg KH [this message]
2025-03-10 17:19   ` [PATCH 6.1.y] " Miguel García
2025-03-13  9:11     ` Sasha Levin
  -- strict thread matches above, loose matches on Subject: below --
2025-03-09 14:54 [PATCH 5.15.y] " Miguel García
2025-03-10  2:14 ` Sasha Levin

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=2025031032-bamboo-unsent-00fa@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=almaz.alexandrovich@paragon-software.com \
    --cc=miguelgarciaroman8@gmail.com \
    --cc=skhan@linuxfoundation.org \
    --cc=stable@vger.kernel.org \
    --cc=syzbot+010986becd65dbf9464b@syzkaller.appspotmail.com \
    /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