From: Deepanshu Kartikey <kartikey406@gmail.com>
To: tytso@mit.edu, adilger.kernel@dilger.ca, yi.zhang@huaweicloud.com
Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] ext4: detect invalid INLINE_DATA + EXTENTS flag combination
Date: Tue, 30 Sep 2025 14:32:37 +0530 [thread overview]
Message-ID: <20250930090237.306607-1-kartikey406@gmail.com> (raw)
Zhang Yi,
Thank you for the review. Regarding the placement after ext4_set_inode_flags() -
this would be too early. My debug shows that i_inline_off changes during inode
initialization:
After ext4_set_inode_flags(): flag=1, i_inline_off=0, has_inline=0
Before my patch validation check: flag=1, i_inline_off=164, has_inline=1
At the earlier point, ext4_has_inline_data() returns false, so we wouldn't catch
the corruption. The check needs to be after all inode fields are initialized.
I'll fix the alignment and use function/line variables as you suggested, but keep
the check after "ret = 0;" where all inode fields are populated.
I'll send v3 with these fixes shortly.
Best regards,
Deepanshu
next reply other threads:[~2025-09-30 9:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-30 9:02 Deepanshu Kartikey [this message]
2025-09-30 9:15 ` Zhang Yi
-- strict thread matches above, loose matches on Subject: below --
2025-09-29 15:43 Deepanshu Kartikey
2025-09-30 8:34 ` Zhang Yi
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=20250930090237.306607-1-kartikey406@gmail.com \
--to=kartikey406@gmail.com \
--cc=adilger.kernel@dilger.ca \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
--cc=yi.zhang@huaweicloud.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®