* John Polstra <[EMAIL PROTECTED]> [000823 15:55] wrote:
> In article <[EMAIL PROTECTED]>,
> Alfred Perlstein  <[EMAIL PROTECTED]> wrote:
> > > Nope, that doesn't fix it.  I got the same panic on the very first
> > > try.
> > 
> > hmm, when does it happen?  During the transfer or at the end of the
> > transfer?
> 
> The first time I reported the problem it had happened during the
> transfer.  This time (with your patch) the transfer actually completed
> from the peer's point of view before the panic occurred.  That's not
> many data points, so it could be coincidence.  I'll keep you posted
> if I can make it happen again.

more paranioa:


Index: uipc_socket.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/uipc_socket.c,v
retrieving revision 1.80
diff -u -u -r1.80 uipc_socket.c
--- uipc_socket.c       2000/08/07 17:52:08     1.80
+++ uipc_socket.c       2000/08/23 23:06:13
@@ -187,8 +187,10 @@
 sodealloc(so)
        struct socket *so;
 {
+       int     s;
 
        so->so_gencnt = ++so_gencnt;
+       s = splnet();   /* protect against interrupts messing with sbsize */
        if (so->so_rcv.sb_hiwat)
                (void)chgsbsize(so->so_cred->cr_uid,
                    -(rlim_t)so->so_rcv.sb_hiwat, RLIM_INFINITY);
@@ -204,6 +206,7 @@
                        FREE(so->so_accf->so_accept_filter_str, M_ACCF);
                FREE(so->so_accf, M_ACCF);
        }
+       splx(s);
        crfree(so->so_cred);
        zfreei(so->so_zone, so);
 }

-- 
-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