Re: page fault panic in scioctl and console-kit-daemon

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Kostik Belousov <kostikbel@...>
Cc: FreeBSD Current <freebsd-current@...>
Date: Wednesday, January 23, 2008 - 5:32 pm

On Wed, 2008-01-23 at 23:11 +0200, Kostik Belousov wrote:
ring=20
t-boot=20
other=20
 can=20
n.s:146
,
ructure
do not
patch ?
 esp.
t=20
t=20
r.
e
t
s

Right, and this is where I was confused.  I had thought from an old
reading of the CK code that CK opened each ttyvX device to perform the
ioctl.  It does not.  Instead, it opens /dev/console, and performs the
ioctl for each ttyvX on that fd.  That does explain the panic, but not
exactly why I did not see it.  I'm guessing a race condition, but I
can't be sure.


I really appreciate your attention to this.  Funny thing is, CK 0.2.4
was just released, and it is no longer started out of rc.d.  I've also
added error correcting in the CK code path.  The problem may disappear
depending on when CK is executed out of D-BUS.  However, it would be
good to prevent this in the kernel.  Pawel said he would try and test
this patch.

Joe

;
hread *td)
 int flag, struct thread *td)
, int flag, struct thread *td)
d,
--=20
Joe Marcus Clarke
FreeBSD GNOME Team      ::      gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: page fault panic in scioctl and console-kit-daemon, Pawel Worach, (Tue Jan 22, 2:26 pm)
Re: page fault panic in scioctl and console-kit-daemon, Kostik Belousov, (Wed Jan 23, 1:16 am)
Re: page fault panic in scioctl and console-kit-daemon, Pawel Worach, (Wed Jan 23, 3:34 pm)
Re: page fault panic in scioctl and console-kit-daemon, Joe Marcus Clarke, (Wed Jan 23, 3:55 pm)
Re: page fault panic in scioctl and console-kit-daemon, Kostik Belousov, (Wed Jan 23, 5:11 pm)
Re: page fault panic in scioctl and console-kit-daemon, Pawel Worach, (Wed Jan 23, 5:35 pm)
Re: page fault panic in scioctl and console-kit-daemon, Joe Marcus Clarke, (Wed Jan 23, 5:32 pm)
Re: page fault panic in scioctl and console-kit-daemon, Kostik Belousov, (Thu Jan 24, 8:42 am)
Re: page fault panic in scioctl and console-kit-daemon, Alexander Nedotsukov, (Wed Feb 20, 8:26 pm)
Re: page fault panic in scioctl and console-kit-daemon, Kostik Belousov, (Thu Feb 21, 11:47 am)
Re: page fault panic in scioctl and console-kit-daemon, Alexander Nedotsukov, (Fri Feb 22, 12:01 pm)
Re: page fault panic in scioctl and console-kit-daemon, Kostik Belousov, (Fri Feb 22, 1:29 pm)
Re: page fault panic in scioctl and console-kit-daemon, Alexander Nedotsukov, (Mon Mar 17, 9:02 am)
Re: page fault panic in scioctl and console-kit-daemon, Kostik Belousov, (Mon Mar 17, 9:18 am)
Re: page fault panic in scioctl and console-kit-daemon, Joe Marcus Clarke, (Thu Jan 24, 11:21 am)