Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2362428imm; Tue, 4 Sep 2018 03:12:09 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZg1NhZ5r7abmzzmY65LGHFcROLcqV1s66cHSAn/bRQaEbBM0JDSNsr3lXZ+Gi93u80Nl+9 X-Received: by 2002:a17:902:7c0a:: with SMTP id x10-v6mr32774189pll.77.1536055929040; Tue, 04 Sep 2018 03:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536055929; cv=none; d=google.com; s=arc-20160816; b=d/mTnOnYIDzsjWpwl9UFivEBbBbnzCX65NVKye97G/ZTtEE4qVFi4XwZUtY3T4afAy 3WSr0cni6kR89ljXZUHJ8MeTv4RtgY6EYRvICPpE2EntS+yldnMxYG+9dAYLHlKXW/bl 2FxOZttZw5SkMdCrb35l99Xme1Ci1ZsP3e8yrl5GfrGlLtlZWUq0XsoLzugxXmQAPU5x p9ByO6gWUY4XwyHkLXsHrUytyIwZSUcBHISc84gsaoVLI4Pohh1FEqa8+1Wvf0sLmIlC ym3vcZ6hQ7JNsgAdEiQ4H+4g4v0pVpNwT2w+AzkaLxJq2UM/449dYQBnY58bAdEBb3zv nrMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=8+XATW4KvItEiSMxPzy0B/9q1yXzzdz8/eWkfNhzqBg=; b=hilfFYbznXimLL0PfhnC1YgavFfhhX/0PPqET/lh1iOvlH+b6/Q88jAJzzIz8tQ5W0 fUjNnUrWMWY8HsR4KJ5lgOhcpVOBt3YM95n2HMs34RwrBR2kI+Wh6fCreo8MxtZne0ic /bLXVBl7UKWZgiyIIAITDI610H8UUbUGPv/KCuXh63TfDphyT7llGuPO1oYSFxBU3CbH 1YQCkEVicvTll6x/jSpmxmKvQSnG3zqDy87600DdYNpH+5qoQ/DP3VZ+14NRE6HMSnhi URZoVnvEIMnBjSYDuCMlHj9eNFI4s/cCM6nN5nI1mlJJxBkxKOS3uku/f1qeFeZ09/aP 0H8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=NzwnUuGU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g16-v6si15342751pgi.373.2018.09.04.03.11.53; Tue, 04 Sep 2018 03:12:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=NzwnUuGU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727390AbeIDOek (ORCPT + 99 others); Tue, 4 Sep 2018 10:34:40 -0400 Received: from mail-he1eur01on0123.outbound.protection.outlook.com ([104.47.0.123]:53480 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726208AbeIDOej (ORCPT ); Tue, 4 Sep 2018 10:34:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8+XATW4KvItEiSMxPzy0B/9q1yXzzdz8/eWkfNhzqBg=; b=NzwnUuGUE60i6UVNuoXOwABc6IwPvn1ftmRRqrJK8QpeohGY1nUFqO7f1wNl0JUcM2eAc9yLggQtJ16RRqmKRshR7nQNrCwcFEFgVFmZFwIdZVq5gKoBQE0G9VWYU/qdUUThbmxkagsaEHQrAZ26B3YYNFfMRAiSXlFI/Pw3GUw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aryabinin@virtuozzo.com; Received: from [172.16.25.12] (185.231.240.5) by AM6PR08MB3253.eurprd08.prod.outlook.com (2603:10a6:209:47::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.18; Tue, 4 Sep 2018 10:10:07 +0000 Subject: Re: [PATCH v2] arm64: kasan: add interceptors for strcmp/strncmp functions To: Kyeongdon Kim Cc: catalin.marinas@arm.com, will.deacon@arm.com, glider@google.com, dvyukov@google.com, Jason@zx2c4.com, robh@kernel.org, ard.biesheuvel@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org References: <1535014606-176525-1-git-send-email-kyeongdon.kim@lge.com> From: Andrey Ryabinin Message-ID: <6954711c-6441-04df-62a9-a83c867e06ad@virtuozzo.com> Date: Tue, 4 Sep 2018 13:10:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [185.231.240.5] X-ClientProxiedBy: HE1PR05CA0361.eurprd05.prod.outlook.com (2603:10a6:7:94::20) To AM6PR08MB3253.eurprd08.prod.outlook.com (2603:10a6:209:47::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 90eacc20-6bbf-4b5e-90a8-08d6124e9822 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:AM6PR08MB3253; X-Microsoft-Exchange-Diagnostics: 1;AM6PR08MB3253;3:zCg9qsfVR/rV08WpE0ZDETv12VuaPEnfmDlW/C2f+ZjbrAPs/4r5EA7eWG/eM0Hv87iqLpuGZe8wZc14oE9p108KLHYEUk4VGzR3P9ZrghKdttijvAb8BROqAvX0QyOqUN6LjFJp0xA221yWe2ibLo+BMDZbo4EIjMwV+tcUem58d6VQ3MR6FLZtE4WEQJXuiMx78qrXT5ZShmukVAft6csp/aXNlwGWFY62sV6m7xWh0oDZBisniYRs50vlMaV+;25:lsEC11MilRgS2O+sPd6lQWPGqF/HaI1t23fbM0ToUp3IENf6PKRou4ef42eVNJxUhVm9WWonYcAxuvohl6CM2yJbEDivwHOOnEwHFBICdceK0rMSRTffHnUdhUG2XpRQdFeb4fjLZOMjDqrpFnttH+/+o7nTJF7xS0XAu8x+I7WrWJqW4jObvQ6P/LAL9aXs6oDCf9JIfuci/lXXuumCXtpfoj/L61s9+v+qtZ3sdO7jOzX/Unv8BDr/uj6sku3CoN6giQUCYb3o1gvRCKJk0fPtSf3PYSAMnxP/DsU4FEu5m5K7GeHgJWYcSTdo7rF4pFQ/ch6Z+DREcnLM62wpYQ==;31:9BltP4YChKmTVC1dK98rKDViIN4JU1K7QrGQ+5busvk7uoKDuWaRCY29JNFeBr7PsLJh1nwbEVCmCo+NLGI1mw72X8WIECT08BZQc2iobHp7D9kBm7EauCw5ZSzngwlUrGPZtHmgDKwBadDhBSa2d5A2oo5vqqlfW46AmBFpnAoUz7SzjvUob7gWuNQb1bgdPjKzxD5V7U449Da1KiFqUSEY7XUUjQBcbmM1ioOJX2Q= X-MS-TrafficTypeDiagnostic: AM6PR08MB3253: X-Microsoft-Exchange-Diagnostics: 1;AM6PR08MB3253;20:vs1OpUMCHpIGydQSyE9r+KYEg+DsX/RdGkR9DoZ1Z56DouxsUkiza7DERVme7WEsevUFJ1VtrQC8l3bvOGmft+z+tcbNep5jFtWc2UwHsShLK3XomAE/w+IAhn1FYBK5gpU9Ym3lQdlXNWsVGRgPoBm6Vcl1iHwO+egrFpOQhXTa2XiptretklUx7BNb/EwWOqX7S78mLq6mPnlDuQdTg3mhBaDNcJVnEvEOrI9tCbBttEthk/6/dVHlHfQxUlgmtEWBP7uY2k635kvRVbeWZ7POQOLFeegF6pLM2Y5Vd5d70I3GbJZHYMFXIy69idMzPXCtHYZQ4oz9GxoLAA+9kg/DXnedBZJ3lQodmo9J44eriO9Qf6WQC98S+ZdCpNyp5p54dGnNrZ3bVRyYxxPsvSM8CXZGDZolli4YYFy3Dlk0XZRGA8IthmjhUD7H1nFxwwUnDw7zFb/kYc8l/vualBhKC8TnTwMgJaZAJuHkihD8lYkdgpJjIxyGVnb4s/d5;4:ywKAdb3Q4NdXynkf9vKftJdcUX4uiPANxvN8TjamcU8sispewfzKmIYhw12pKH/EQC3L/yKtqJh6DTOgzO+w8gK4NzeqPRKjll0yRAloQJIbfEHT6wbUubINuIs1tOiV5HCuPE8UZFFHuw9EPLrJ1bWhhq1M8lWoYk5/iuwC1T/rm75wPeeLlkeXyK/GgVRPYPEU9hlP5rVwWkPBIccXrEyhwHLe+WK+fuLdp7oAj1IMGd3OCXhfM1H7zwQ66KkO+rlTwpFxcJ5l3bLUY7BU+w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699016);SRVR:AM6PR08MB3253;BCL:0;PCL:0;RULEID:;SRVR:AM6PR08MB3253; X-Forefront-PRVS: 0785459C39 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(39840400004)(376002)(396003)(366004)(346002)(136003)(189003)(199004)(58126008)(16576012)(53936002)(97736004)(52116002)(6486002)(8676002)(2486003)(76176011)(305945005)(23676004)(52146003)(5660300001)(2870700001)(65826007)(106356001)(105586002)(229853002)(31686004)(7736002)(2906002)(7416002)(86362001)(6666003)(31696002)(50466002)(316002)(478600001)(6916009)(53546011)(6246003)(4326008)(77096007)(47776003)(26005)(16526019)(386003)(8936002)(66066001)(186003)(65806001)(65956001)(6116002)(486006)(476003)(956004)(2616005)(3846002)(64126003)(81156014)(11346002)(81166006)(25786009)(68736007)(36756003)(446003)(133343001);DIR:OUT;SFP:1102;SCL:1;SRVR:AM6PR08MB3253;H:[172.16.25.12];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTZQUjA4TUIzMjUzOzIzOjNvNXB6WVRGdWd1SkUxc1p0ZlA2SjZMTXhk?= =?utf-8?B?eWVvYkg0end5eGpLVUJLeW5wSVpqc1kzd1kwYTd5WlFqa2NkVUErcFNtOCs3?= =?utf-8?B?T25leTVSK294WVhrWUkrbWUyVkZnVWZHQ1VFdjV6SENFU2dVUmU0RVdmcnVH?= =?utf-8?B?OHB1NUhEc2xjcHJQYjVWMmd0OXR6bmpRZ3BCczZSajlVRnU3dXlDZSt0S0Rq?= =?utf-8?B?RS9nb0RiYWp6WlBMQVlUR1Y4V21Ta0FTUUlTN1pXaGhNNlBMN0dyZUpzYXN1?= =?utf-8?B?TmxPNEZDMGJKV1JhNko2ck5DVCtqUlY3ek9SbUpwUkgwcEk5SWhOSy9pbzha?= =?utf-8?B?R1JJVkpPV2tWckNzYldObDZ5WnpiR3R6ckhuOUdqNmY5QTdVSnpkSWg1N2Rr?= =?utf-8?B?bEozZGdSTEFVaThnc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microsoft-Exchange-Diagnostics: 1;AM6PR08MB3253;20:7hsClMXI1aPozAP1E3BTPPx+pM3DiU4Y3HR40zam3yZ0Wi221I6XDfQgXhJrWT+YqAR2TRnCsJJUL9kpwW3RgY/GZv7K66mXnFd7mwDoj1DGThGB/j+Ss/3AvwrEhaXlUgqLAxr0I/HGvadCrnw0F1C0Ppbpxe/tXdmh6IslanQ= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2018 10:10:07.7404 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 90eacc20-6bbf-4b5e-90a8-08d6124e9822 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3253 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/04/2018 09:59 AM, Kyeongdon Kim wrote: >> > +#undef strncmp >> > +int strncmp(const char *cs, const char *ct, size_t len) >> > +{ >> > + check_memory_region((unsigned long)cs, len, false, _RET_IP_); >> > + check_memory_region((unsigned long)ct, len, false, _RET_IP_); >> >> This will cause false positives. Both 'cs', and 'ct' could be less than len bytes. >> >> There is no need in these interceptors, just use the C implementations from lib/string.c >> like you did in your first patch. >> The only thing that was wrong in the first patch is that assembly implementations >> were compiled out instead of being declared week. >> > Well, at first I thought so.. > I would remove diff code in /mm/kasan/kasan.c then use C implementations in lib/string.c > w/ assem implementations as weak : > > diff --git a/lib/string.c b/lib/string.c > index 2c0900a..a18b18f 100644 > --- a/lib/string.c > +++ b/lib/string.c > @@ -312,7 +312,7 @@ size_t strlcat(char *dest, const char *src, size_t count) >  EXPORT_SYMBOL(strlcat); >  #endif > > -#ifndef __HAVE_ARCH_STRCMP > +#if (defined(CONFIG_ARM64) && defined(CONFIG_KASAN)) || !defined(__HAVE_ARCH_STRCMP) No. What part of "like you did in your first patch" is unclear to you? >  /** >   * strcmp - Compare two strings >   * @cs: One string > @@ -336,7 +336,7 @@ int strcmp(const char *cs, const char *ct) >  EXPORT_SYMBOL(strcmp); >  #endif > > -#ifndef __HAVE_ARCH_STRNCMP > +#if (defined(CONFIG_ARM64) && defined(CONFIG_KASAN)) || !defined(__HAVE_ARCH_STRNCMP) >  /** >   * strncmp - Compare two length-limited strings > > Can I get your opinion wrt this ? > > Thanks, >