Skip to content

Harden switch_to_user (LVBS)#844

Open
sangho2 wants to merge 1 commit into
mainfrom
sanghle/lvbs/harden_switch_to_user
Open

Harden switch_to_user (LVBS)#844
sangho2 wants to merge 1 commit into
mainfrom
sanghle/lvbs/harden_switch_to_user

Conversation

@sangho2
Copy link
Copy Markdown
Contributor

@sangho2 sangho2 commented May 14, 2026

This PR hardens LVBS's switch_to_user by checking whether a given user rsp is valid before switching back to the userspace. A valid user rsp should be a canonical userspace address. If not, iretq could end up with a kernel exception.

@sangho2 sangho2 force-pushed the sanghle/lvbs/harden_switch_to_user branch from 5babf11 to 03093f1 Compare May 14, 2026 01:53
@sangho2 sangho2 marked this pull request as ready for review May 14, 2026 02:08
@github-actions
Copy link
Copy Markdown

🤖 SemverChecks 🤖 No breaking API changes detected

Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered.

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.

1 participant