iris, and darwin tweaks

Jan 12, 2008 11:43

i think iris might be starting to talk. the words are few, and the pronunciation odd enough that i'm never really sure, but i think i've been hearing "fish", "kitty", "guido" (one of the cats), and "no" used in more-or-less appropriate situations. rebbyribs is a bit more skeptical, but i'm sure iris will talk clearly and distinctly soon enough.

note: what ( Read more... )

font, darwin, mac os x, iris, console

Leave a comment

two_pi_r January 12 2008, 20:14:01 UTC
dd of=/dev/kmem bs=1 seek=$(( 0x$(nm /mach_kernel | fgrep _iso_font | awk '{print $1}') + 128 * 16 ))

Yow. How many kernel panics did you have to go through when figuring this out?!

Reply

bsittler January 12 2008, 20:24:45 UTC
zero. the font is a publicly exported symbol (_iso_font) with known contents (256 8x16-bit bitmaps), the font layout is well known (ISO 8859-1 with VT100 alternate character set [blank in the distributed kernel] in the C1 range [corresponding to characters 0x80-0x9f]), the script is carefully modifying only the correct region of the font, and it has a precondition check to make sure the previous data was the expected blank cells ( ... )

Reply

two_pi_r January 12 2008, 20:44:35 UTC
touch&eeacute;. I just see "dd of=/dev/kmem" and think "panic city". Of course, the only thing I've done with dd of=/dev/kmem is with an if=/dev/urandom just to see what happens, so hey.

Reply

bsittler January 12 2008, 20:47:08 UTC
yeah, that sounds fun. how well did it stand up to the fuzzing?

Reply

two_pi_r January 13 2008, 01:14:50 UTC
Not very. The screen barfed colors and blinks, and of course the machine locked.

Reply

bsittler January 13 2008, 15:28:01 UTC
yeah, most software (kernels included) is not written with "major random memory corruption" as a design constraint. i guess interplanetary probes and some satellites are exceptions here.

Reply

bsittler January 12 2008, 20:39:16 UTC
that said, i did go ahead and add a warning and disclaimer. Bad Things Might Happen, but you run this stuff entirely at your own risk and if your computer turns into a smoking brick that's your problem, not mine ☺.

Reply

bsittler January 12 2008, 20:41:38 UTC
also the earlier project of examining the darwin/mac os x console font in c (which is a read-only operation) made me fairly confident about what was where.

Reply

two_pi_r January 12 2008, 20:45:01 UTC
Also touch&eeacute;

Reply


Leave a comment

Up