From: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
To: Dmitry Vyukov <dvyukov@google.com>, Lizhi Xu <lizhi.xu@windriver.com>
Cc: <linux-kernel@vger.kernel.org>, <ntfs3@lists.linux.dev>,
<linux-fsdevel@vger.kernel.org>,
<syzbot+a426cde6dee8c2884b0b@syzkaller.appspotmail.com>,
<syzkaller-bugs@googlegroups.com>,
Kees Cook <keescook@google.com>
Subject: Re: [syzbot] [ntfs3?] KASAN: slab-out-of-bounds Read in mi_enum_attr
Date: Thu, 11 Jul 2024 11:27:30 +0300 [thread overview]
Message-ID: <216de662-023a-4a94-8b07-d2affb72aeb5@paragon-software.com> (raw)
In-Reply-To: <CACT4Y+YrjD=3Tn6o4FJFefDYsOCbUFWahPUp87PXXcHQsr0xXg@mail.gmail.com>
On 08.07.2024 09:54, Dmitry Vyukov wrote:
> On Fri, 5 Jul 2024 at 15:52, Lizhi Xu <lizhi.xu@windriver.com> wrote:
>> On Thu, 4 Jul 2024 15:44:02 +0200, Dmitry Vyukov wrote:
>>>> index 53629b1f65e9..a435df98c2b1 100644
>>>> --- a/fs/ntfs3/record.c
>>>> +++ b/fs/ntfs3/record.c
>>>> @@ -243,14 +243,14 @@ struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr)
>>>> off += asize;
>>>> }
>>>>
>>>> - asize = le32_to_cpu(attr->size);
>>>> -
>>>> /* Can we use the first field (attr->type). */
>>>> if (off + 8 > used) {
>>>> static_assert(ALIGN(sizeof(enum ATTR_TYPE), 8) == 8);
>>>> return NULL;
>>>> }
>>>>
>>>> + asize = le32_to_cpu(attr->size);
>>>> +
>>>> if (attr->type == ATTR_END) {
>>>> /* End of enumeration. */
>>>> return NULL;
>>> Hi Lizhi,
>>>
>>> I don't see this fix mailed as a patch. Do you plan to submit it officially?
>> Hi Dmitry Vyukov,
>> Here: https://lore.kernel.org/all/20240202033334.1784409-1-lizhi.xu@windriver.com
> I don't see this patch merged upstream. Was it lost? Perhaps it needs
> to be resent.
Hi, Lizhi, Dmitry, This patch is indeed not present in either the
upstream or our repository. I will retest it and figure out why I didn't
add it. Around the same time, I was making changes to mi_enum_attr, so I
might have mixed something up. Thanks for your attention! Regards,
Konstantin
next prev parent reply other threads:[~2024-07-11 8:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CACT4Y+ZWjUE6-q1YF=ZaPjKgGZBw4JLD1v2DphSgCAVf1RzE8g@mail.gmail.com>
2024-07-05 13:52 ` [syzbot] [ntfs3?] KASAN: slab-out-of-bounds Read in mi_enum_attr Lizhi Xu
2024-07-08 6:54 ` Dmitry Vyukov
2024-07-11 8:27 ` Konstantin Komarov [this message]
2024-08-20 10:53 ` lei lu
2024-02-01 15:17 syzbot
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=216de662-023a-4a94-8b07-d2affb72aeb5@paragon-software.com \
--to=almaz.alexandrovich@paragon-software.com \
--cc=dvyukov@google.com \
--cc=keescook@google.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizhi.xu@windriver.com \
--cc=ntfs3@lists.linux.dev \
--cc=syzbot+a426cde6dee8c2884b0b@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