Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1987438pxb; Fri, 29 Jan 2021 10:01:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRjDUQ2N6an75EKQ2PNGlOnaHeJ8zkkgMdJ8Ny78Z8C2dbuHZXaRrI8Fxj87oBHqraqi5s X-Received: by 2002:a17:906:2c4e:: with SMTP id f14mr6016105ejh.432.1611943282137; Fri, 29 Jan 2021 10:01:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611943282; cv=none; d=google.com; s=arc-20160816; b=pgfqIog0J/v2e6ctap6P6jm5bbsJJ5J3Px470rWmV1MLBxuYyi0FutgH7X2UcKRD8F n5MSdJ4rrgPMNlTi4jYRXLY3JSjyV65SI87oiCnxsGOLGQz0WygMyOwcVs4oqx2X96sS T97TPuazVRYeXSGyHaVzPKCMxFMxcmugo4sEqqS7uqW4fTq4ECfWaVdrFMuyvecoFFD3 fX68L3GZ+8hH2H/g1lzaZPdLeQdgl3z4omQlCeJjr0GmeQWrQpq2EwYTiL6dnNOKhu7a V+URrpM27OwwkvHkOSBMQ1pW4w0D0zGOQ+2mDPlAp3UjKnnJjJTI+81J/DRE793psZzH 0New== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=uNq+S5hM/fPqgR658lMJLYy9ATqGm7SczvMo0jkIMLY=; b=vW2f7hPnPIiIJwGG8G7arYNr95IhZ7A31vdmdqZEVdzsVBmNSF2LQzlentkW0d+tt3 8C5kJ1e1r0UcpdptuIEf1h22DBsJLe49Ckz3dTV0a72EQ1CG3RU86hvyBtm/x+U8BKkl 6d0qdPv1Hw85BrCycdG/iyPRmxeFf2IAL0tDAUa3xiArPFSrwgW0MSmbV6KDH0UtahnL /nYklTyIT8RoKsMfUOP6hCnx05Gdprou475q7RTtQv9pPnffbmvvTcFE9jl2U+4gi3BG ppSd9x6ain6hADl+IPbIno9SO6CIiM3LiVD+uCGfbYievV8SCXPTvMNWOYqmQezCI969 rV3g== 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k17si5784921edr.594.2021.01.29.10.00.58; Fri, 29 Jan 2021 10:01:22 -0800 (PST) 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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232319AbhA2R5L (ORCPT + 99 others); Fri, 29 Jan 2021 12:57:11 -0500 Received: from foss.arm.com ([217.140.110.172]:52204 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231169AbhA2R5K (ORCPT ); Fri, 29 Jan 2021 12:57:10 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EADE413A1; Fri, 29 Jan 2021 09:56:24 -0800 (PST) Received: from [10.37.12.11] (unknown [10.37.12.11]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6F73F3F885; Fri, 29 Jan 2021 09:56:22 -0800 (PST) Subject: Re: [PATCH v9 3/4] kasan: Add report for async mode To: Andrey Konovalov Cc: Linux ARM , LKML , kasan-dev , Andrew Morton , Catalin Marinas , Will Deacon , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov References: <20210126134603.49759-1-vincenzo.frascino@arm.com> <20210126134603.49759-4-vincenzo.frascino@arm.com> From: Vincenzo Frascino Message-ID: Date: Fri, 29 Jan 2021 18:00:17 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrey, On 1/29/21 5:40 PM, Andrey Konovalov wrote: > I suggest to call end_report(&flags, 0) here and check addr !=0 in > end_report() before calling trace_error_report_end(). > Probably this is better as: if (!IS_ENABLED(CONFIG_KASAN_HW_TAGS)) Because that condition passes always addr == 0. What do you think? -- Regards, Vincenzo