Kami's Corner

Grepping the Linux kernel is peak entertainment

Heya! So, as it turns out, grepping the Linux kernel for random stuff is way more fun than it has any right to be.
Here are some highlights I've found:

Things that are currently in the kernel

net/ipv4/ip_gre.c

/* All the routers (except for Linux) return only  
          8 bytes of packet payload. It means, that precise relaying of  
          ICMP in the real Internet is absolutely infeasible.  
  
          Moreover, Cisco "wise men" put GRE key to the third word  
          in GRE header. It makes impossible maintaining even soft  
          state for keyed GRE tunnels with enabled checksum. Tell  
          them "thank you".  
  
          Well, I wonder, rfc1812 was written by Cisco employee,  
          what the hell these idiots break standards established  
          by themselves???  
          */

drivers/net/ethernet/sun/sunhme.c

/* Only Sun can take such nice parts and fuck up the programming interface  
* like this.  Good job guys...  
*/

/drivers/char/agp/amd64-agp.c

/*  
* This hack alters the order element according  
* to the size of a long. It sucks. I totally disown this, even  
* though it does appear to work for the most part.  
*/

kernel/locking/lockdep.c

/*  
* More smoking hash instead of calculating it, damn see these  
* numbers float.. I bet that a pink elephant stepped on my memory.  
*/

Best-Of dumb kernel comments

(Because for some reason theres a list of these in (Documentation/kernel-hacking/hacking.rst)

Documentation/kernel-hacking/hacking.rst

/* Sun, you just can't beat me, you just can't.  Stop trying,  
            * give up.  I'm serious, I am going to kick the living shit  
            * out of you, game over, lights out.  
            */

Documentation/kernel-hacking/hacking.rst

   /*  
    * Sun people can't spell worth damn. "compatability" indeed.  
    * At least we *know* we can't spell, and use a spell-checker.  
    */  
  
   /* Uh, actually Linus it is I who cannot spell. Too much murky  
    * Sparc assembly will do this to ya.  
    */

I might do another one of these if I find more stuff, but for now thats it.
Hope you had fun reading these :3