From owner-freebsd-bugs Mon May 24 7:30: 4 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 E8BF714CFD for ; Mon, 24 May 1999 07:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA53748; Mon, 24 May 1999 07:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 7360A14BD3; Mon, 24 May 1999 07:25:49 -0700 (PDT) Message-Id: <19990524142549.7360A14BD3@hub.freebsd.org> Date: Mon, 24 May 1999 07:25:49 -0700 (PDT) From: amobbs@allstor-sw.co.uk To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: kern/11870: Memory access permission checks wrong way around in sys/cam/cam_periph.c Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 11870 >Category: kern >Synopsis: Memory access permission checks wrong way around in sys/cam/cam_periph.c >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 24 07:30:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Andrew Mobbs >Release: FreeBSD-3.0-RELEASE >Organization: Allstor Software Ltd. >Environment: FreeBSD symbiosis.software.plasmon 3.0-RELEASE FreeBSD 3.0-RELEASE #3: Mon Apr 19 17:31:43 BST 1999 andrew@symbiosis.software.plasmon:/usr/src/sys/compile/990322_symbiosis i386 (N.B. The patch is against FreeBSD-stable) >Description: cam_periph_mapmem tests to see if the user-land buffer can be read or written depending on whether the dataflow is CAM_DIR_OUT or CAM_DIR_IN. Unfortunatly these checks are the wrong way around, causing the operation to fail unnecessarily, unless the buffer is R/W. >How-To-Repeat: Try using a read-only mmap'd file with a SCSI passthrough driver write operation. >Fix: begin 664 - M+2TM(&-A;5]P97)I<&@N8RYO2!B;V=URelease-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message