From: Christian Brauner <brauner@kernel.org>
To: Ye Bin <yebin@huaweicloud.com>
Cc: Christian Brauner <brauner@kernel.org>,
viro@zeniv.linux.org.uk, jack@suse.cz,
linux-fsdevel@vger.kernel.org, yebin10@huawei.com
Subject: Re: [PATCH RFC] fs/buffer: fix use-after-free when call bh_read() helper
Date: Fri, 15 Aug 2025 16:29:46 +0200 [thread overview]
Message-ID: <20250815-nieselregen-anpacken-4d4cbfce2d2e@brauner> (raw)
In-Reply-To: <20250811141830.343774-1-yebin@huaweicloud.com>
On Mon, 11 Aug 2025 22:18:30 +0800, Ye Bin wrote:
> There's issue as follows:
> BUG: KASAN: stack-out-of-bounds in end_buffer_read_sync+0xe3/0x110
> Read of size 8 at addr ffffc9000168f7f8 by task swapper/3/0
> CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.16.0-862.14.0.6.x86_64
> Hardware name: QEMU Standard PC (i440FX + PIIX, 1996)
> Call Trace:
> <IRQ>
> dump_stack_lvl+0x55/0x70
> print_address_description.constprop.0+0x2c/0x390
> print_report+0xb4/0x270
> kasan_report+0xb8/0xf0
> end_buffer_read_sync+0xe3/0x110
> end_bio_bh_io_sync+0x56/0x80
> blk_update_request+0x30a/0x720
> scsi_end_request+0x51/0x2b0
> scsi_io_completion+0xe3/0x480
> ? scsi_device_unbusy+0x11e/0x160
> blk_complete_reqs+0x7b/0x90
> handle_softirqs+0xef/0x370
> irq_exit_rcu+0xa5/0xd0
> sysvec_apic_timer_interrupt+0x6e/0x90
> </IRQ>
>
> [...]
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes
[1/1] fs/buffer: fix use-after-free when call bh_read() helper
https://git.kernel.org/vfs/vfs/c/fb6d0f63f46d
prev parent reply other threads:[~2025-08-15 14:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-11 14:18 [PATCH RFC] fs/buffer: fix use-after-free when call bh_read() helper Ye Bin
2025-08-11 15:21 ` Matthew Wilcox
2025-08-15 14:29 ` Christian Brauner [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=20250815-nieselregen-anpacken-4d4cbfce2d2e@brauner \
--to=brauner@kernel.org \
--cc=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
--cc=yebin10@huawei.com \
--cc=yebin@huaweicloud.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