lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 9 May 2022 20:37:42 -0700
From:   Andrew Morton <>
To:     "Matthew Wilcox (Oracle)" <>
Cc:     Kees Cook <>,,
Subject: Re: [PATCH 1/4] mm/usercopy: Check kmap addresses properly

On Mon, 10 Jan 2022 23:15:27 +0000 "Matthew Wilcox (Oracle)" <> wrote:

> If you are copying to an address in the kmap region, you may not copy
> across a page boundary,

In the source, the destination or in both, and why may we not?

> no matter what the size of the underlying
> allocation.  You can't kmap() a slab page because slab pages always
> come from low memory.

Why not?  kmap() does

	if (!PageHighMem(page))
		addr = page_address(page);
		addr = kmap_high(page);

Powered by blists - more mailing lists