From: Miklos Szeredi <miklos@szeredi.hu>
To: Edward Adam Davis <eadavis@qq.com>
Cc: joannelkoong@gmail.com, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org,
syzbot+2d215d165f9354b9c4ea@syzkaller.appspotmail.com,
syzkaller-bugs@googlegroups.com
Subject: Re: [PATCH V2] fuse: Block access to folio overlimit
Date: Wed, 27 Aug 2025 14:27:58 +0200 [thread overview]
Message-ID: <CAJfpegvk_KT7cnGDYbfBwPjQ68a9MkGrOa0Sva6fqYe3o_68cA@mail.gmail.com> (raw)
In-Reply-To: <tencent_35D325E7BA1BBB7B33559EE41B034B1A1B08@qq.com>
On Wed, 27 Aug 2025 at 03:46, Edward Adam Davis <eadavis@qq.com> wrote:
>
> syz reported a slab-out-of-bounds Write in fuse_dev_do_write.
>
> When the number of bytes to be retrieved is truncated to the upper limit
> by fc->max_pages and there is an offset, the oob is triggered.
>
> Add a loop termination condition to prevent overruns.
Applied, thanks.
Miklos
prev parent reply other threads:[~2025-08-27 12:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-22 22:57 [syzbot] [fuse?] KASAN: slab-out-of-bounds Write in fuse_dev_do_write syzbot
2025-08-23 0:53 ` Joanne Koong
2025-08-23 0:55 ` syzbot
2025-08-23 1:13 ` Joanne Koong
2025-08-23 1:15 ` syzbot
2025-08-23 1:17 ` [PATCH] fuse: Block access to folio overlimit Edward Adam Davis
2025-08-25 18:02 ` Joanne Koong
2025-08-27 1:45 ` [PATCH V2] " Edward Adam Davis
2025-08-27 12:27 ` Miklos Szeredi [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=CAJfpegvk_KT7cnGDYbfBwPjQ68a9MkGrOa0Sva6fqYe3o_68cA@mail.gmail.com \
--to=miklos@szeredi.hu \
--cc=eadavis@qq.com \
--cc=joannelkoong@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+2d215d165f9354b9c4ea@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.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;
as well as URLs for NNTP newsgroup(s).