Skip site navigation (1)Skip section navigation (2)
Date:      24 Nov 2001 13:06:47 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Martin Blapp <mb@imp.ch>
Cc:        <jhb@freebsd.org>, <freebsd-current@freebsd.org>
Subject:   Re: Still panic() with userland binary on CURRENT
Message-ID:  <xzpelmov0dk.fsf@flood.ping.uio.no>
In-Reply-To: <20011123110955.Q3094-100000@levais.imp.ch>
References:  <20011123110955.Q3094-100000@levais.imp.ch>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
This is caused by incorrect usage of callout_reset() in linux_misc.c:
it passes a struct thread * argument instead of the struct proc *
realitexpire() expects.  Untested patch attached.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org


[-- Attachment #2 --]
Index: linux_misc.c
===================================================================
RCS file: /home/ncvs/src/sys/compat/linux/linux_misc.c,v
retrieving revision 1.109
diff -u -r1.109 linux_misc.c
--- linux_misc.c	10 Oct 2001 23:06:51 -0000	1.109
+++ linux_misc.c	24 Nov 2001 12:02:26 -0000
@@ -189,7 +189,7 @@
 		callout_stop(&td->td_proc->p_itcallout);
 	if (it.it_value.tv_sec != 0) {
 		callout_reset(&td->td_proc->p_itcallout, tvtohz(&it.it_value),
-		    realitexpire, td);
+		    realitexpire, td->td_proc);
 		timevaladd(&it.it_value, &tv);
 	}
 	td->td_proc->p_realtimer = it;
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpelmov0dk.fsf>