Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1997578pxb; Fri, 29 Jan 2021 10:15:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDMuAgwCMePb1e9PFwseEw5MXMKdIq+mwo9X37dgZ8Cvht6P2rSMLKNhJlcOmiuG580dBH X-Received: by 2002:a17:906:4d19:: with SMTP id r25mr5865940eju.148.1611944100519; Fri, 29 Jan 2021 10:15:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611944100; cv=none; d=google.com; s=arc-20160816; b=IhCPTyCjyQjHZnSHTF1P1DKfhb4Sje1ZOfJgOTAL2DlRaa4mj2WxQfea3yFzwKRgx9 SkpgrprKj+dhxDmW1XK2x4kxAiUigqjOrA88IfqpeP5FySl0V4N2Qw3iudnMxkl1kCPV YGuc2Eaz45vF5IjQKbxCchMYgc9cRoU81JVUSDuWV0oZFjZwiFOI6/WCYIijuPqxjpiE 2vidFnp+PzEeLe71ay0R8pklRAD+ESbHPyayu0pEPgFIBo2wcgZwbDD1ld3GVxxrNmu7 D9MgRhwSpY8vXgFDBxBflAI2qJ03g9xxcu9yLa9ChH8/aUNIbGBAiOYbiXik2TEUVmP0 gI5Q== 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=ih9nZpFKdQtp/jnR4XaYa4e6X54Ve9TzjAXS7ra/gr8=; b=TktAAjrBzLP6YbAanvuxNT8EpD78fSJZ0tAw6xFeg+SfslvAah9BrYk+C+JkWW2+cg 93aCA5RMCRy4wgpJaBfEjjeD8sKY2R7vvmnPtx+HK/zoJkcSqRtIWv9c4gmxi8zQ1yZq /eQ/1OjquYmdBKpOn9TaqQFsBe00Wh697TkXCEUDxOQPFnsj2PcfwIhNYW9gIwk7i80P FDyUukIcfmnaJHjzUG6uXwpkEb+CxDzHbF0UqYodE7SGoLgsV9VOM+1l+fSToBsGVy84 e/Isx+cXNZEwRZ6w4x3Bu9gEFO83SzH3AMUxGH5LDwBs83l6e4KB4O1HrznC9aN7CfGu XH/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=uw1AfPuP; 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 d18si5620760edu.101.2021.01.29.10.14.35; Fri, 29 Jan 2021 10:15:00 -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=uw1AfPuP; 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 S232590AbhA2SLr (ORCPT + 99 others); Fri, 29 Jan 2021 13:11:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232584AbhA2SLU (ORCPT ); Fri, 29 Jan 2021 13:11:20 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03F89C0613D6 for ; Fri, 29 Jan 2021 10:10:39 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id w18so6711271pfu.9 for ; Fri, 29 Jan 2021 10:10:39 -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=ih9nZpFKdQtp/jnR4XaYa4e6X54Ve9TzjAXS7ra/gr8=; b=uw1AfPuPPKXgR1eJC2TrHBWOVTCNnPrz+/EkhkLBdYD3a7XHR7jhM2snmKZNsrUbR/ 59CXDaU9izcK96kCwZZTlNaDV1giYx7/ozKMdEmjRBHM5Bp/ySHhKAaSkC2Eo4NIv6aS oQr+51HF2SJ74gGDhcH9yhxU4KS+/CX8+kDXpXBfKCC6gdAeaUrd6c5QWpO00UusasqB U2TPrA9cCzXlinags6+bCD+G6E9nOgpAmLxaaxYeshuhGPdq+1WZzMJtoHopyFnOz1KT eZBBltB1PIBIyAt/yI86Q25BapH1Kh2WsOm33eqyHiqxiHizBvXFKAnsVjJZIvg9mZDJ 82bA== 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=ih9nZpFKdQtp/jnR4XaYa4e6X54Ve9TzjAXS7ra/gr8=; b=ciQ/hGw27Vaso1lrVNTlz0ZC9tIfHWWpJdQvQPrmkIKbuRgfMLKnWopBmv04zxT0u3 +ZYe3rf3vfjcLgDiQEUH7HQQ6HQHrTEpkJQoHH4WkqND14jax7ZMVYyqU/DK0YgN/e48 PP6s3UY0BK1xHN9jCeKFYNFzeuHiB1gIYOaRZQiCnJ0AlNta+wXqgpnOBj4BjsxwGiO6 cdPiNjCndCkeopFflLVDTUbciq7yGh4d6adBqFp9RiuQBSCc8udGd37gMhyBi5nwo8lD AD1NDSuZyjlmTZaMqCcqhoalWAFJPGtVhKfzPqQKEtt6TduyoNcPxGe7ODh9JWvic38z /zlg== X-Gm-Message-State: AOAM531LfAXZhJ6OUEI4k4VbiX0VHzNFnsUu8+fuZCa6MlbkxPkkfPfQ n5EncVux/RhJzFvLR3g23y9s19TvpwbukXp5HH8mqA== X-Received: by 2002:a62:115:0:b029:1b4:c593:acd4 with SMTP id 21-20020a6201150000b02901b4c593acd4mr5465555pfb.2.1611943838410; Fri, 29 Jan 2021 10:10:38 -0800 (PST) MIME-Version: 1.0 References: <20210126134603.49759-1-vincenzo.frascino@arm.com> <20210126134603.49759-4-vincenzo.frascino@arm.com> <77de8e48-6f68-bf27-0bed-02e49b69a12d@arm.com> <7da762df-6df3-e526-bec1-dc770709c00c@arm.com> In-Reply-To: <7da762df-6df3-e526-bec1-dc770709c00c@arm.com> From: Andrey Konovalov Date: Fri, 29 Jan 2021 19:10:26 +0100 Message-ID: Subject: Re: [PATCH v9 3/4] kasan: Add report for async mode To: Vincenzo Frascino Cc: Linux ARM , LKML , kasan-dev , Andrew Morton , Catalin Marinas , Will Deacon , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , 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:57 PM Vincenzo Frascino wrote: > >>>> +#ifdef CONFIG_KASAN_HW_TAGS > >>>> +void kasan_report_async(void) > >>>> +{ > >>>> + unsigned long flags; > >>>> + > >>>> + start_report(&flags); > >>>> + pr_err("BUG: KASAN: invalid-access\n"); > >>>> + pr_err("Asynchronous mode enabled: no access details available\n"); > > > > Could you also add an empty line here before the stack trace while at it? > > > > Sure no problem. Just to be clear: I mean adding an empty line into the report itself via pr_err("\n") :)