From owner-cvs-src@FreeBSD.ORG Sun Apr 15 13:24:04 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5FDB816A406; Sun, 15 Apr 2007 13:24:04 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 3A1CB13C4BF; Sun, 15 Apr 2007 13:24:04 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l3FDO4B6005711; Sun, 15 Apr 2007 13:24:04 GMT (envelope-from des@repoman.freebsd.org) Received: (from des@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l3FDO4NN005709; Sun, 15 Apr 2007 13:24:04 GMT (envelope-from des) Message-Id: <200704151324.l3FDO4NN005709@repoman.freebsd.org> From: Dag-Erling Smorgrav Date: Sun, 15 Apr 2007 13:24:03 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/fs/procfs procfs_dbregs.c procfs_regs.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Apr 2007 13:24:04 -0000 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