From owner-freebsd-bugs Sat May 30 04:40:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA05301 for freebsd-bugs-outgoing; Sat, 30 May 1998 04:40:11 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA05293 for ; Sat, 30 May 1998 04:40:10 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id EAA05976; Sat, 30 May 1998 04:40:01 -0700 (PDT) Received: from toad.stack.nl (aj@toad.stack.nl [131.155.140.135]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA05208 for ; Sat, 30 May 1998 04:39:04 -0700 (PDT) (envelope-from aj@toad.stack.nl) Received: (from aj@localhost) by toad.stack.nl (8.8.8/8.8.7) id NAA17900 for FreeBSD-gnats-submit@freebsd.org; Sat, 30 May 1998 13:38:54 +0200 (CEST) (envelope-from aj) Message-Id: <199805301138.NAA17900@toad.stack.nl> Date: Sat, 30 May 1998 13:38:54 +0200 (CEST) From: Arend-Jan Wijtzes To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: kern/6796: send-pr form for you Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Note: There was a bad value `bug' for the field `>Class:'. It was set to the default value of `sw-bug'. >Number: 6796 >Category: kern >Synopsis: kernel crash from user land >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 30 04:40:01 PDT 1998 >Last-Modified: >Originator: Arend-jan Wijtzes >Organization: M.C.G.V. Stack >Release: FreeBSD 2.2.6-STABLE i386 >Environment: must have NFS mounted filesystem >Description: machine freezes when hardlinking a device to a file on a NFS filesystem. like ln /dev/null testblebber (on NFS mounted fs) Looks like the cross-filesytem check fails. >How-To-Repeat: ln /dev/null file >Fix: Not really a solution, but a 'fix': --- /usr/src/sys/kern/vfs_syscalls.c Thu May 28 15:46:03 1998 +++ /usr/src/sys/kern/vfs_syscalls.c Thu May 28 15:47:28 1998 @@ -904,7 +904,9 @@ if (error) return (error); vp = nd.ni_vp; - if (vp->v_type == VDIR) + if ((vp->v_type == VCHR) || (vp->v_type == VBLK)) + error = EPERM; /* STACK HACK gehaktdag */ + else if (vp->v_type == VDIR) error = EPERM; /* POSIX */ else { NDINIT(&nd, CREATE, LOCKPARENT, UIO_USERSPACE, uap->link, p); >Audit-Trail: >Unformatted: Hi. As send-pr is broken at this time, here is the form by mail. SEND-PR: -*- send-pr -*- SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as SEND-PR: will all comments (text enclosed in `<' and `>'). SEND-PR: SEND-PR: Please consult the send-pr man page `send-pr(1)' or the Texinfo SEND-PR: manual if you are not sure how to fill out a problem report. SEND-PR: SEND-PR: Note that the Synopsis field is mandatory. The Subject (for SEND-PR: the mail) will be made the same as Synopsis unless explicitly SEND-PR: changed. SEND-PR: SEND-PR: Choose from the following categories: SEND-PR: SEND-PR: bin conf docs gnu i386 kern misc ports SEND-PR: To: FreeBSD-gnats-submit@freebsd.org Subject: From: aj@stack.nl Reply-To: aj@stack.nl X-send-pr-version: 3.2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message