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

Simon Schubert corecode at crater.dragonflybsd.org
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 
  Log:
  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


http://www.dragonflybsd.org/cvsweb/src/sys/emulation/linux/i386/linprocfs/linprocfs_subr.c.diff?r1=1.22&r2=1.23&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/vfs/procfs/procfs_subr.c.diff?r1=1.17&r2=1.18&f=u





More information about the Commits mailing list