Revert "remove old kernel code; cleanup equality"
Revert "remove old kernel code; cleanup equality"

This reverts commit 3711d2aa7aac214e86344165828102906664ec13.

It broke string equality. A rewrite still needs to happen, but this
isn't the one we should use.

lenary/cs4414-ps4