From: Waqar Hameed <waqar.hameed@axis.com>
To: Zhihao Cheng <chengzhihao1@huawei.com>
Cc: Richard Weinberger <richard@nod.at>,
Sascha Hauer <s.hauer@pengutronix.de>, <kernel@axis.com>,
<linux-mtd@lists.infradead.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH RFC] ubifs: Fix use-after-free in ubifs_tnc_end_commit
Date: Thu, 7 Nov 2024 23:11:09 +0100 [thread overview]
Message-ID: <pndwmhe1ypu.fsf@axis.com> (raw)
In-Reply-To: <932b3c63-82a7-e1ec-b46c-136e9fd60e64@huawei.com> (Zhihao Cheng's message of "Thu, 7 Nov 2024 15:14:56 +0800")
On Thu, Nov 07, 2024 at 15:14 +0800 Zhihao Cheng <chengzhihao1@huawei.com> wrote:
> 在 2024/11/7 0:36, Waqar Hameed 写道:
[...]
>> Did you manage to reproduce the issue with this?
>
> I tried, but I still cannot reproduce it on my local machine.
That's a bummer! Sometimes it really could take a while. For example, my
last attempt needed 248 iterations (almost 4 hours)...
[...]
> @@ -662,6 +662,10 @@ static int get_znodes_to_commit(struct ubifs_info *c)
> }
> znode->cparent = znode->parent;
> znode->ciip = znode->iip;
> + if (znode->cparent) {
> + ubifs_assert(c, ubifs_zn_dirty(znode->cparent));
> + }
> + ubifs_assert(c, znode->ciip < c->fantout);
> znode->cnext = cnext;
> znode = cnext;
> cnt += 1;
None of the asserts got hit during my last run, but KASAN still
complained.
next prev parent reply other threads:[~2024-11-07 22:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-09 14:46 [PATCH RFC] ubifs: Fix use-after-free in ubifs_tnc_end_commit Waqar Hameed
2024-10-12 12:30 ` Zhihao Cheng
2024-10-15 18:52 ` Waqar Hameed
2024-10-16 2:11 ` Zhihao Cheng
2024-10-17 18:36 ` Waqar Hameed
2024-10-18 1:40 ` Zhihao Cheng
2024-11-06 16:36 ` Waqar Hameed
2024-11-07 7:14 ` Zhihao Cheng
2024-11-07 22:11 ` Waqar Hameed [this message]
2024-10-29 8:10 ` Ryder Wang
2024-10-29 9:06 ` Zhihao Cheng
2024-10-29 9:56 ` Ryder Wang
2024-10-29 11:19 ` Zhihao Cheng
2024-11-07 8:39 ` Zhihao Cheng
2024-11-07 22:38 ` Waqar Hameed
2024-11-08 1:38 ` Zhihao Cheng
2024-11-08 18:02 ` Waqar Hameed
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=pndwmhe1ypu.fsf@axis.com \
--to=waqar.hameed@axis.com \
--cc=chengzhihao1@huawei.com \
--cc=kernel@axis.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=richard@nod.at \
--cc=s.hauer@pengutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).