From: Shuai Liu <847807867@qq.com>
To: chenaibing@cmss.chinamobile.com
Cc: almaz.alexandrovich@paragon-software.com, ntfs3@lists.linux.dev,
syzbot+7f14bc1da1f4da6518e5@syzkaller.appspotmail.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ntfs3: avoid freeing the primary MFT record during attribute list removal
Date: Thu, 3 Dec 2026 23:45:10 +0800 [thread overview]
Message-ID: <tencent_7AE9551612F994263DDC0FB1F1891AF76B07@qq.com> (raw)
In-Reply-To: <20261114153319.658-1-chenaibing@cmss.chinamobile.com>
Hi Aibing,
I verified this patch against the syzbot report [1] on top of master
commit d06ce6f1eb5ee, using the syzbot kernel configuration
(CONFIG_KASAN=y with KASAN_INLINE, CONFIG_PROVE_LOCKING=y) and the
syzbot C reproducer running in QEMU.
Baseline (unpatched), reproduced twice:
BUG: KASAN: slab-use-after-free in ntfs_read_hdr+0xa1f/0xb70
Freed by task ...:
kfree
ni_write_inode <- inlined ni_try_remove_attr_list()
__writeback_single_inode
write_inode_now
ntfs_file_fsync
which matches the syzbot report: the free comes from the error path of
ni_try_remove_attr_list() during writeback while ntfs_readdir() walks
the root index header with ni_lock already dropped (7a5aa6c45072).
With this patch applied, two consecutive runs of the reproducer are
clean: the error path still executes (restore path reached), the
primary record buffer stays alive, and no KASAN report appears.
Thanks,
Shuai Liu
[1] https://syzkaller.appspot.com/bug?extid=7f14bc1da1f4da6518e5
prev parent reply other threads:[~2026-12-03 15:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-14 15:33 Aibing Chen
2026-12-03 15:45 ` Shuai Liu [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=tencent_7AE9551612F994263DDC0FB1F1891AF76B07@qq.com \
--to=847807867@qq.com \
--cc=almaz.alexandrovich@paragon-software.com \
--cc=chenaibing@cmss.chinamobile.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ntfs3@lists.linux.dev \
--cc=syzbot+7f14bc1da1f4da6518e5@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
all inboxes | Powered by JetHome®