Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Thiago Jung Bauermann via Gdb <gdb@sourceware.org>
To: "Schimpe, Christina" <christina.schimpe@intel.com>
Cc: gdb@sourceware.org
Subject: Shadow stack command to host related subcommands (was Re: Shadow stack backtrace command name)
Date: Thu, 21 Dec 2023 19:26:42 -0300	[thread overview]
Message-ID: <87h6kbfazh.fsf@linaro.org> (raw)
In-Reply-To: <SN7PR11MB7638DE1337F8F0F0282EBD56F996A@SN7PR11MB7638.namprd11.prod.outlook.com>


Hello again,

This isn't about backtrace, but still related to your proposal I think.

"Schimpe, Christina via Gdb" <gdb@sourceware.org> writes:

> It is configurable using "print symbol-filename" and COUNT.
> The command can be called by the following names:
> - "info shadow-stack bt", "info shadow-stack backtrace"
>
> From my perspective, the command name has the following pros and cons:
> (+) Easy to understand by just looking at the command name.
> (-) Rather long syntax

As I mentioned yesterday, I like the "bt -shadow" proposal but I'd also
like to have an "info shadow-stack" command (or just "shadow-stack" as
suggested by Guinevere) to hang a couple of GCS subcommands onto, e.g.:

info shadow-stack enabled
info shadow-stack locked

which would get/set the GCS features that are enabled or locked. These
correspond to a couple of entries in the structure returned by ptrace's
NT_ARM_GCS regset in Linux:

struct user_gcs
{
  uint64_t features_enabled;
  uint64_t features_locked;
  uint64_t gcspr_el0;
};

Initially I thought of exposing them as pseudo-registers, but this way
seems more straightforward.

What do you think? Would this be useful for Intel CET as well?

-- 
Thiago

  parent reply	other threads:[~2023-12-21 22:27 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-20  9:42 Shadow stack backtrace command name Schimpe, Christina via Gdb
2023-12-20 10:59 ` Guinevere Larsen via Gdb
2023-12-20 15:11   ` Schimpe, Christina via Gdb
2023-12-20 11:38 ` Luis Machado via Gdb
2023-12-20 15:35   ` Schimpe, Christina via Gdb
2023-12-20 15:57     ` Luis Machado via Gdb
2023-12-21  4:35       ` Thiago Jung Bauermann via Gdb
2023-12-21 22:26 ` Thiago Jung Bauermann via Gdb [this message]
2024-01-09  8:34   ` Shadow stack command to host related subcommands (was Re: Shadow stack backtrace command name) Schimpe, Christina via Gdb
2023-12-23 18:22 ` Shadow stack backtrace command name Tom Tromey
2023-12-28 22:34   ` Thiago Jung Bauermann via Gdb
2024-01-09 10:21     ` Schimpe, Christina via Gdb
2024-07-05 18:16       ` Florian Weimer via Gdb
2024-07-09 14:50         ` Schimpe, Christina via Gdb
2024-07-09 15:16           ` Florian Weimer via Gdb
2024-07-10  9:07             ` Schimpe, Christina via Gdb
2024-07-10 10:05               ` Florian Weimer via Gdb
2024-07-10 11:35                 ` Schimpe, Christina via Gdb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h6kbfazh.fsf@linaro.org \
    --to=gdb@sourceware.org \
    --cc=christina.schimpe@intel.com \
    --cc=thiago.bauermann@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox