Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Kernel panic in latest OS X in 10 lines of C (gist.github.com)
32 points by tyilo on Feb 20, 2015 | hide | past | favorite | 10 comments


THATS'S CLEARLY 23 LINES


Can someone explain how this is causing a kernel panic?


Not a single line of comment, nor any explanation on why this panics.


This is probably silly of me, but if you had an understanding of the mach subsystem this is pretty straightforward to understand, no comments necessary.


Ran it on my MBP. It crashed:

panic(cpu 6 caller 0xffffff80201b61ad): "NO ENTRY TO DELETE"@/SourceCache/xnu/xnu-2782.20.26/osfmk/vm/vm_map_store_rb.c:118


Maybe it panics because of lack of comments


What's the significance? Do we need to panic?


Does this actually work? Can anyone confirm?


Instapanic on 10.10.2 (build 14C109, xnu-2782.10.72~2), without root. See also (works on iOS and OS X (if you change the target in Xcode)): https://github.com/jdmoreira/KernelPanic-10LOC

Update: here's the panic report:

https://gist.github.com/bd096ba0194df8a579d8

Update 2: here's where the panic occurred

vm_map_store_entry_unlink_rb

https://opensource.apple.com/source/xnu/xnu-2782.1.97/osfmk/...

Update 3: other panic reports http://pastebin.com/w3pTx3bh https://twitter.com/dcbz32/status/534452119819276288


Doesn't work, I get kernel panic :(




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: