[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211213142703.3066590-1-willy@infradead.org>
Date: Mon, 13 Dec 2021 14:27:00 +0000
From: "Matthew Wilcox (Oracle)" <willy@...radead.org>
To: Kees Cook <keescook@...omium.org>
Cc: "Matthew Wilcox (Oracle)" <willy@...radead.org>,
linux-mm@...ck.org, Thomas Gleixner <tglx@...utronix.de>,
linux-hardening@...r.kernel.org
Subject: [PATCH v3 0/3] Assorted improvements to usercopy
We must prohibit page boundary crossing for kmap() addresses.
vmap() addresses are limited by the length of the mapping, and
compound pages are limited by the size of the page.
These should probably all have test cases?
v3:
- Remove a now-unused variable
v2:
- Prevent a NULL pointer dereference when a vmalloc-range pointer
doesn't have an associated allocation (me)
- Report better offsets than "0" (Kees)
Matthew Wilcox (Oracle) (3):
mm/usercopy: Check kmap addresses properly
mm/usercopy: Detect vmalloc overruns
mm/usercopy: Detect compound page overruns
arch/x86/include/asm/highmem.h | 1 +
include/linux/highmem-internal.h | 10 ++++++++
mm/usercopy.c | 43 +++++++++++++++++++++++---------
3 files changed, 42 insertions(+), 12 deletions(-)
--
2.33.0
Powered by blists - more mailing lists