Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix in order to enable the cmse_nonsecure_entry attribute securely in Rust #76

Merged

Conversation

hug-dev
Copy link

@hug-dev hug-dev commented Sep 23, 2020

Hello 👋

Following the process described here to add an upstreamed bug fix in Rust's fork.

The PR enabling the cmse_nonsecure_entry in Rust is open here.
The specific comment that started the need of this bug fix is here.

Without this bug fix, the cmse_nonsecure_entry attribute will be a source of security problems (seg faults, information disclosure) if a function with more than 4 u32 arguments is decorated with it.

Original review in LLVM.

security boundary

It was never supported and that part was accidentally omitted when
upstreaming D76518.

Differential Revision: https://reviews.llvm.org/D86478

Change-Id: If6ba9506eb0431c87a1d42a38aa60e47ce263039
@cuviper
Copy link
Member

cuviper commented Sep 23, 2020

LGTM, thanks!

@cuviper cuviper merged commit 2c56ba7 into rust-lang:rustc/11.0-2020-09-22 Sep 23, 2020
vext01 added a commit to vext01/llvm-project that referenced this pull request Jul 20, 2023
76: Update CI to Debian bookworm. r=ptersilie a=vext01



Co-authored-by: Edd Barrett <vext01@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants