cvs commit: src/sys/emulation/linux/i386/linprocfs linprocfs_subr.c src/sys/vfs/procfs procfs_subr.c

Simon Schubert corecode at
Sat Aug 25 16:29:47 PDT 2007

corecode    2007/08/25 16:27:02 PDT

DragonFly src repository

  Modified files:
    sys/emulation/linux/i386/linprocfs linprocfs_subr.c 
    sys/vfs/procfs       procfs_subr.c 
  Fix a bug in linprocfs and hold lwps to prevent a race condition.
  Linprocfs rolls its own prototype for procfs_domem.  The function was
  changed to take a struct lwp *, but neither the private prototype, nor
  the procfs_domem call were changed accordingly.  As a result any access
  to the linprocfs process memory file resulted in a panic.
  Procfs and linprocs perform potentially blocking calls, so HOLD and
  RELE the lwps so that they can't be destroyed while procfs is blocked.
  Revision  Changes    Path
  1.23      +6 -2      src/sys/emulation/linux/i386/linprocfs/linprocfs_subr.c
  1.18      +2 -0      src/sys/vfs/procfs/procfs_subr.c

More information about the Commits mailing list