From owner-freebsd-bugs Tue Mar 9 10:30:23 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9EF641504F for ; Tue, 9 Mar 1999 10:30:15 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id KAA22951; Tue, 9 Mar 1999 10:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from mailgate.spa.is.uec.ac.jp (ns.spa.is.uec.ac.jp [130.153.67.2]) by hub.freebsd.org (Postfix) with ESMTP id D47881504B for ; Tue, 9 Mar 1999 10:20:59 -0800 (PST) (envelope-from msaitoh@spa.is.uec.ac.jp) Received: from atami.spa.is.uec.ac.jp (atami.spa.is.uec.ac.jp [130.153.67.21]) by mailgate.spa.is.uec.ac.jp (8.8.8+2.7Wbeta7/3.6W+spa-2.0a) with ESMTP id DAA14908 for ; Wed, 10 Mar 1999 03:20:40 +0900 (JST) Received: by atami.spa.is.uec.ac.jp (8.8.8/3.6W+spa-null-2.0b) id DAA08352; Wed, 10 Mar 1999 03:20:40 +0900 (JST) Message-Id: <199903091820.DAA08352@atami.spa.is.uec.ac.jp> Date: Wed, 10 Mar 1999 03:20:40 +0900 (JST) From: SAITOH Masanobu Reply-To: msaitoh@spa.is.uec.ac.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/10511: incorrect return value in kvm_read(3) and kvm_write(3) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 10511 >Category: bin >Synopsis: incorrect return value in kvm_read(3) and kvm_write(3) >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 9 10:30:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: SAITOH Masanobu >Release: all >Organization: University of Electro-Communications >Environment: -current >Description: manpage says: + RETURN VALUES + Upon success, the number of bytes actually transferred is returned. Oth- + erwise, -1 is returned. but, it returns 0 on error. And, some programs ckecks like: if (kvm_read(kd, addr, buf, len) < 0) This causes serious problems. >How-To-Repeat: This bug cause pidentd to infinite-loops. >Fix: return -1 on error. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message