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

remove uneeded & broken set_fs()/get_fs() for kernel 5.10+ #345

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

omegacoleman
Copy link
Contributor

using set_fs() and get_fs() to access the memory is long uneeded and finally removed in linux kernel 5.10 +, this PR fixes build against 5.10+ by cease this behavior with a macro, RTW_NO_SET_FS. By default it is only enabled for 5.10+, but I recommend to define that any time as this set_fs(KERNEL_DS) usage may cause severe security holes in some way.

@omegacoleman
Copy link
Contributor Author

also, this branch contains all commits needed for building against 5.10+ https://github.com/omegacoleman/rtl8812AU_8821AU_linux/tree/kernel-5.10

@sybrenstuvel
Copy link

Thank you @omegacoleman for your efforts to get it working on a new kernel! I can confirm that I got your kernel-5.11 branch compiled on kernel 5.14.0-kali2-amd64

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.

2 participants