cvs commit: src/sys/net bpf.c bpf_zerocopy.c bpf_zerocopy.h

From: Christian S.J. Peron <csjp_at_FreeBSD.org>
Date: Sat, 5 Jul 2008 20:11:28 +0000 (UTC)
csjp        2008-07-05 20:11:28 UTC

  FreeBSD src repository

  Modified files:
    sys/net              bpf.c bpf_zerocopy.c bpf_zerocopy.h 
  Log:
  SVN rev 180310 on 2008-07-05 20:11:28Z by csjp
  
  Make sure we are clearing the ZBUF_FLAG_IMMUTABLE any time a free buffer
  is reclaimed by the kernel.  This fixes a bug resulted in the kernel
  over writing packet data while user-space was still processing it when
  zerocopy is enabled.  (Or a panic if invariants was enabled).
  
  Discussed with: rwatson
  
  Revision  Changes    Path
  1.196     +25 -0     src/sys/net/bpf.c
  1.5       +18 -0     src/sys/net/bpf_zerocopy.c
  1.3       +1 -0      src/sys/net/bpf_zerocopy.h
Received on Sat Jul 05 2008 - 20:11:38 UTC