From: Pavel Skripkin <paskripkin@gmail.com>
To: Dongliang Mu <mudongliangabcd@gmail.com>,
Ryusuke Konishi <konishi.ryusuke@gmail.com>
Cc: "Andrew Morton" <akpm@linux-foundation.org>,
linux-nilfs <linux-nilfs@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
"Nanyong Sun" <sunnanyong@huawei.com>, 慕冬亮 <dzm91@hust.edu.cn>
Subject: Re: Fw:Re: [PATCH] fs: nilfs2: fix memory leak in nilfs sysfs create device group
Date: Sat, 12 Mar 2022 17:20:28 +0300 [thread overview]
Message-ID: <dac7104a-21ac-24f4-6132-e51960fa0b7e@gmail.com> (raw)
In-Reply-To: <CAD-N9QWrBLygN24EC6QLRFF6uf7=PiTRdA4suKqEXJ7tk9aocA@mail.gmail.com>
Hi Dongliang,
On 3/9/22 11:30, Dongliang Mu wrote:
>> Now I am checking the log and trying to find error injection in the
>> log file, as said by Pavel.
>
> Attached is the report and log file.
>
> @Pavel Skripkin I don't find any useful error injection in the log file.
>
> In case I made some mistakes, I will clean up my local crash reports,
> update to the latest upstream kernel and restart the syzkaller. Let's
> see if the crash still occurs.
The execution path is clear from the logs. Quick grep for nilfs shows
these lines
[ 886.701044][T25972] NILFS (loop2): broken superblock, retrying with
spare superblock (blocksize = 1024)
[ 886.703251][T25972] NILFS (loop2): broken superblock, retrying with
spare superblock (blocksize = 4096)
[ 886.706454][T25972] NILFS (loop2): error -4 creating segctord thread
So here is calltrace:
nilfs_fill_super
nilfs_attach_log_writer
nilfs_segctor_start_thread <- failed
In case of nilfs_attach_log_writer() error code jumps to
failed_checkpoint label and calls destroy_nilfs() which should call
nilfs_sysfs_delete_device_group().
So I can really see how this leak is possible on top of current Linus' HEAD.
Also in the log there are onlyh 4 syz_mount_image$nilfs2 programs, so
only one of them may be a reproducer. If you have spare time you can try
to execute them using syz-execprog and see if it works :))
With regards,
Pavel Skripkin
next prev parent reply other threads:[~2022-03-12 14:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3192BC90-D082-472B-B310-6E09A14A77C6@hust.edu.cn>
2022-01-21 3:47 ` Fw:Re: [PATCH] fs: nilfs2: fix memory leak in nilfs sysfs create device group Dongliang Mu
2022-01-22 4:22 ` Ryusuke Konishi
2022-03-08 2:22 ` Dongliang Mu
2022-03-08 7:58 ` Pavel Skripkin
2022-03-08 8:31 ` Ryusuke Konishi
2022-03-08 8:42 ` Dongliang Mu
2022-03-09 8:30 ` Dongliang Mu
2022-03-12 3:55 ` Ryusuke Konishi
2022-03-12 14:20 ` Pavel Skripkin [this message]
2022-03-12 15:11 ` Ryusuke Konishi
2022-03-12 15:16 ` Pavel Skripkin
2022-03-12 16:01 ` Ryusuke Konishi
2022-03-13 13:35 ` Dongliang Mu
2022-03-15 1:58 ` Dongliang Mu
2022-03-15 4:46 ` Ryusuke Konishi
2022-03-15 5:49 ` Dongliang Mu
2022-03-15 9:11 ` Ryusuke Konishi
2022-03-15 9:18 ` Dongliang Mu
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=dac7104a-21ac-24f4-6132-e51960fa0b7e@gmail.com \
--to=paskripkin@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=dzm91@hust.edu.cn \
--cc=konishi.ryusuke@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nilfs@vger.kernel.org \
--cc=mudongliangabcd@gmail.com \
--cc=sunnanyong@huawei.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