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

[kernel] Invalidate L1 buffers properly, update block drivers to sync #1661

Merged
merged 4 commits into from
Aug 22, 2023
Merged

[kernel] Invalidate L1 buffers properly, update block drivers to sync #1661

merged 4 commits into from
Aug 22, 2023

Conversation

ghaerr
Copy link
Owner

@ghaerr ghaerr commented Aug 22, 2023

The kernel L1 buffers were being left mapped to their corresponding block device past a close or unmount, possibly allowing them to be reused with invalid data should another device (floppy or USB drive) be inserted into the same hardware or the contents changed while unmounted.

Also updates all block drivers (BIOS, SSD and RD) to properly do a forced sync and buffer invalidate on close.

Word-aligns L1 buffers.

@ghaerr ghaerr merged commit 07a74cd into ghaerr:master Aug 22, 2023
1 check passed
@ghaerr ghaerr deleted the inval branch August 23, 2023 15:34
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