From owner-freebsd-questions Thu Jun 4 22:07:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA00194 for freebsd-questions-outgoing; Thu, 4 Jun 1998 22:07:03 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA00180 for ; Thu, 4 Jun 1998 22:06:57 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.8/8.8.8) with SMTP id WAA26749; Thu, 4 Jun 1998 22:06:55 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Date: Thu, 4 Jun 1998 22:06:54 -0700 (PDT) From: Doug White Reply-To: Doug White To: Mike Grommet cc: freebsd-questions@FreeBSD.ORG Subject: Re: PATCH for 2.2.5 for mmap fails? In-Reply-To: <003501bd8f7e$9a92b8c0$0cf896d0@work2.insolwwb.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 4 Jun 1998, Mike Grommet wrote: > Hi guys, > I've been trying to patch a 2.2.5 machine for the mmap problem specified > in FreeBSD-SA-98:04 > > The only problem is that for some silly reason, the guy who set up this > machine did not install the source. no problem, I got the 2.2.5 source and > installed it... that went great. Where did you get it? Current version is 2.2.6-RELEASE BTW. > I go to use the patch found at > > ftp://ftp.freebsd.org/pub/FreeBSD/CERT/patches/SA-98:02/mmap-22 > > but it fails for all 3 chunks... well, I thought maybe the source I > downloaded was already patched, so I went looking in the file I am trying to > patch (vm_mmap.c) for evidence > of the new code, but guess what I dont find the new code, and I dont find > the old code either that the patch file is trying to replace so is this > version patched or not? > anyone got a working patch file for 2.2.5? What version is reported in the $ Id: ... $ line at the top of vm_mmap.c? You might find the page: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/vm/vm_mmap.c useful. This the source repository browser -- you can check out specific versions of files, or create new patches between specific versions of the file. By that you should have version 1.53.2.2 with 2.2.5-RELEASE. The diff should bring you up to 1.53.2.3. I'd suggest moving all the way up to rev 1.53.2.4 since there haven't been any major structural changes to the file and .2.4 fixes another security hole. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major NOTICE: gdi.uoregon.edu is going down, please use dwhite@resnet! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message