News for hackers. Stuff that matters.
Re:DIY: kernel panic OS X and iOS in 10 LOC by oleavr on Saturday February 21, 2015 @09:17AM (#9085559)
Interesting, that's potentially very good news! To be sure, could you try again with the latest code snippet? I forgot to remove the VM_PROT_EXECUTE flag for non-jailbroken devices.
Re:DIY: kernel panic OS X and iOS in 10 LOC by cfrs on Saturday February 21, 2015 @09:30AM (#9085593)
No kernel panic, EXC_BAD_ACCESS in Debug/Release confs.

Possibly I have provided wrong prototypes, mach_vm is n/a in iOS: https://gist.github.com/cfr/425812debdb2a6d0449f

Re:DIY: kernel panic OS X and iOS in 10 LOC by oleavr on Saturday February 21, 2015 @10:01AM (#9085666)
Where does it crash? Try bumping the argument on line 21 – if you're unlucky library at index 1 contains mach_vm_read_overwrite and is suddenly no longer executable (since we change its second memory page from R-X to RW- due to stock kernels not allowing RWX pages).
Re:DIY: kernel panic OS X and iOS in 10 LOC by cfrs on Saturday February 21, 2015 @10:27AM (#9085732)
Yes, it crashes with kernel panic now.
Re:DIY: kernel panic OS X and iOS in 10 LOC by oleavr on Saturday February 21, 2015 @05:50PM (#9087345)
Yay!