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

Christian S.J. Peron csjp at FreeBSD.org
Sat Jul 5 20:11:39 UTC 2008


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


More information about the cvs-src mailing list