From: Deepak Gupta <debug@rivosinc.com>
To: opensbi@lists.infradead.org
Subject: [PATCH Zisslpcfi 0/2] Support for zisslpcfi in opensbi
Date: Sun, 11 Dec 2022 21:33:38 -0800 [thread overview]
Message-ID: <20221212053338.GA937267@debug.ba.rivosinc.com> (raw)
In-Reply-To: <20221212030804.927309-1-debug@rivosinc.com>
I forgot to include URLs to qemu and linux implementation of Zisslpcfi
This is where I am maintaining qemu implementation
https://github.com/deepak0414/qemu/tree/gh_Zisslpcfi-0.1
And kernel implementation here
https://github.com/deepak0414/linux-riscv-cfi/tree/Zisslpcfi-0.1_v6.1-rc2
On Sun, Dec 11, 2022 at 07:08:02PM -0800, Deepak Gupta wrote:
>Zisslpcfi [1] extension extends risc-v architecture to mitigate against
>control-flow integrity attacks (ROP/JOP/COP).
>
>Zisslpcfi uses bits (b23-b29) in (m/s/vs) status CSR for enabling cfi in
>lesser privileged mode and record cfi state. One such state is expected
>landing pad (ELP). If forward cfi is enabled, indirect call/jmp updates
>hart's ELP state (1bit) to true. ELP state is cleared only by a landing
>pad instruction else trap is delivered with ELP state recorded in sstatus
>CSR.
>
>This two patch series adds following changes to opensbi
> - Adds support in opensbi to detect zisslpcfi
> - trap redirection updates ELP state accordingly
>
>[1] - https://github.com/riscv/riscv-cfi
>
>Deepak Gupta (2):
> include: adding support for zsslpcfi encodings
> lib: sbi: zsslpcfi detection and elp cfi state reflect back in status
>
> include/sbi/riscv_encoding.h | 6 ++++++
> include/sbi/sbi_hart.h | 2 ++
> lib/sbi/sbi_hart.c | 21 +++++++++++++++++++++
> lib/sbi/sbi_trap.c | 18 ++++++++++++++++++
> 4 files changed, 47 insertions(+)
>
>--
>2.25.1
>
prev parent reply other threads:[~2022-12-12 5:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-12 3:08 [PATCH Zisslpcfi 0/2] Support for zisslpcfi in opensbi Deepak Gupta
2022-12-12 3:08 ` [PATCH Zisslpcfi 1/2] include: adding support for zsslpcfi encodings Deepak Gupta
2022-12-21 13:39 ` Bin Meng
2022-12-12 3:08 ` [PATCH Zisslpcfi 2/2] lib: sbi: zsslpcfi detection and elp cfi state reflect back in status Deepak Gupta
2022-12-21 13:43 ` Bin Meng
2022-12-21 13:59 ` Andreas Schwab
2022-12-21 20:01 ` Deepak Gupta
2022-12-21 18:41 ` Deepak Gupta
2022-12-22 1:29 ` Bin Meng
2022-12-12 5:33 ` Deepak Gupta [this message]
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=20221212053338.GA937267@debug.ba.rivosinc.com \
--to=debug@rivosinc.com \
--cc=opensbi@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.