Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4088737pxv; Mon, 26 Jul 2021 21:09:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZVGLiOyUreFgr7pt+wkLRm8CkUIhZfysvaRvXLfGMYGzGKc+DbSSHkX3Lquy/PwUTKKM9 X-Received: by 2002:a17:906:d93a:: with SMTP id rn26mr6795806ejb.382.1627358975471; Mon, 26 Jul 2021 21:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627358975; cv=none; d=google.com; s=arc-20160816; b=qfi3tyXGLyYJHy7OAKYp01ioMFZcOFevkUWeVXtQEsb+w/mjpXZJrvum0iR1X4gUIe DeG1exX3hZyv1U5LCzTBFFfogKHcS+w34Di1TKQx79AFv4l9Hrb/k8e6zryVK57T5o2J bUtTRB4ct5ihvFMRWNzc7LUTU/17Fhm1cMwWWT6fkXof5gvySmhr7spd3/usUClM9WNh Emdfkmk/PCpL1ve+uLlPcWNlcxC7EB5he63S2lxJV/Azhv0gAYhTAz23BTgvdEgpXiQE Aom1VHbiJ1l69SVEZ/nSUns3HS2z7UGOWrEXAeGL7rJSYn9Eg2MAEGUw5A51fteiuTsO nz3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=lr8InPHh6LTJUsidl3KY6dSGt8iSX2/gMEXUUr5S5KI=; b=qLSFR+wtbqQWs9j21AF5FVgnnHzE0OSxX1Xe9JdfbamTpIH2pNqdy+r+sSqEpRJvFr N2Q0C+N2ojBYLtm4gthFPljTOlNSf26RnHbGEcakWsxXfWzkpksOU3mM8J3JA9JuAyvz r6a/tK7BcV3PwvlyZFhGkVxIaJKQzzFAMsGr9e291pfnAUcWDYzzzs7KLfvmNaiRoEwh +46RKe9ppTAKDp+EDP+T+5JGgz0V3k2ai9EXcEPABhUatdSgHA+boiNhCqK+emDlHhEu myLa2O000pNQ8mnVFfLCVvSwX01AWXq7v7lGLsGMOcOGItEWWle9dfv/EJd9XBnKax1A PJOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw26si1824653ejb.161.2021.07.26.21.09.12; Mon, 26 Jul 2021 21:09:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234801AbhG0EAy (ORCPT + 99 others); Tue, 27 Jul 2021 00:00:54 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:36734 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234608AbhG0EAv (ORCPT ); Tue, 27 Jul 2021 00:00:51 -0400 X-UUID: 88bae1ba30cc48128ea925fe74fe3f76-20210727 X-UUID: 88bae1ba30cc48128ea925fe74fe3f76-20210727 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1762002640; Tue, 27 Jul 2021 12:00:50 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 27 Jul 2021 12:00:48 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 27 Jul 2021 12:00:43 +0800 From: Kuan-Ying Lee To: Nicholas Tang , Andrew Yang , Andrey Konovalov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Chinwen Chang , Andrew Morton CC: , , , , , Kuan-Ying Lee Subject: [PATCH 2/2] kasan, mm: reset tag for hex dump address Date: Tue, 27 Jul 2021 12:00:21 +0800 Message-ID: <20210727040021.21371-3-Kuan-Ying.Lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210727040021.21371-1-Kuan-Ying.Lee@mediatek.com> References: <20210727040021.21371-1-Kuan-Ying.Lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Text is a string. We need to move this kasan_reset_tag() to address but text. Signed-off-by: Kuan-Ying Lee --- 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