[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Race-condition for device drivers etc.



In article <9408220843.AA10023@math.uni-muenster.de> you write:
>Hello!
>
>When updating the manual page for dcntl, I came over a serious race
>condition there: if a device driver or file system is started as
>a process of its own, makes the call for installing a device and
>is then killed before doing the Ptermres call,

 ..or forking a daemon

> then we have dangling
>pointers in the system. This will surely lead to unwanted crashes.
>
>So my idea to fix this is that the kernel holds a list of uninstall
>functions for each process, where the handlers get called when
>the process exits. This list would be totally internal, so even these
>functions are in kernel-land. This way a device driver can be
>written as a daemon process, and can even exit without doing too much
>harm to the system integrity.
>
>What do you think about this?

 hmm sounds useful.  could this also be used to fix the /dev
unlink-open-file bug?

 just thinking...
	Juergen