Re: [PATCH] copy: fix possible infinite loop with SEEK_HOLE
From:
Pádraig Brady
Subject:
Re: [PATCH] copy: fix possible infinite loop with SEEK_HOLE
Date:
Mon, 5 Jan 2026 15:46:16 +0000
User-agent:
Mozilla Thunderbird Beta
There is was also an existing though very unlikely infinite loop possibility.
The attached adds more defensive code to the loop in lseek_copy() to ensure
the cached hole offset is only used once, thus ensuring the copy progresses
in this pathological case.
cheers,
Padraig