lkdtm/usercopy: Check vmalloc and >0-order folios
authorKees Cook <keescook@chromium.org>
Thu, 12 May 2022 17:19:41 +0000 (10:19 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 17 May 2022 21:35:49 +0000 (14:35 -0700)
commitfc34eec6869a5882fd339f4e200fad21eb284093
treebc70bc8efd9eda96b38b2aeee1719db2bf467147
parentd2b8060f165105a68748a6d98ed548ca112ce4d3
lkdtm/usercopy: Check vmalloc and >0-order folios

Add coverage for the recently added usercopy checks for vmalloc and
folios, via USERCOPY_VMALLOC and USERCOPY_FOLIO respectively.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/misc/lkdtm/usercopy.c