Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Immortal process
@ 1994-06-21 15:39 anh
  1994-06-23 13:18 ` Eric Werme
  0 siblings, 1 reply; 3+ messages in thread
From: anh @ 1994-06-21 15:39 UTC (permalink / raw)




Hello,

Here is a strange thing on OSF/1 2.0. I have an application which opens a
packetfilter, pf0. If pf0 is not set to promiscuous mode, the application
just sits there. One cannot kill it not even after su'ed to root. But via
another session, su'ed to root, set pf0 to promiscuous mode with pfconfig
then the application gets killed.

Strange eh? I thought root could kill any process. I used kill -KILL pid
and kill -9 pid.

Anh



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Immortal process
  1994-06-21 15:39 Immortal process anh
@ 1994-06-23 13:18 ` Eric Werme
  1994-06-23 15:22   ` Peter da Silva
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Werme @ 1994-06-23 13:18 UTC (permalink / raw)


anh@kuhub.cc.ukans.edu writes:
>Here is a strange thing on OSF/1 2.0. I have an application which opens a
>packetfilter, pf0. If pf0 is not set to promiscuous mode, the application
>just sits there. One cannot kill it not even after su'ed to root. But via
>another session, su'ed to root, set pf0 to promiscuous mode with pfconfig
>then the application gets killed.

I figured the maintainer of the packet filter would be interested, so
I passed this on.  His reply was "What timing!  I just fixed that bug 5
minutes ago...".

>Strange eh? I thought root could kill any process. I used kill -KILL pid
>and kill -9 pid.

Not at all. Root can signal any process, but in many cases the process
is in an uninteruptible state.  These are often used only
brief periods, like waiting for DMA'd disk I/O to complete where you
don't want to let thing stop right away.
-- 
Eric (Ric) Werme		| werme@zk3.dec.com
Digital Equipment Corp.		| This space intentionally left blank.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Immortal process
  1994-06-23 13:18 ` Eric Werme
@ 1994-06-23 15:22   ` Peter da Silva
  0 siblings, 0 replies; 3+ messages in thread
From: Peter da Silva @ 1994-06-23 15:22 UTC (permalink / raw)


In article <werme.772377517@alingo.zk3.dec.com>,
Eric Werme <werme@zk3.dec.com> wrote:
> Not at all. Root can signal any process, but in many cases the process
> is in an uninteruptible state.  These are often used only
> brief periods, like waiting for DMA'd disk I/O to complete where you
> don't want to let thing stop right away.

To be precise, in UNIX signals (not interrupts, but software signals) are
only recieved when the system makes the transition from kernel mode to
user mode. To make that useful for asynchronous signals, there are explicit
checks in various places in the kernel to force this transition if a signal
is pending. If there is no check in some loop in the kernel, then the process
will never receive that signal.

(as an aside, this is why signals used to always interrupt a read... the read
system call would see the signal and return to user mode. Once it had done
this, there was no way to safely re-enter kernel mode and restart the read.
4.3 derived kernels have the return code from the signal handler call the
sigreturn system call. This makes for cleaner user mode handling of signals
(since you don't have to check for reads returning EINTR), but it's undoubtedly
quite tricky to implement without opening up security holes. I assume OSF/1
does something similar.)

Immortal processes are usually the result of device drivers and other loaded
or linked modules not doing enough checks. It's rare that the kernel will
leave you in this state elsewhere.
-- 
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U`
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                       "Hast Du heute schon Deinen Wolf umarmt?"


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1994-06-23 15:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-21 15:39 Immortal process anh
1994-06-23 13:18 ` Eric Werme
1994-06-23 15:22   ` Peter da Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox