Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp169355pxu; Wed, 2 Dec 2020 18:36:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoHRT21t6mXpzjTG9xw3PyxF/srlrtep9f3oYUTlVEv4Abq9XC8QJxIy7gXb/Bjagyer5i X-Received: by 2002:a17:906:7f11:: with SMTP id d17mr680513ejr.534.1606962960482; Wed, 02 Dec 2020 18:36:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606962960; cv=none; d=google.com; s=arc-20160816; b=sOZpr/ITFWWXFFXX5lGdws/ZBEVJ+ScZ2p1YppKT1cVCvof2UXX5JIZgFU5k10GTxf VskHmMnS2+TDWzCat/FaNOPNAY+T/BiGZfx/QUXe0uV8nXV915ww7wnDZXUgQtEsZ5vR r+ePyzHW8A9Ds17l8N675ytmsMzmWiSwufcWKDbaNInMScD60GAyh1tJZu3Nf3TgGiuB oLE2TiucuXlS4DWmZh9ijjvTMEbr+G+gxuxdyMAjiiXRcaXB2TMw34pvzRdzDW03ffmK pEtjN17yY6UXGgoGeGlPDHOsnIfzrgf6ykTMZeHWoK64py8D/LMdwlEMdgN7avo+/Xdl 85lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=jWcKMQ/JVqAycMM+EhF+OdwUxhQp+NzRmrcB3HO2q/8=; b=DfoetPK6oZGSpfwTfZcKaU5H6WoAy2clWRaHD9CWVKm+oL5Dc/wGek40uhONE26l+4 3MPIXNnOuJiQqHiDgRPqleYtb6ZVDbIkcyWcGXhGzja3UuNvuot6c9PY48bKq8hN0y/i fyqwjF71mxEKfM+LERQ7/MR3TX8NSB91Wt7f2JIPh2GP5HdL8FTfpF+i0hUgeImzuTBX hkzlMKik3hWNyVwRayPZhjeJA9Quj/OfepKgdONn8mIjmS4CMEvw8zfj88bep2TuTXyn jMr9TziRi2fmm5/GvjwcChxG4/IHyyDqwIz0X63WumYC0xl9gNYykLDKxlqzBhNY+PDH REsw== 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si122165edq.302.2020.12.02.18.35.37; Wed, 02 Dec 2020 18:36: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; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729552AbgLCCbn (ORCPT + 99 others); Wed, 2 Dec 2020 21:31:43 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:56517 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725859AbgLCCbm (ORCPT ); Wed, 2 Dec 2020 21:31:42 -0500 X-UUID: 6f5e8fa78bb74a52827525f34941024e-20201203 X-UUID: 6f5e8fa78bb74a52827525f34941024e-20201203 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 205625155; Thu, 03 Dec 2020 10:31:00 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 3 Dec 2020 10:30:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 3 Dec 2020 10:30:38 +0800 From: Walter Wu To: Andrew Morton , Jonathan Corbet , Marco Elver , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Andrey Konovalov , Matthias Brugger CC: , , , , wsd_upstream , , Walter Wu Subject: [PATCH v5 4/4] kasan: update documentation for generic kasan Date: Thu, 3 Dec 2020 10:30:37 +0800 Message-ID: <20201203023037.30792-1-walter-zh.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Generic KASAN also supports to record the last two workqueue stacks and print them in KASAN report. So that need to update documentation. Signed-off-by: Walter Wu Suggested-by: Marco Elver Acked-by: Marco Elver Reviewed-by: Dmitry Vyukov Reviewed-by: Andrey Konovalov Cc: Andrey Ryabinin Cc: Alexander Potapenko Cc: Jonathan Corbet --- v4: - remove timer stack description v3: - Thanks for Marco suggestion --- Documentation/dev-tools/kasan.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/kasan.rst index c09c9ca2ff1c..3cb556ceb4a5 100644 --- a/Documentation/dev-tools/kasan.rst +++ b/Documentation/dev-tools/kasan.rst @@ -190,8 +190,9 @@ function calls GCC directly inserts the code to check the shadow memory. This option significantly enlarges kernel but it gives x1.1-x2 performance boost over outline instrumented kernel. -Generic KASAN prints up to 2 call_rcu() call stacks in reports, the last one -and the second to last. +Generic KASAN also reports the last 2 call stacks to creation of work that +potentially has access to an object. Call stacks for the following are shown: +call_rcu() and workqueue queuing. Software tag-based KASAN ~~~~~~~~~~~~~~~~~~~~~~~~ -- 2.18.0