I call exploit_get_krw_and_kernel_base, then try to do a few read and write operations.
After some time, r/w primitives break and kread64 starts to return 0.
If I comment out the call to exploitation_cleanup inside exploit_get_krw_and_kernel_base and instead call it manually after being done using the primitives, everything works.


iPhone 13 Pro, 15.1.1
I call exploit_get_krw_and_kernel_base, then try to do a few read and write operations.
After some time, r/w primitives break and kread64 starts to return 0.
If I comment out the call to exploitation_cleanup inside exploit_get_krw_and_kernel_base and instead call it manually after being done using the primitives, everything works.
iPhone 13 Pro, 15.1.1