Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'usercopy-v4.8-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux

Pull usercopy hardening fix from Kees Cook:
"Expand the arm64 vmalloc check to include skipping the module space
too"

* tag 'usercopy-v4.8-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
mm: usercopy: Check for module addresses

+4 -1
+4 -1
mm/usercopy.c
··· 207 207 * Some architectures (arm64) return true for virt_addr_valid() on 208 208 * vmalloced addresses. Work around this by checking for vmalloc 209 209 * first. 210 + * 211 + * We also need to check for module addresses explicitly since we 212 + * may copy static data from modules to userspace 210 213 */ 211 - if (is_vmalloc_addr(ptr)) 214 + if (is_vmalloc_or_module_addr(ptr)) 212 215 return NULL; 213 216 214 217 if (!virt_addr_valid(ptr))