[OpenAFS-devel] series of 1.4.2 fileserver crashes in rxi_FreeDataBufsTSFPQ (rx_packet.c)

Rainer Toebbicke rtb@pclella.cern.ch
Wed, 06 Dec 2006 10:04:49 +0100


Derrick J Brashear wrote:
> Try this
> 
> --- rx_packet.c 31 Jul 2006 15:08:20 -0000      1.35.2.25
> +++ rx_packet.c 5 Dec 2006 17:45:01 -0000
> @@ -2617,8 +2617,8 @@
>         if (nb)
>             rxi_FreePackets(nb, &q);
> 
> -       p->niovecs = i;
> -       p->wirevec[i - 1].iov_len += len;
> +       p->niovecs = MAX(2, i);
> +       p->wirevec[MAX(2, i) - 1].iov_len += len;
>      }
>      RXS_PreparePacket(conn->securityObject, call, p);
>  }


OK, I'll give it a try...  (although we have of course moved things 
elsewhere now - I'll set up another 1.4.2 server with that patch, 
should be quick).


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rainer Toebbicke
European Laboratory for Particle Physics(CERN) - Geneva, Switzerland
Phone: +41 22 767 8985       Fax: +41 22 767 7155