Files
linux/kernel
Andrey Konovalov f1e8564c55 FROMLIST: kasan, scs: support tagged vmalloc mappings
Fix up the custom KASAN instrumentation for Shadow Call Stack to support
vmalloc() mappings and pointers being tagged.

- Use the tagged pointer returned by kasan_unpoison_vmalloc() in
  __scs_alloc() when calling memset() to avoid false-positives.

- Do not return a tagged Shadow Call Stack pointer from __scs_alloc(),
  as this might lead to conflicts with the instrumentation.

Link: https://lkml.kernel.org/r/2f6605e3a358cf64d73a05710cb3da356886ad29.1646233925.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Collingbourne <pcc@google.com>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
(cherry picked from commit bd2c296805cff9572080bf56807c16d1dd382260
 git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git akpm)
Link: https://lore.kernel.org/all/2f6605e3a358cf64d73a05710cb3da356886ad29.1646233925.git.andreyknvl@google.com/
Bug: 217222520
Bug: 222221793
Change-Id: I9e6e4cd303e0815a5b092ba6ec28638bd1f7bc2c
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
2022-03-21 15:30:13 +00:00
..
2022-03-02 15:44:44 +01:00
2022-03-02 15:44:44 +01:00
2022-02-16 15:14:37 +01:00
2021-04-14 08:41:58 +02:00
2022-02-16 15:14:37 +01:00
2021-11-12 15:11:32 +01:00
2022-03-15 13:57:31 +01:00
2022-01-29 09:07:58 +01:00
2022-03-18 12:17:14 +01:00
2021-12-01 09:37:11 +01:00
2021-09-08 09:07:16 +02:00
2022-02-23 12:26:12 +01:00
2021-06-30 19:29:52 +02:00
2020-08-12 10:58:02 -07:00
2021-09-03 10:59:15 +02:00
2022-02-23 12:26:12 +01:00
2020-11-14 11:26:04 -08:00
2021-01-13 10:28:55 +01:00
2020-07-27 14:31:12 -04:00
2021-08-18 09:34:44 +02:00
2021-11-19 07:47:18 +01:00
2021-09-03 10:59:15 +02:00
2020-05-09 13:57:12 +02:00
2021-05-20 15:35:25 +02:00