7

CFI: Fix ICE in KCFI non-associated function pointers by maurer · Pull Request #...

 5 months ago
source link: https://github.com/rust-lang/rust/pull/123635
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

CFI: Fix ICE in KCFI non-associated function pointers #123635

Conversation

Contributor

We oddly weren't testing the more usual case of casting non-methods to function pointers. The KCFI shim insertion logic would ICE on these due to asking for an irrefutable associated item if we cast a function to a function pointer without needing a traditional shim.

r? @compiler-errors

rustbot

added PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

labels

Apr 8, 2024

Collaborator

Some changes occurred in tests/ui/sanitizer

cc @rust-lang/project-exploit-mitigations, @rcvalle

Member

@compiler-errors compiler-errors

left a comment

🤦 haha thanks for catching this, I should have caught this

@bors r+ rollup

Contributor

📌 Commit 284da5d has been approved by compiler-errors

It is now in the queue for this repository.

bors

added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

labels

Apr 8, 2024

bors

merged commit 0520200 into

rust-lang:master

Apr 8, 2024

11 checks passed

rust-timer

added a commit to rust-lang-ci/rust that referenced this pull request

Apr 8, 2024

rustbot

added this to the 1.79.0 milestone

Apr 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

compiler-errors

compiler-errors approved these changes
Labels
PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects

None yet

Milestone

1.79.0

Development

Successfully merging this pull request may close these issues.

None yet

4 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK