Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on May 21, 2015
  1. change nfs_boot_sendrecv to take sockaddr_in * instead of mbuf *

    rtr authored
    fixes m_serv (single mbuf leak) leak in kern/subr_tftproot.c
Commits on May 14, 2015
  1. in nfs_writerpc(), avoid a signed/unsigned problem in computing the

    chs authored
    number of bytes to back up in the uio when we need to resend a write RPC
    (eg. after a server crash) on a 64-bit platform.  should fix PR 35448.
Commits on May 9, 2015
  1. change sosend() to accept sockaddr * instead of mbuf * for nam.

    rtr authored
    bump to 7.99.16
Commits on May 2, 2015
  1. make connect syscall use sockaddr_big and modify pr_{send,connect}

    rtr authored
    nam parameter type from buf * to sockaddr *.
    
    final commit for parameter type changes to protocol user requests
    
    * bump kernel version to 7.99.15 for parameter type changes to pr_{send,connect}
Commits on Apr 21, 2015
  1. Cull unused INRENAME and INRELOOKUP from callers.

    riastradh authored
Commits on Apr 20, 2015
  1. Make VOP_LINK return directory still locked and referenced.

    riastradh authored
    Ride 7.99.10 bump.
  2. Nix LEASE_READ/LEASE_WRITE from <sys/vnode.h>.

    riastradh authored
Commits on Apr 3, 2015
  1. * change pr_bind to accept struct sockaddr * instead of struct mbuf *

    rtr authored
    * update protocol bind implementations to use/expect sockaddr *
      instead of mbuf *
    * introduce sockaddr_big struct for storage of addr data passed via
      sys_bind; sockaddr_big is of sufficient size and alignment to
      accommodate all addr data sizes received.
    * modify sys_bind to allocate sockaddr_big instead of using an mbuf.
    * bump kernel version to 7.99.9 for change to pr_bind() parameter type.
    
    Patch posted to tech-net@
      http://mail-index.netbsd.org/tech-net/2015/03/15/msg005004.html
    
    The choice to use a new structure sockaddr_big has been retained since
    changing sockaddr_storage size would lead to unnecessary ABI change. The
    use of the new structure does not preclude future work that increases
    the size of sockaddr_storage and at that time sockaddr_big may be
    trivially replaced.
    
    Tested by mrg@ and myself, discussed with rmind@, posted to tech-net@
Commits on Mar 27, 2015
  1. m_pullup() is called in rcvproc callback functions,

    hikaru authored
    so nfs_boot_sendrecv() should keep track of the head of mbuf chain.
    fixes kern/48746
Commits on Mar 6, 2015
  1. Fix uninitialized variable.

    maxv authored
    Found by The Brainy Code Scanner in FreeBSD.
Commits on Oct 11, 2014
  1. Define filesystem attributes with vfs dependency.

    uebayasi authored
Commits on Sep 5, 2014
  1. Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} t…

    matt authored
    …o get
    
    a correctly typed pointer.
  2. Don't use catch as a variable name.

    matt authored
  3. Don't nest structure definitions.

    matt authored
Commits on Aug 10, 2014
  1. Merge tls-earlyentropy branch into HEAD.

    tls authored
Commits on Aug 5, 2014
  1. split PRU_SEND function out of pr_generic() usrreq switches and put into

    rtr authored
    separate functions
    
       xxx_send(struct socket *, struct mbuf *, struct mbuf *,
           struct mbuf *, struct lwp *)
    
      - always KASSERT(solocked(so)) even if not implemented
    
      - replace calls to pr_generic() with req = PRU_SEND with calls to
        pr_send()
    
    rename existing functions that operate on PCB for consistency (and to
    free up their names for xxx_send() PRUs
    
      - l2cap_send() -> l2cap_send_pcb()
      - sco_send() -> sco_send_pcb()
      - rfcomm_send() -> rfcomm_send_pcb()
    
    patch reviewed by rmind
Commits on Jul 25, 2014
  1. Add VOP_FALLOCATE and VOP_FDISCARD to every vnode ops table I can

    dholland authored
    find.
    
    The filesystem ones all call genfs_eopnotsupp - right now I am only
    implementing the plumbing and we can implement fallocate and/or
    fdiscard for files later.
    
    The device ones call spec_fallocate (which is also genfs_eopnotsupp)
    and spec_fdiscard, which dispatches to the device-level op.
    
    The fifo ones all call vn_fifo_bypass, which also ends up being
    EOPNOTSUPP.
Commits on Jul 5, 2014
Commits on May 30, 2014
  1. Change NFS from rbtree to vcache.

    hannken authored
Commits on May 24, 2014
  1. Introduce a selector function to the vfs vnode iterator so that we don't

    christos authored
    need to vget() vnodes that we are not interested at, and optimize locking
    a bit. Iterator changes reviewed by Hannken (thanks), the rest of the bugs
    are mine.
Commits on May 18, 2014
  1. Add struct pr_usrreqs with a pr_generic function and prepare for the

    rmind authored
    dismantling of pr_usrreq in the protocols; no functional change intended.
    PRU_ATTACH/PRU_DETACH changes will follow soon.
    
    Bump for struct protosw.  Welcome to 6.99.62!
Commits on Apr 24, 2014
  1. PR/48426: Dimitris Karagkasidis: Convert to sized, unsigned types.

    christos authored
    Ideally we could use uint64_t, but for compatibility and performance
    we don't (for now)
Commits on Apr 16, 2014
  1. An (un)privileged user can easily make the kernel dereference a NULL

    maxv authored
    pointer.
    
    The kernel allows 'data' to be NULL; it's the fs's responsibility to
    ensure that it isn't NULL (if the fs actually needs data).
    
    ok christos@
Commits on Mar 23, 2014
  1. Change all vfsops to use C99 designated initializers.

    hannken authored
    No functional changes intended.
Commits on Mar 17, 2014
  1. Change nfs_sync() to use vfs_vnode_iterator.

    hannken authored
Commits on Feb 27, 2014
  1. The current implementation of vn_lock() is racy. Modification of

    hannken authored
    the vnode operations vector for active vnodes is unsafe because it
    is not known whether deadfs or the original file system will be
    called.
    
    - Pass down LK_RETRY to the lock operation (hint for deadfs only).
    
    - Change deadfs lock operation to return ENOENT if LK_RETRY is unset.
    
    - Change all other lock operations to check for dead vnode once
      the vnode is locked and unlock and return ENOENT in this case.
    
    With these changes in place vnode lock operations will never succeed
    after vclean() has marked the vnode as VI_XLOCK and before vclean()
    has changed the operations vector.
    
    Adresses PR kern/37706 (Forced unmount of file systems is unsafe)
    
    Discussed on tech-kern.
    
    Welcome to 6.99.33
Commits on Feb 25, 2014
  1. Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist be…

    pooka authored
    …fore
    
    the sysctl link sets are processed, and remove redundancy.
    
    Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
    lines of code.
Commits on Feb 7, 2014
  1. Change vnode operation lookup to return the resulting vnode *vpp unlo…

    hannken authored
    …cked.
    
    Change cache_lookup() to return an unlocked vnode.
    
    Discussed on tech-kern@
    
    Welcome to 6.99.31
Commits on Jan 23, 2014
  1. Change vnode operations create, mknod, mkdir and symlink to return

    hannken authored
    the resulting vnode *vpp unlocked.
    
    Discussed on tech-kern@
    
    Welcome to 6.99.30
Commits on Jan 17, 2014
  1. Change vnode operations create, mknod, mkdir and symlink to keep the

    hannken authored
    directory node dvp locked on return.
    
    Discussed on tech-kern@
    
    Welcome to 6.99.29
Commits on Dec 14, 2013
Commits on Nov 27, 2013
  1. CID 271162: NULL deref check

    christos authored
Something went wrong with that request. Please try again.