[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210727040021.21371-3-Kuan-Ying.Lee@mediatek.com>
Date: Tue, 27 Jul 2021 12:00:21 +0800
From: Kuan-Ying Lee <Kuan-Ying.Lee@...iatek.com>
To: Nicholas Tang <nicholas.tang@...iatek.com>,
Andrew Yang <andrew.yang@...iatek.com>,
Andrey Konovalov <andreyknvl@...il.com>,
Andrey Ryabinin <ryabinin.a.a@...il.com>,
Alexander Potapenko <glider@...gle.com>,
Marco Elver <elver@...gle.com>,
Chinwen Chang <chinwen.chang@...iatek.com>,
Andrew Morton <akpm@...ux-foundation.org>
CC: <kasan-dev@...glegroups.com>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>,
Kuan-Ying Lee <Kuan-Ying.Lee@...iatek.com>
Subject: [PATCH 2/2] kasan, mm: reset tag for hex dump address
Text is a string. We need to move this kasan_reset_tag()
to address but text.
Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@...iatek.com>
---
mm/slub.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/slub.c b/mm/slub.c
index 6dad2b6fda6f..d20674f839ba 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -576,8 +576,8 @@ static void print_section(char *level, char *text, u8 *addr,
unsigned int length)
{
metadata_access_enable();
- print_hex_dump(level, kasan_reset_tag(text), DUMP_PREFIX_ADDRESS,
- 16, 1, addr, length, 1);
+ print_hex_dump(level, text, DUMP_PREFIX_ADDRESS,
+ 16, 1, kasan_reset_tag((void *)addr), length, 1);
metadata_access_disable();
}
--
2.18.0
Powered by blists - more mailing lists