2024-05-08 01:11:21

by Al Viro

[permalink] [raw]
Subject: Re: [PATCH] fs: remove accidental overflow during wraparound check

On Tue, May 07, 2024 at 11:17:57PM +0000, Justin Stitt wrote:

> I wonder, though, why isn't loff_t an unsigned type?

Consider
lseek(fd, -10, SEEK_CUR)

PS: the above is *not* an endorsement of the proposed patch or
KASAN overflow nonsense in general.