[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250930090237.306607-1-kartikey406@gmail.com>
Date: Tue, 30 Sep 2025 14:32:37 +0530
From: Deepanshu Kartikey <kartikey406@...il.com>
To: tytso@....edu,
adilger.kernel@...ger.ca,
yi.zhang@...weicloud.com
Cc: linux-ext4@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] ext4: detect invalid INLINE_DATA + EXTENTS flag combination
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
Powered by blists - more mailing lists