#110015 FS server crashs a subhurd

Package:
hurd
Source:
hurd
Submitter:
Moritz Schulte
Date:
2015-06-12 21:30:04 UTC
Severity:
important
#110015#5
Date:
2001-08-25 14:42:51 UTC
From:
To:
Hi,
i can simply crash my subhurd by doing:

for i in $(seq 4); do
  settrans -afg /foo /hurd/ext2fs /dev/bar
done

Here's a log:
--------------------------------
eris2:~# for i in $(seq 4); do settrans -afg foo /hurd/ext2fs /dev/hd0s6; done
ext2fs: /dev/hd0s6: warning: FILESYSTEM NOT UNMOUNTED CLEANLY; PLEASE fsck
ext2fs: /dev/hd0s6: warning: MOUNTED READ-ONLY; MUST USE `fsysopts --writable'
ext2fs: /dev/hd0s6: warning: FILESYSTEM NOT UNMOUNTED CLEANLY; PLEASE fsck
ext2fs: /dev/hd0s6: warning: MOUNTED READ-ONLY; MUST USE `fsysopts --writable'
/hurd/init: Crashing system; essential task kernel diederis2:~#
init: notifying ext2fs /dev/hd0s6 of shutdown...done
init: notifying ext2fs /dev/hd0s6 of shutdown...(no longer present)
init: notifying pfinet of shutdown...done
init: notifying ext2fs.static hd0s5 of shutdown...done
init: Killing pid 40
[...]
init: Killing pid 115
/hurd/init: Getting procinfo for pid 117: No such process
/hurd/init: Getting task for pid 118: No such process
init: Killing pid 119
init: Killing pid 129
init: Killing pid 135
init: Killing proc server
init: Exitinginit: Would reboot Mach with flags 0
bye
--------------------------------

I'll try to debug that.

	moritz
-- 
Moritz Schulte <moritz@chaosdorf.de> http://www.chaosdorf.de/moritz/
Debian/GNU supporter - http://www.debian.org/ http://www.gnu.org/
GPG fingerprint = 3A14 3923 15BE FD57 FC06  B501 0841 2D7B 6F98 4199

#110015#10
Date:
2001-08-25 17:21:14 UTC
From:
To:
Hi again,

the following change in init/init.c works:
--- init.c.orig Sat Aug 25 19:12:13 2001 +++ init.c Sat Aug 25 19:12:26 2001 @@ -1182,7 +1182,8 @@ S_startup_essential_task (mach_port_t se startup_essential_task_reply (reply, replytype, 0); init_stdarrays (); - frob_kernel_process (); + if (! fakeboot) + frob_kernel_process (); launch_system (); But i don't know wether that's the right fix. The problem is that frob_kernel_process() tries to register the kernel task (pid 2) as an essential task: err = proc_pid2task (procserver, 2, &task); if (err) { error (0, err, "cannot get kernel task port"); return; } err = proc_task2proc (procserver, task, &proc); if (err) { error (0, err, "cannot get kernel task's proc server port"); mach_port_deallocate (mach_task_self (), task); return; } /* Mark the kernel task as an essential task so that we never want to task_terminate it. */ err = record_essential_task ("kernel", task); assert_perror (err); This doesn't work right in a subhurd. Btw, I find the mixture of parent-Hurd-processes and child-Hurd-processes quite confusing. Is it difficult to modify proc so that you can _not_ see the processes from parent Hurds? IMHO, this would be better. moritz -- Moritz Schulte <moritz@chaosdorf.de> http://www.chaosdorf.de/moritz/ Debian/GNU supporter - http://www.debian.org/ http://www.gnu.org/ GPG fingerprint = 3A14 3923 15BE FD57 FC06 B501 0841 2D7B 6F98 4199
#110015#15
Date:
2001-08-25 22:19:13 UTC
From:
To:
Hmm.  So what is PID 2 in your sub-hurd, if it's not the kernel?  It's true
that a sub-hurd should probably not diddle the kernel task as the boot hurd
does--but I don't know a reason it shouldn't work.  I am still confused as
to how this crash happened.

Just use ps options to ignore unregistered tasks when you are looking.

At some point we might want to make `boot' give a fake host-priv port and
then do things like report a subset of tasks to the sub-hurd.

#110015#24
Date:
2015-06-12 21:25:45 UTC
From:
To:
Guten Tag 110015,

die Arbeitsagentur stellt Ihnen nachfolgend eine interessante Arbeit in einem internationalen Team im Home Office Bereich vor, ohne Fahrzeit, ohne Anfahrt, ohne Verkehrsstress. Wir schaffen qualitative und attraktive Arbeitsplätze nicht nur in der Stadt, sondern auch auf dem Land landesweit und bieten gleichzeitig hervorragende Qualität für unsere Auftraggeber.
Ab sofort sind folgenden Stellen zu besetzen:
Mitarbeiter (m/w) für Home Office Tätigkeit im Bereich Telekommunikation und Büroarbeit

Wir bieten Ihnen einen Job in Festanstellung oder als Freiberufler mit einem Stundenlohn von 20 € in der Stunde in eigenverantwortlichen Arbeitsweise und einer familienfreunflichen Beschäftigungsform, sowie eine spannende Tätigkeit ohne Fahrzeit mit flexiblen Arbeitszeiten.
Es werden keine Fachkenntnisse vorausgesetzt. Die Einarbeitung findet schrittweise durch professionelle Mitarbeiter statt. Die benötigte technische Ausrüstung stellen wir Ihnen ohne zusätzlichen Kosten zur Verfügung. Die Stelle kann sogar nebenberuflich aufgenommen werden, sowie von Rentnern und Hausfrauen.

Wir erwarten:

- Unproblematischer Umgang mit E-mail, PC und Internet
- Deutsch fließend, Fremdsprachen sind von Vorteil
- Genauigkeit, Ehrlichkeit und Zielstrebigkeit

Ihre Tätigkeitsschwerpunkte sind:

- Dokumente empfangen, überarbeiten und weitersenden
- Dokumente scannen/kopieren
- Emails bearbeiten
- Aufgabe im Home-office in freier Zeiteinteilung
- Arbeit mit zur Verfügung gestellten Büroausstattungen

Sie sind bereit für flexible Tätigkeit und die Arbeit im Homeoffice? Sollten Sie an diesen Arbeitsstellen Interesse haben, dann senden Sie uns ein Bewerbungsschreiben an: Adafi1765@australiamail.com
Wir freuen uns auf Ihre Antwort, Ihre persönlichen Daten behandeln wir selbstverständlich vertraulich.

Hochachtungsvoll

Maier Gbr.