Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1995348pxb; Fri, 29 Jan 2021 10:11:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxq6CWUx6s7DKy6htiJZkKtVxPWzqOewtlc4iutj+a1ddz1i9NEc13oyuX/SS1wp7rjpGxg X-Received: by 2002:a05:6402:1a56:: with SMTP id bf22mr6680588edb.284.1611943901219; Fri, 29 Jan 2021 10:11:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611943901; cv=none; d=google.com; s=arc-20160816; b=mvoF18Ol/LLZ4QuyMoVcyGlkDSMpEgqGj32ORS4LXRmQxI86DFvjaBxk6yuOoPksms bO2GiaL/EfFlLsfeEqDeqVPBrGe3mms6OL89ZtLSCwMr+pb68Ur4J1NjH4aIkh/7r28K MXo+5Z1I3U2CI7GAOHP30eAvqrOefEopuS/t5pgXfdykdmzMzshVojaOX9TuaFBoZ9Uk lCy07kbpt9UkLM0JLRMjOj11ooydvxb9iWiDXvcBy0hQ07ZxVm3rLkH2IOBUsQU/x8tF TN8tafefdbpyw/odZWQmhquoJ45ULSdZcZTIaJfAy2Pkar0UpKuZU1fFRfcX6YeX1ZFi iltA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+Q4AnktCopaaF8p4i4SvSgWzJSCfa/2k82Zci80Nw3E=; b=H3+bxGcVxXJmbR432cIIZFpnVrjrePLEuUAY0QZ6MVPoQhNtrqvjYGDg+DN1XjUxPY 2qW0PdCwVykCtkQmrRNt+nbud9EAqak30ss4BN+u3/LLPPVZx5gxmsrLNM6ZNmLhkqPu np5Vl4WzkUSSbygfTyLwkaJQTgFK+BwavAgskA79ImysRW0lvl6Uz09utPfBpjCAoLwX PvQsi+6xC7L6DlQxIeVSaMHpuy8mz9LJKsClUZ7JaBTskgqRpy01Hi/DL/h+z2S9+Z/T GIWxXB9KUMKONASxVN2pa9hWp+zVsT0JjhYWNmqssPrJIA/SOeNFCcTphNkM8ObFSv5q bnpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FmG1cWU8; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t17si6361192edc.421.2021.01.29.10.11.14; Fri, 29 Jan 2021 10:11:41 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=FmG1cWU8; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231533AbhA2SJ7 (ORCPT + 99 others); Fri, 29 Jan 2021 13:09:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232553AbhA2SJx (ORCPT ); Fri, 29 Jan 2021 13:09:53 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E4CDC061574 for ; Fri, 29 Jan 2021 10:09:13 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id g3so5680062plp.2 for ; Fri, 29 Jan 2021 10:09:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+Q4AnktCopaaF8p4i4SvSgWzJSCfa/2k82Zci80Nw3E=; b=FmG1cWU88IJpt27quaaKJKUe9U6Hhw1zAeAftY34OEcsxQ0rpOsluSZlijusR6o8mb LeEqFohM38SzPWn9NycDQAvwoysSL8TxBSM0Ee15HVnN4w4GcS/Ev43Uo6kKd9b0u/tF zbgGfjynw8wWpZ5Llic4XRqNiJUgAeBysi5dfUrfhBPTWaRbdAB0M/g+ar5XO9WqOxz5 RFu0JcevKpFUIfZiX6/xqT9wC0B+gWfpvgbleGknbImkUsHnF/DP18m4t0NwYYQ+4SZx 8Ho7Kat0vCWRw6+bLSIPRXJ7tjP2LogP+RGvEpXEGxTc9Gx8lKCyhPPwqCCfM73whe3P JSwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+Q4AnktCopaaF8p4i4SvSgWzJSCfa/2k82Zci80Nw3E=; b=e6VjZXgnaVMvLSP4W3qiQsmDPUJ/Z+OnWLNhyxgCkSU1C7qZWeFe1tfBMXAKrk4fpy WHsAB+CHLigppa72h/X5rqxIGOlve68W0HKQ1yBaWtyBWu0pHF45k+uxpytOKG5GAqt1 gqp/MyPoGRpuSRym9TgAJBoZY+2Vagrm9tpWJ/9NBddRcUUxoducd+JchTvxl/T8L3nu rFKIjOaK1+OtXx5el8jykJx/ZFaGrL7KvQ7Y++wT3aBph4D/CuJvUuAZ/8OhJ3D4YeQB dyJvZ7QnYpRyEEFlR6G+Ny98DRcF0BmG/TpcbHF7VVdpHS2THsPEJlPWJZuAILVh1MXv iuVw== X-Gm-Message-State: AOAM5302Sf4VxpPNdWAgkb3NBrVB0v1R4VYdt7trlpzthWLC1NRl+43Z r6ciWSdCe9Hx/FrFBfu4jplm0T6TlVxUjrU0SIb+ow== X-Received: by 2002:a17:90a:ce10:: with SMTP id f16mr5677685pju.136.1611943752637; Fri, 29 Jan 2021 10:09:12 -0800 (PST) MIME-Version: 1.0 References: <20210126134603.49759-1-vincenzo.frascino@arm.com> <20210126134603.49759-4-vincenzo.frascino@arm.com> In-Reply-To: From: Andrey Konovalov Date: Fri, 29 Jan 2021 19:09:00 +0100 Message-ID: Subject: Re: [PATCH v9 3/4] kasan: Add report for async mode To: Vincenzo Frascino , Alexander Potapenko Cc: Linux ARM , LKML , kasan-dev , Andrew Morton , Catalin Marinas , Will Deacon , Dmitry Vyukov , Andrey Ryabinin , Marco Elver , Evgenii Stepanov , Branislav Rankov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 29, 2021 at 6:56 PM Vincenzo Frascino wrote: > > 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. Not sure I understand. Call report_end(&flags, 0) and then there do: if (addr) trace_error_report_end(...); Although maybe it makes sense to still trace all async bugs to address 0. Or to some magic address. Alex, WDYT?