home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4275 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.1 KB  |  36 lines

  1. Path: sparky!uunet!mcsun!Germany.EU.net!bs
  2. From: bs@Germany.EU.net (Bernard Steiner)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Yet another way to cause a kernel panic
  5. Date: 17 Aug 1992 15:06:16 GMT
  6. Organization: EUnet Backbone, Dortmund, Germany
  7. Lines: 24
  8. Distribution: world
  9. Message-ID: <16of99INNide@disaster.Germany.EU.net>
  10. NNTP-Posting-Host: walhalla.germany.eu.net
  11.  
  12. Just found a nice way to cause a panic:
  13. #include <unistd.h>
  14. main()
  15. {
  16.     chroot("/bin");
  17.     execl("./bin/sh", "-i", 0);
  18. }
  19.  
  20. compile; log in as root, cd / and execute program...
  21. bin/sync syncs the disks, while bin/ls starts listing and then panics
  22. the system. WHY ?
  23.  
  24. Just because the process root is _above_ the process cwd is no legitimate
  25. reason imho ;-)
  26.  
  27. Cheers,
  28.     Bernard
  29. -- 
  30. Bernard Steiner, FB Informatik/IRB, Uni Dortmund,    vox +49 231 755 2444
  31. Postfach 500500, D-W-4600 Dortmund 50, Germany       fax +49 231 755 2386
  32. bs@Germany.EU.net          ...!uunet!unido!bs
  33.  
  34. *III  And they gave it Instructions, but knew it not. } From The Book of Nome,
  35. *IV   It is, they said, a Box with a Funny Voice.     }      Mezzanine v.III-IV
  36.