Re: [PATCH] mm/highmem: VM_BUG_ON() if offset + len > PAGE_SIZE
From: Andrew Morton
Date: Tue Apr 26 2022 - 15:34:32 EST
On Tue, 26 Apr 2022 21:30:20 +0200 "Fabio M. De Francesco" <fmdefrancesco@xxxxxxxxx> wrote:
> Add VM_BUG_ON() bounds checking to make sure that, if "offset + len>
> PAGE_SIZE", memset() does not corrupt data in adjacent pages.
>
hm, why? To match all the other functions in there?
I suppose that's logical. Or we could just delete all the other
VM_BUG_ON()s. Have any of them proven to be at all useful?