Kuan-Ying Lee
340caf178d
kasan, slub: reset tag when printing address
...
The address still includes the tags when it is printed. With hardware
tag-based kasan enabled, we will get a false positive KASAN issue when
we access metadata.
Reset the tag before we access the metadata.
Link: https://lkml.kernel.org/r/20210804090957.12393-3-Kuan-Ying.Lee@mediatek.com
Fixes: aa1ef4d7b3f6 ("kasan, mm: reset tags when accessing metadata")
Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Reviewed-by: Marco Elver <elver@google.com>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Chinwen Chang <chinwen.chang@mediatek.com>
Cc: Nicholas Tang <nicholas.tang@mediatek.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-08-13 14:09:31 -10:00
..
2021-07-15 10:13:49 -07:00
2021-07-23 17:43:28 -07:00
2021-07-23 17:43:28 -07:00
2021-05-07 00:26:35 -07:00
2021-06-30 20:47:25 -07:00
2019-07-12 12:24:03 -07:00
2021-05-05 11:27:21 -07:00
2021-05-05 11:27:24 -07:00
2021-05-05 11:27:24 -07:00
2021-05-05 11:27:24 -07:00
2021-07-02 12:08:10 -07:00
2017-11-02 11:10:55 +01:00
2021-07-01 11:06:03 -07:00
2021-06-29 10:53:53 -07:00
2021-06-29 10:53:52 -07:00
2021-02-26 09:41:02 -08:00
2020-10-13 18:38:29 -07:00
2019-07-12 11:05:43 -07:00
2021-07-03 11:30:04 -07:00
2021-05-05 11:27:27 -07:00
2021-05-05 11:27:26 -07:00
2021-05-05 11:27:26 -07:00
2021-07-08 11:48:21 -07:00
2021-05-07 00:26:35 -07:00
2021-07-01 11:06:03 -07:00
2021-07-11 15:05:15 -07:00
2021-05-05 11:27:22 -07:00
2021-06-30 20:47:26 -07:00
2021-06-30 20:47:25 -07:00
2021-07-15 10:13:49 -07:00
2020-10-16 11:11:16 -07:00
2021-07-08 11:48:21 -07:00
2021-07-08 11:48:20 -07:00
2021-04-30 11:20:38 -07:00
2021-04-30 11:20:39 -07:00
2021-05-14 19:41:32 -07:00
2021-07-08 11:48:21 -07:00
2020-12-15 12:13:46 -08:00
2021-06-30 20:47:29 -07:00
2021-08-13 14:09:31 -10:00
2021-06-29 10:53:52 -07:00
2021-05-05 11:27:23 -07:00
2020-08-12 10:57:59 -07:00
2021-06-30 20:47:30 -07:00
2021-07-08 11:48:21 -07:00
2021-07-01 11:06:02 -07:00
2021-07-23 17:43:28 -07:00
2021-07-30 10:14:39 -07:00
2021-04-30 14:14:02 -05:00
2021-07-01 11:06:02 -07:00
2021-07-01 11:06:02 -07:00
2021-07-23 17:43:28 -07:00
2021-06-30 20:47:29 -07:00
2021-06-04 19:32:21 +01:00
2021-04-30 11:20:37 -07:00
2017-11-02 11:10:55 +01:00
2021-07-30 10:14:39 -07:00
2021-01-24 14:27:16 +01:00
2021-07-08 11:48:21 -07:00
2021-04-30 11:20:42 -07:00
2021-07-23 17:43:28 -07:00
2021-07-08 11:48:20 -07:00
2021-04-16 16:10:36 -07:00
2021-03-25 09:22:55 -07:00
2020-12-15 14:48:04 -08:00
2021-07-01 11:06:03 -07:00
2021-07-08 11:48:23 -07:00
2021-04-30 11:20:37 -07:00
2021-06-30 20:47:30 -07:00
2021-07-04 12:58:33 -07:00
2021-07-23 17:43:28 -07:00
2021-04-30 11:20:38 -07:00
2021-06-29 10:53:55 -07:00
2020-12-15 14:48:03 -08:00
2021-03-02 17:25:46 -07:00
2020-12-15 12:13:45 -08:00
2021-06-29 10:53:53 -07:00
2021-04-30 11:20:36 -07:00
2021-06-29 10:53:47 -07:00
2021-06-29 10:53:47 -07:00
2021-07-01 11:06:03 -07:00
2021-06-30 12:12:56 -07:00
2021-06-29 10:53:49 -07:00
2021-07-01 17:17:24 -07:00
2021-07-04 18:30:17 +00:00
2021-06-05 20:43:15 +00:00
2021-07-04 18:30:17 +00:00
2021-07-04 18:30:17 +00:00
2021-05-07 00:26:35 -07:00
2021-06-16 09:24:42 -07:00
2021-05-05 11:27:27 -07:00
2021-04-16 16:10:37 -07:00
2021-04-23 10:14:29 +01:00
2021-07-12 11:30:56 -07:00
2020-08-21 09:52:53 -07:00
2021-07-23 17:43:28 -07:00
2021-07-02 12:08:10 -07:00
2021-04-16 16:10:36 -07:00
2021-05-22 15:09:07 -10:00
2021-07-04 12:58:33 -07:00
2021-05-07 00:26:35 -07:00
2021-07-30 10:14:39 -07:00
2021-03-08 14:18:46 -08:00
2021-08-13 14:09:31 -10:00
2021-06-30 20:47:26 -07:00
2021-06-30 20:47:25 -07:00
2020-06-03 20:09:48 -07:00
2021-06-29 10:53:49 -07:00
2021-06-29 10:53:49 -07:00
2021-07-01 11:06:02 -07:00
2021-07-01 11:06:02 -07:00
2021-06-16 09:24:42 -07:00
2020-08-12 10:57:58 -07:00
2021-06-30 20:47:27 -07:00
2021-07-12 11:30:56 -07:00
2020-06-10 19:14:18 -07:00
2021-07-01 11:06:02 -07:00
2020-04-02 09:35:31 -07:00
2021-07-01 11:06:02 -07:00
2021-06-29 10:53:54 -07:00
2021-06-30 20:47:28 -07:00
2021-07-01 11:06:03 -07:00
2021-07-01 11:06:03 -07:00
2021-05-07 00:26:35 -07:00
2021-07-01 11:06:02 -07:00
2021-06-30 20:47:31 -07:00