xcellerator / linux_kernel_hacking

Linux Kernel Hacking
GNU General Public License v2.0
640 stars 126 forks source link

Module 3.7_char_interfering updates #20

Open prockallsyms opened 7 months ago

prockallsyms commented 7 months ago

Since

https://github.com/torvalds/linux/commit/22b0a222af4df8ee9bb8e07013ab44da9511b047

and

https://github.com/torvalds/linux/commit/1b388e7765f2eaa137cf5d92b47ef5925ad83ced

the file_operations structs have changed read and writing functions to prefer read_iter and write_iter. These functions now take kiocb and iov_iter structs, which mucks a bit of the coding methodology in the current representation.

I have implemented an alternative solution to the issue by hooking the single function get_random_bytes_user that I plan on submitting a PR for tonight.