DragonFly commits List (threaded) for 2007-08
DragonFly BSD
DragonFly commits List (threaded) for 2007-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Simon Schubert <corecode@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 25 Aug 2007 16:27:02 -0700 (PDT)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]