From: Dave Kleikamp <dave.kleikamp@oracle.com>
To: Jori Koolstra <jkoolstra@xs4all.nl>,
brauner@kernel.org, gabriel@krisman.be, jlayton@kernel.org,
neil@brown.name, viro@zeniv.linux.org.uk
Cc: jfs-discussion@lists.sourceforge.net,
linux-kernel@vger.kernel.org,
syzbot+cd7590567cc388f064f3@syzkaller.appspotmail.com,
skhan@linuxfoundation.org
Subject: Re: [PATCH] jfs: dtInsertEntry can result in buffer overflow on corrupted jfs filesystems
Date: Mon, 1 Dec 2025 16:35:49 -0600 [thread overview]
Message-ID: <40db68fc-a5a3-4bb2-abc5-b93ee2429602@oracle.com> (raw)
In-Reply-To: <918405804.66343.1764595242232@kpc.webmail.kpnmail.nl>
On 12/1/25 7:20AM, Jori Koolstra wrote:
> Below syzbot bug has not been fixed yet. If anyone has time I would
> greatly appreciate a review of my patch, so it can be moved along.
> It has been sitting for quite a few weeks.
I've been busy with some other work as well as being out on vacation
lately. I have several patches to review, but have not forgotten this.
I'll try to get to it later this week.
Thanks,
Shaggy
>
> Thanks,
> Jori.
>
>> Op 29-10-2025 00:23 CET schreef Jori Koolstra <jkoolstra@xs4all.nl>:
>>
>>
>> Syzbot reported a general protection fault in inode_set_ctime_current.
>> This resulted from the following circumstances: when creating a new file
>> via dtInsert, BT_GETSEARCH may yield a pointer to a dtroot which is
>> embedded directly in the jfs_inode_info. When finally dtInsertEntry is
>> called, if the freelist field or any next field of a slot of the dtpage
>> is corrupted, this may result in memory corruption of the parent
>> directory inode.
>>
>> In this case the i_sb field was corrupted, which raised the gpf when
>> in inode_set_ctime_current i_sb was dereferenced to access s_time_gran.
>>
>> I tested the patch using the syzbot reproducer and doing some basic
>> filesystem operations on a fresh jfs fs, such as "cp -r /usr/include/
>> /mnt/jfs/" and "rm -r /mnt/jfs/include/n*"
>>
>> Signed-off-by: Jori Koolstra <jkoolstra@xs4all.nl>
>> Reported-by: syzbot+cd7590567cc388f064f3@syzkaller.appspotmail.com
>> Closes: https://syzbot.org/bug?extid=cd7590567cc388f064f3
next prev parent reply other threads:[~2025-12-01 22:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-28 23:23 [PATCH] " Jori Koolstra
2025-11-18 16:46 ` Jori Koolstra
2025-12-01 13:20 ` [PATCH] jfs: " Jori Koolstra
2025-12-01 22:35 ` Dave Kleikamp [this message]
2025-12-16 16:04 ` Jori Koolstra
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=40db68fc-a5a3-4bb2-abc5-b93ee2429602@oracle.com \
--to=dave.kleikamp@oracle.com \
--cc=brauner@kernel.org \
--cc=gabriel@krisman.be \
--cc=jfs-discussion@lists.sourceforge.net \
--cc=jkoolstra@xs4all.nl \
--cc=jlayton@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neil@brown.name \
--cc=skhan@linuxfoundation.org \
--cc=syzbot+cd7590567cc388f064f3@syzkaller.appspotmail.com \
--cc=viro@zeniv.linux.org.uk \
/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®