From owner-freebsd-current Sun Jan 26 05:36:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA09032 for current-outgoing; Sun, 26 Jan 1997 05:36:12 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA09027 for ; Sun, 26 Jan 1997 05:36:10 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id FAA06928; Sun, 26 Jan 1997 05:36:03 -0800 (PST) Message-Id: <199701261336.FAA06928@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: Luigi Rizzo cc: swallace@ece.uci.edu, current@FreeBSD.ORG Subject: Re: exec bug In-reply-to: Your message of "Sun, 26 Jan 1997 13:00:03 +0100." <199701261200.NAA27988@labinfo.iet.unipi.it> From: David Greenman Reply-To: dg@root.com Date: Sun, 26 Jan 1997 05:36:03 -0800 Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> >> >execve() maps the first page to memory and calls exec_aout_imgact() >> >> >which then accesses this page and fails. The system then gets >> >> >a page fault while in kernel mode and dies. >> > >> >Given this description, would this also occur when trying to run >> >a program from an nfs-mounted partition which at some point becomes >> >unavailable ? If not (as I hope!) what is the difference ? >> >> In the case of NFS, the read should block indefinately. I'm not sure what >> will happen if the NFS is mounted "soft", however. > >that would be a major problem then! Not any more so than any other read blocking indefinately. > Wouldn't it be possible to track >the exact reason of the fault inside the handler and avoid panicing ? >After all there are no performance problems at that point.. ...and just how do you tell the exec code that a page fault that occured while it was accessing the image header was "fatal"? The only mechanism we have for this is signals, and that doesn't work when you're executing in the kernel like this. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project