Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp944311pxb; Wed, 6 Apr 2022 05:01:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp6KuzW+LdTQa1x7INq9o+XI2AMErz2rGv8lIuxYz4MZni7jNx7FyC0V7ebKRfx5k0rg55 X-Received: by 2002:a05:6e02:1a2c:b0:2ca:2f11:c60b with SMTP id g12-20020a056e021a2c00b002ca2f11c60bmr3980167ile.75.1649246479776; Wed, 06 Apr 2022 05:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649246479; cv=none; d=google.com; s=arc-20160816; b=OeQJYCE7jwBKQ7e+QRZzTdYtWTPPMQhas5XzZM/3K5d07FF3Ta/MMmFhy/uj5WWPdD 8ruH2symf+LNNYqEwooxA5/15W29htG4duRuCCEKT5K9HaRyhYqHfThRyybNqJJSCXyK +giarwSUDOSgBWkLn5QMEqLx/ZibFgj2U4/JIp8FBECkaJYE7sauNETha2mj+5QWsqEG Z4PBvEMoJg9a0ztC7EzhVvTQrXx2/6S1UrgzFHN/O1lQD5evgBZnlS1hd1767inTebZk qvbmK0ej5SRHc7k9NChHjNdtzqii1fKL8gAEraoHhICe6gHic7jvCBMWvZBaMHchw3Ma k8nQ== 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=i90PF/DM5gs1nc9riW1XFzxllCg/ID7Hqq31+vtTsic=; b=0rFfDVCkwREipFEWrWZT8kRCTTkA+xBjX3pZYoHDvJdwivw0ZOLU9IDvFEvdcqFVQ3 FMzmGT1MUSCbPPOCmgUrcpJhh9FjMFLfHLKs3ummtk80LXbg2ajogJRX8hk6GOR7B4fX WN0xHpNlUHCf40zmqs834fHfxSC97dvQRd05uVSrZBKI2SqXtbF1Bh6f/0Dd4hufEn36 MdwB25TZ7fDGgRcybHvr/D+WRWTcU3m5brlIgHZvfOUYqPF2Wcn3vUboE9bVQ40CwFV9 jQjxmTsTCl/m9nC98bukrb7eD3YAZFXtQSMaYChomPsnISUlAtKsbnM8dco5sHB9SY28 VIEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qtUTFJ/g"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m14-20020a056638260e00b0031a2a421615si9586010jat.55.2022.04.06.05.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:01:19 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qtUTFJ/g"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CA6693855A3; Wed, 6 Apr 2022 03:24:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1846623AbiDFCHv (ORCPT + 99 others); Tue, 5 Apr 2022 22:07:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1455110AbiDEP7i (ORCPT ); Tue, 5 Apr 2022 11:59:38 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A90841EE8DA for ; Tue, 5 Apr 2022 08:10:13 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id k25so15481779iok.8 for ; Tue, 05 Apr 2022 08:10:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=i90PF/DM5gs1nc9riW1XFzxllCg/ID7Hqq31+vtTsic=; b=qtUTFJ/g1RvmtICeCTpIrCa5NnK+IhQBj7uH6TfjiHX7mchfUAZyJvvq2CX4JqMIdc HomyNsm3ZT7/ZlBHsHgqWzrh1bZEohlKLXpmwqxP/eLMQuphAwwtWhy2EWZ2NqabF/gA 8OOStkLcAkIVWggAWhbJ8vHVlMC4vuiOmO2XdlkQUbUtZBmnmWEIJaTmhmDF+q4F1sil TXYnJZ/8ZEChtBOY+WwBw9LGc5fDokN+eRUt2EnMX/FPP5yQtzIMzwwiAtfVUx440ZcM cWoURbq+sfF+SaaDBn6LUPmMUdkWS3/tL6CHUNxuR5SDfsJMi55XaLW0AcrzuZFK9Z4m YTiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=i90PF/DM5gs1nc9riW1XFzxllCg/ID7Hqq31+vtTsic=; b=xDDeeU9S5UOhJJ296BU2PmX2kxhjdJLEUUBeFkXDoy1INUqFN7A/e854RPRjZF8f0p sllYYUbusrbATxnUnRzevMBqV64aGOqGr2UQQNR6W+Hijtz5xvZMefUKFIFj1KtAVKoL htvgBXstraujilUUy0nJk7dxEjXKW2mEAEKfAdmdt5dYi4dbiTZj7slK/aebDTtiOMC7 Tk00lcUP8fPQ2Dxr+uT0DdzrFvJHVg93HZDNLY9ubHsIoFzdCb3lFXsfK/BVTt9sdXAy xBuM5MObuJNCg3CR9oaVBgpRcBHe2LdWBXvs3krR4hBY0R4T8h13p2eV62MjwGjY09x5 TLOw== X-Gm-Message-State: AOAM531jlVgvsUB3JZXPjZxHxE49dVH5yfVX9UEgdP3GeIswHiGQAJeH 4mHVul1Mgvmzxb7AqvM5ofhDYyX9QkkKVrZjtrQ= X-Received: by 2002:a05:6602:2b8e:b0:5e9:74e7:6b01 with SMTP id r14-20020a0566022b8e00b005e974e76b01mr2000131iov.127.1649171413078; Tue, 05 Apr 2022 08:10:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andrey Konovalov Date: Tue, 5 Apr 2022 17:10:02 +0200 Message-ID: Subject: Re: [PATCH v2 0/4] kasan, arm64, scs, stacktrace: collect stack traces from Shadow Call Stack To: Mark Rutland Cc: andrey.konovalov@linux.dev, Marco Elver , Alexander Potapenko , Catalin Marinas , Will Deacon , Andrew Morton , Dmitry Vyukov , Andrey Ryabinin , kasan-dev , Vincenzo Frascino , Sami Tolvanen , Peter Collingbourne , Evgenii Stepanov , Florian Mayer , Linux Memory Management List , LKML , Andrey Konovalov Content-Type: multipart/mixed; boundary="00000000000040470005dbe9a484" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --00000000000040470005dbe9a484 Content-Type: text/plain; charset="UTF-8" On Thu, Mar 31, 2022 at 2:39 PM Mark Rutland wrote: > > I've had a quick look into this, to see what we could do to improve the regular > unwinder, but I can't reproduce that 30% number. > > In local testing the worst can I could get to was 6-13% (with both the > stacktrace *and* stackdepot logic hacked out entirely). > > I'm testing with clang 13.0.0 from the llvm.org binary releases, with defconfig > + SHADOW_CALL_STACK + KASAN_