Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2260624pxp; Mon, 21 Mar 2022 15:13:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyNCcurAcs0h8alKL6sT02YVLypgfCKoqeJqrL3ZQ/P6VP5xxgQwtxWEye4mEV5VPNKa3m X-Received: by 2002:a05:6a00:1992:b0:4fa:7438:870a with SMTP id d18-20020a056a00199200b004fa7438870amr17766057pfl.48.1647900794218; Mon, 21 Mar 2022 15:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647900794; cv=none; d=google.com; s=arc-20160816; b=u2mjegdBvzjiBRIaLCmGU71g05VmQ4FfBdzQIVfgl0LJxEDq8Y8n+GPsiJT+ZDGsLC iQOoRW4oiQxhbnlz7qPbpSgIvahtpqlPyJVXW/qOf50QXQdl7Zq2N7AHnJhyglLcUTMz lMMKlRWC3gM8vcFIyXfWFzhC6LUILMPjTGPQfD9ivBQryVK4Hnxurz1YTZpIVbow2S/1 kn7eS6XxfRrTcDGt3qOHHS8B3+mBGztJO6uClR5gRoNnynXV4Y+jiiyqeiSayAza+QNA jaZaMv6CWmbF17b6XvVBJt8H/rfNCl3Q/uhMsMT8z6SbA9tBhJgfJIz3+o7o1yvj1+xl 5mVg== 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=Yzq93xtEK5Ypv1Cyb7lhCiwNr/P453Ucxb4rl4WdV38=; b=BBWLxlvDpcAHicpvfG8V9P7Xih+a+26fjWvmY5jXz1nRGrvM6rS8HiJfAJDhn78Rs4 9q4khYSo0Qt6SNhKLzDedoArILbX0U0fg/qfHsL0z7w+r61Q2trIWtZJSnfKePEIIlC5 eiFxt+WstT1gdm9pNFx9QjPq97ImWRqmdcV/neFYlB1Da5JJhVC5kuRx1YrVVZzFdqPV JN26PMmqWXSJrIWyHLw+jBBNNFEfGzW0Jlv1zOTMdmQb8rMv9d4q05sgT5E6Gl9fmORn tIte2zcsp72QSbO3bjFIXwOsgCtQmOklEbU4kJMFnuHemgBbJhumWUI0Nhdb8JY8J3b9 EP0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ElcsB4TY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w14-20020a63490e000000b0038290f9d5eesi3208353pga.114.2022.03.21.15.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:13:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ElcsB4TY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 41B24312248; Mon, 21 Mar 2022 14:31:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343679AbiCTVNu (ORCPT + 99 others); Sun, 20 Mar 2022 17:13:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234691AbiCTVNr (ORCPT ); Sun, 20 Mar 2022 17:13:47 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BC461760D8 for ; Sun, 20 Mar 2022 14:12:23 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id x4so14857456iop.7 for ; Sun, 20 Mar 2022 14:12:23 -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=Yzq93xtEK5Ypv1Cyb7lhCiwNr/P453Ucxb4rl4WdV38=; b=ElcsB4TYJb9n+5lEitobm3ZSjG3fkDFL4FH2b5LtN5EuGK2YoxHWRIyBVXcRbZqTrh OQ1EpTA2na4VWdB9XKHqjKsdyCgN6tePkJ6dc7+GxsO7mMmhIVxsCRwKMK+N9NOQ/HNV LlS7PghQOViEjUvwusdHtnhkqHXSt0cmZy1CSD+vcurd6bAoHGKk7wf7wRv0Q6+/N7rx ewyFg2p6sbedUSmXPqhA7f3W3q8FgrOJzoBzG5jctH9CBGYycpNNOXuUOG5Eu3luxfhf CqWoVvlwQe1WFMoawM2J6/gj/1Lv85tVrvFfC/+4TkuStWniZ9LXb5oV3bl3q8XjD1Ji ZVIw== 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=Yzq93xtEK5Ypv1Cyb7lhCiwNr/P453Ucxb4rl4WdV38=; b=Q45iZy1m8LoP3h3rl2A1iOuQfCqEET81HRqgJ+jsk2skMADo+LTXkWzdVQYzoZAD/W FgBlU51x4g84JviNZarC5rZfEBGWZJjWnR788YoMAUMM+QzXRmxxZW+juXHnzBCUv7Zr x8fSDHrsdaVlgR4wMjdTPlwYlbNQi/QlcNvRSvEuPSjfj5CBwUkL0NZGP4QCmYf7CXh/ BQLmC6iVbmkY8X90ZpK+VwD21MGpEpVplLAA2VAgDrYZPivMoaNgKqWkmlJjk+0zVi0m FDAH0uB4y8g9Cp93YsihIRjl2y8av51DwLIFOe4ft9Lxem/S364OfVXXwsTmjwQ5MaJO 2uxQ== X-Gm-Message-State: AOAM532YMHcFmlSOseZGJ4zl4qeLAEyUcfyrNIaaet7KIomt9zKEMHGV WiNA+EQOxqhq27WefwahfKuqRDL39cFBMYWqwFY= X-Received: by 2002:a05:6638:1351:b0:31a:299b:6d87 with SMTP id u17-20020a056638135100b0031a299b6d87mr9859261jad.22.1647810742908; Sun, 20 Mar 2022 14:12:22 -0700 (PDT) MIME-Version: 1.0 References: <57133fafc4d74377a4a08d98e276d58fe4a127dc.1647115974.git.andreyknvl@google.com> In-Reply-To: From: Andrey Konovalov Date: Sun, 20 Mar 2022 22:12:12 +0100 Message-ID: Subject: Re: [PATCH] kasan, scs: collect stack traces from shadow stack To: Marco Elver Cc: andrey.konovalov@linux.dev, Alexander Potapenko , Andrew Morton , Dmitry Vyukov , Andrey Ryabinin , kasan-dev , Vincenzo Frascino , Catalin Marinas , Will Deacon , Mark Rutland , Sami Tolvanen , Peter Collingbourne , Evgenii Stepanov , Linux Memory Management List , LKML , Andrey Konovalov , Florian Mayer Content-Type: text/plain; charset="UTF-8" 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 On Mon, Mar 14, 2022 at 9:57 AM Marco Elver wrote: > > > Another option here is to instruct stack depot to get the stack from > > the Shadow Call Stack. This would avoid copying the frames twice. > > Yes, I think a stack_depot_save_shadow() would be appropriate if it > saves a copy. Sounds good, will do in v2.