Skip to content

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

Open
omegacoleman wants to merge 1 commit intoabperiasamy:masterfrom
omegacoleman:pick-no-set-fs
Open

remove uneeded & broken set_fs()/get_fs() for kernel 5.10+#345
omegacoleman wants to merge 1 commit intoabperiasamy:masterfrom
omegacoleman:pick-no-set-fs

Conversation

@omegacoleman
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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