home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!bs
- From: bs@Germany.EU.net (Bernard Steiner)
- Newsgroups: comp.unix.bsd
- Subject: Yet another way to cause a kernel panic
- Date: 17 Aug 1992 15:06:16 GMT
- Organization: EUnet Backbone, Dortmund, Germany
- Lines: 24
- Distribution: world
- Message-ID: <16of99INNide@disaster.Germany.EU.net>
- NNTP-Posting-Host: walhalla.germany.eu.net
-
- Just found a nice way to cause a panic:
- #include <unistd.h>
- main()
- {
- chroot("/bin");
- execl("./bin/sh", "-i", 0);
- }
-
- compile; log in as root, cd / and execute program...
- bin/sync syncs the disks, while bin/ls starts listing and then panics
- the system. WHY ?
-
- Just because the process root is _above_ the process cwd is no legitimate
- reason imho ;-)
-
- Cheers,
- Bernard
- --
- Bernard Steiner, FB Informatik/IRB, Uni Dortmund, vox +49 231 755 2444
- Postfach 500500, D-W-4600 Dortmund 50, Germany fax +49 231 755 2386
- bs@Germany.EU.net ...!uunet!unido!bs
-
- *III And they gave it Instructions, but knew it not. } From The Book of Nome,
- *IV It is, they said, a Box with a Funny Voice. } Mezzanine v.III-IV
-