home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / hackers / 1853 < prev    next >
Encoding:
Text File  |  1992-12-27  |  1.6 KB  |  47 lines

  1. Newsgroups: alt.hackers
  2. Path: sparky!uunet!caen!batcomputer!bouncer
  3. From: eirik@elf.TN.Cornell.EDU (Eirik Fuller)
  4. Subject: stripslash
  5. Message-ID: <1992Dec28.030636.2226@tc.cornell.edu>
  6. Sender: news@tc.cornell.edu
  7. Nntp-Posting-Host: earache.tc.cornell.edu
  8. Organization: Cornell Theory Center
  9. References: <1992Dec28.012047.29726@tc.cornell.edu>
  10. Date: Mon, 28 Dec 1992 03:06:36 GMT
  11. Approved: The Slash Stripper
  12. Lines: 33
  13.  
  14. My previous posting contained an adb hack which fixes an annoying bug
  15. in subsequently built kernels.  It was only after I devised this patch
  16. that it occurred to me that it was just as easy to patch the kernel
  17. itself, and that there is no need to build a new kernel, or even
  18. reboot.  Maybe it's past due time for sleep ... anyway, I poked around
  19. some more, and discovered that only one function, au_lookuppn, seems
  20. to call the function named stripslash, so I poked a couple of nops
  21. into it.  That also seems to fix the bug.  I doubt the second nop is
  22. necessary, but what the hey ...
  23.  
  24.  
  25. 21:39:53 # ls -ldg /bin/
  26. lrwxrwxrwx  1 root     wheel           7 Nov 28 22:27 /bin/ -> usr/bin
  27. 21:39:56 # adb -w -k /vmunix /dev/mem
  28. physmem 1bfd
  29. au_lookuppn/4i
  30. _au_lookuppn:
  31. _au_lookuppn:    save    %sp, -0x170, %sp
  32.         st    %i3, [%fp + 0x50]
  33.         call    _stripslash
  34.         mov    %i0, %o0
  35. au_lookuppn+8 /W 0x1000000 0x1000000
  36. _au_lookuppn+8: 0x40000192      =       0x1000000
  37. _au_lookuppn+0xc:               0x90100018      =       0x1000000
  38. au_lookuppn/4i
  39. _au_lookuppn:
  40. _au_lookuppn:   save    %sp, -0x170, %sp
  41.                 st      %i3, [%fp + 0x50]
  42.                 nop
  43.                 nop
  44. 21:44:57 # ls -ldg /bin/
  45. drwxr-sr-x  3 bin      staff        4608 Nov 24 16:14 /bin/
  46. 21:45:08 # 
  47.