[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220426123412.51fb58780a8fe2b32c7814ce@linux-foundation.org>
Date: Tue, 26 Apr 2022 12:34:12 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: "Fabio M. De Francesco" <fmdefrancesco@...il.com>
Cc: Ira Weiny <ira.weiny@...el.com>,
Catalin Marinas <catalin.marinas@....com>,
"Matthew Wilcox (Oracle)" <willy@...radead.org>,
Peter Collingbourne <pcc@...gle.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm/highmem: VM_BUG_ON() if offset + len > PAGE_SIZE
On Tue, 26 Apr 2022 21:30:20 +0200 "Fabio M. De Francesco" <fmdefrancesco@...il.com> 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?
Powered by blists - more mailing lists