| From: Arnd Bergmann <arnd@arndb.de> |
| Subject: kasan: hw_tags: include linux/vmalloc.h |
| Date: Thu, 4 Apr 2024 14:44:30 +0200 |
| |
| This header is no longer included implicitly and instead needs to be |
| pulled in directly: |
| |
| mm/kasan/hw_tags.c: In function 'unpoison_vmalloc_pages': |
| mm/kasan/hw_tags.c:280:16: error: implicit declaration of function 'find_vm_area'; did you mean 'find_vma_prev'? [-Werror=implicit-function-declaration] |
| 280 | area = find_vm_area((void *)addr); |
| | ^~~~~~~~~~~~ |
| | find_vma_prev |
| mm/kasan/hw_tags.c:280:14: error: assignment to 'struct vm_struct *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] |
| 280 | area = find_vm_area((void *)addr); |
| | ^ |
| mm/kasan/hw_tags.c:284:29: error: invalid use of undefined type 'struct vm_struct' |
| 284 | for (i = 0; i < area->nr_pages; i++) { |
| | ^~ |
| mm/kasan/hw_tags.c:285:41: error: invalid use of undefined type 'struct vm_struct' |
| 285 | struct page *page = area->pages[i]; |
| | ^~ |
| |
| Link: https://lkml.kernel.org/r/20240404124435.3121534-1-arnd@kernel.org |
| Signed-off-by: Arnd Bergmann <arnd@arndb.de> |
| Tested-by: Kees Cook <keescook@chromium.org> |
| Cc: Alexander Potapenko <glider@google.com> |
| Cc: Andrey Konovalov <andreyknvl@gmail.com> |
| Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com> |
| Cc: Dmitry Vyukov <dvyukov@google.com> |
| Cc: Mark Rutland <mark.rutland@arm.com> |
| Cc: Vincenzo Frascino <vincenzo.frascino@arm.com> |
| Cc: Kent Overstreet <kent.overstreet@linux.dev> |
| Cc: Suren Baghdasaryan <surenb@google.com> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| mm/kasan/hw_tags.c | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| --- a/mm/kasan/hw_tags.c~fix-missing-vmalloch-includes-fix-5 |
| +++ a/mm/kasan/hw_tags.c |
| @@ -16,6 +16,7 @@ |
| #include <linux/static_key.h> |
| #include <linux/string.h> |
| #include <linux/types.h> |
| +#include <linux/vmalloc.h> |
| |
| #include "kasan.h" |
| |
| _ |