* John Polstra <[EMAIL PROTECTED]> [000823 15:03] wrote:
> In article <[EMAIL PROTECTED]>,
> Alfred Perlstein  <[EMAIL PROTECTED]> wrote:
> 
> > John can you try this patch and let us know if you still experiance
> > crashes?
> 
> Will do.  I'll let you know what happens.

Let's take a more paraniod approach (back out my spl in chgsbsize):


Index: uipc_socket2.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/uipc_socket2.c,v
retrieving revision 1.61
diff -u -u -r1.61 uipc_socket2.c
--- uipc_socket2.c      2000/07/31 08:23:43     1.61
+++ uipc_socket2.c      2000/08/23 22:23:47
@@ -448,10 +448,17 @@
        struct sockbuf *sb;
        struct socket *so;
 {
+       int s;
 
        sbflush(sb);
+       /*
+        * if we don't spl an interrupt can recurse into us and call chgsbsize
+        * before we zero sb->sb_hiwat
+        */
+       s = splnet();
        (void)chgsbsize(so->so_cred->cr_uid, -(rlim_t)sb->sb_hiwat, RLIM_INFINITY);
        sb->sb_hiwat = sb->sb_mbmax = 0;
+       splx(s);
 }
 
 /*

-- 
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to