Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Apr 2007 13:24:03 +0000 (UTC)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/fs/procfs procfs_dbregs.c procfs_regs.c
Message-ID:  <200704151324.l3FDO4NN005709@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
des         2007-04-15 13:24:03 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/procfs        procfs_dbregs.c procfs_regs.c 
  Log:
  Don't reset uio_offset to 0 before returning.  Instead, refuse to service
  requests where uio_offset is not 0 to begin with.  This fixes a long-
  standing bug where e.g. 'cat /proc/$$/regs' would loop forever.
  
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.27      +3 -1      src/sys/fs/procfs/procfs_dbregs.c
  1.32      +4 -2      src/sys/fs/procfs/procfs_regs.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704151324.l3FDO4NN005709>