Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5021498ybg; Mon, 21 Oct 2019 19:12:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqypEqTsSJpE8xmHYTU+cZ92aDSNjmeuzVjBeFIHi3HETEHmgZxKHZAyvduXLhGK8eEO6Nby X-Received: by 2002:a50:ee8d:: with SMTP id f13mr16087972edr.285.1571710377314; Mon, 21 Oct 2019 19:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571710377; cv=none; d=google.com; s=arc-20160816; b=uVqyjrDm1+H7Gyb2trnKo6c28dBrUA+7MkhmPV5v+UJ7IJjsF+HgPn6bZZdwqbY/ad 0rIt+TSAbip4SWmkJFoJb88hmL1WqVhhlYX+bJI8UZM2u+ItjyytdNyzOUnTqV4ml4gb ZdIhN6KLiSLunUbKDMTtqcjDfWPqov8ktprtgJqoiILBpz4GDm+Wb5FvbnzfTMcBuBxY HswpDOpKt7oZ9hah9alxPvh8ivdn8LS8Kz14ddPvqP7otjdJ75pFi+8peLGg34ta1xHr 95A+ifmLUXNTEMJAu7/VMyU7UzDrDuMoMz8NDcQIdBS9/1t1UR2LCMmoRrr09lBfg7BQ fslQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vEmMhVBM1YV7KFkQj0iOkwem92MxoUAoaOyMvEVsU6w=; b=l1FqCJo2o4DkzTBAus7c2bW4BDUnmm6E6I7awKHoENxPlcZ6Aay4LAY6L8fISz2Y/X uPWdeVjCPxlM1FkQsFp9MtGs6j5GunAz1PhK+SEYLnV6FA/roW/2+kJ72s9rKfozYoT+ gbB/a7w5tiGe5sKoKewV7PD2j+zfOZ01T2sgM9r5DwfCugDBDLrP6ntYvJgHu6XFpIpW fueX6NyA6hqDHNYCeiMAJeoh+U6YHWzuTQiwJCciljvd5+rDLuFUdGM0GTXSO0SgRMp3 lJDf5j6I3rNLjBRsyAik13SqEymI8dRdhfooTGmE67LgGpVwG0PG3c7JKJ66VC/osHWd UU2Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si10889504edx.361.2019.10.21.19.12.33; Mon, 21 Oct 2019 19:12:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730728AbfJVCK3 (ORCPT + 99 others); Mon, 21 Oct 2019 22:10:29 -0400 Received: from 59-120-53-16.HINET-IP.hinet.net ([59.120.53.16]:11591 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727264AbfJVCK3 (ORCPT ); Mon, 21 Oct 2019 22:10:29 -0400 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id x9M1q10Y068205; Tue, 22 Oct 2019 09:52:01 +0800 (GMT-8) (envelope-from nickhu@andestech.com) Received: from andestech.com (10.0.15.65) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.123.3; Tue, 22 Oct 2019 10:09:00 +0800 Date: Tue, 22 Oct 2019 10:09:00 +0800 From: Nick Hu To: Paul Walmsley CC: Andrey Ryabinin , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v3 1/3] kasan: Archs don't check memmove if not support it. Message-ID: <20191022020900.GA29285@andestech.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.0.15.65] X-DNSRBL: X-MAIL: ATCSQR.andestech.com x9M1q10Y068205 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 17, 2019 at 07:58:04PM -0700, Paul Walmsley wrote: > On Thu, 17 Oct 2019, Andrey Ryabinin wrote: > > > On 10/8/19 9:11 AM, Nick Hu wrote: > > > Skip the memmove checking for those archs who don't support it. > > > > The patch is fine but the changelog sounds misleading. We don't skip memmove checking. > > If arch don't have memmove than the C implementation from lib/string.c used. > > It's instrumented by compiler so it's checked and we simply don't need that KASAN's memmove with > > manual checks. > > Thanks Andrey. Nick, could you please update the patch description? > > - Paul > Thanks! I would update the description in v4 patch. Nick