On Wed, Jul 02, 2025 at 08:23:04AM -0700, Darrick J. Wong wrote: > > Why wouldn't you encode this check in __ext4_check_dir_entry and solve > this problem for all the callsites? More to the point, why wasn't this caught when checking the previous directory entry in __ext4_check_ir_entry() via this: else if (unlikely(next_offset > size - ext4_dir_rec_len(1, has_csum ? NULL : dir) && next_offset != size)) error_msg = "directory entry too close to block end"; This patch claims to address a syzbot report, but it currently doesn't have a C reprducer. Are we sure that this change actually makes a difference? - Ted