cvs commit: src/sys/kern vfs_mount.c

Alfred Perlstein alfred at FreeBSD.org
Sun Sep 5 15:24:28 PDT 2004


alfred      2004-09-05 22:24:28 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_mount.c 
  Log:
  It's too easy to panic the machine when INVARIANTS are turned on
  and you botch a call to nmount(2).
  
  This is because there is an INVARIANTS check that asserts that
  opt->len must be zero if opt->val is not NULL.  The problem is that
  the code does not actually follow this invariant if there is an
  error while processing mount options.
  
  Fix the code to honor the INVARIANT.
  
  Silence on: fs@
  
  Revision  Changes    Path
  1.139     +2 -1      src/sys/kern/vfs_mount.c


More information about the cvs-all mailing list