From owner-freebsd-bugs Thu May 2 12:50:19 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B0C3B37B41F for ; Thu, 2 May 2002 12:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g42Jo1x93273; Thu, 2 May 2002 12:50:01 -0700 (PDT) (envelope-from gnats) Received: from nts.nts.umn.edu (nts.nts.umn.edu [128.101.4.1]) by hub.freebsd.org (Postfix) with ESMTP id 27B7537B419 for ; Thu, 2 May 2002 12:43:49 -0700 (PDT) Received: from ssb2.nts.umn.edu (ssb2.nts.umn.edu [160.94.7.1]) by nts.nts.umn.edu (8.9.1a/8.9.1) with ESMTP id OAA26285; Thu, 2 May 2002 14:43:45 -0500 (CDT) Received: (from scott@localhost) by ssb2.nts.umn.edu (8.11.6/8.10.2) id g42Jhjt20130; Thu, 2 May 2002 14:43:45 -0500 (CDT) Message-Id: <200205021943.g42Jhjt20130@ssb2.nts.umn.edu> Date: Thu, 2 May 2002 14:43:45 -0500 (CDT) From: Scott Bertilson Reply-To: Scott Bertilson To: FreeBSD-gnats-submit@FreeBSD.org Cc: Scott Bertilson X-Send-Pr-Version: 3.113 Subject: kern/37677: off by 1 in $FreeBSD: src/sys/kern/subr_diskslice.c,v 1.82.2.6 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37677 >Category: kern >Synopsis: off by 1 in $FreeBSD: src/sys/kern/subr_diskslice.c,v 1.82.2.6 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 02 12:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Scott Bertilson >Release: FreeBSD 4.4-RELEASE-p1 i386 >Organization: University of Minnesota / OIT >Environment: System: FreeBSD ssb2.nts.umn.edu 4.4-RELEASE-p1 FreeBSD 4.4-RELEASE-p1 #13: Tue Apr 30 19:16:22 CDT 2002 scott@ssb2.nts.umn.edu:/home/src/sys/compile/SSB i386 >Description: line 916: || pp->p_offset + pp->p_size > end offset + size should always be 1 more than end >How-To-Repeat: ran into this while trying to get a drive with OpenBSD partitions to mount >Fix: || (pp->p_offset + pp->p_size - 1) > end as at line 948 (u_long)(pp->p_offset + pp->p_size - 1), >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message