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

tss: Initialize iopb to be empty instead of zero #357

Merged
merged 1 commit into from
Mar 26, 2022
Merged

tss: Initialize iopb to be empty instead of zero #357

merged 1 commit into from
Mar 26, 2022

Conversation

josephlr
Copy link
Contributor

Fixes #195.

To make the IOPB invalid we set it to 1 more than the TSS segment limit. This is what linux does.

Signed-off-by: Joe Richey [email protected]

@josephlr josephlr requested review from phil-opp and Freax13 March 26, 2022 07:51
Copy link
Member

@Freax13 Freax13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

To make the IOPB invalid we set it to 1 more than the TSS segment limit. This is what linux does.

To quote the Intel SDM:

If the I/O bit map base address is greater than or equal to the TSS segment limit, there is no I/O permission map, [...] (Volume 1, 19.5.2)

@josephlr josephlr merged commit ad2f3b3 into master Mar 26, 2022
@josephlr josephlr deleted the iopb branch March 26, 2022 21:07
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.

The iomap_base of TaskStateSegment shouldn't be initialized to zero
2 participants