From owner-freebsd-bugs Tue Dec 24 7:30: 5 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8B3437B401 for ; Tue, 24 Dec 2002 07:30:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C08A43ED4 for ; Tue, 24 Dec 2002 07:30:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gBOFU1NS023942 for ; Tue, 24 Dec 2002 07:30:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gBOFU18C023941; Tue, 24 Dec 2002 07:30:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8E8D37B401 for ; Tue, 24 Dec 2002 07:26:31 -0800 (PST) Received: from dublin.ACT-Europe.FR (dublin.act-europe.fr [212.157.227.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB27143E4A for ; Tue, 24 Dec 2002 07:26:30 -0800 (PST) (envelope-from quinot@ACT-Europe.FR) Received: from zuydcoote.int.act-europe.fr (zuydcoote.int.act-europe.fr [10.10.0.161]) by dublin.ACT-Europe.FR (Postfix) with ESMTP id 69312229E50 for ; Tue, 24 Dec 2002 16:26:24 +0100 (MET) Received: by zuydcoote.int.act-europe.fr (Postfix, from userid 529) id 523E2A7; Tue, 24 Dec 2002 16:26:23 +0100 (CET) Message-Id: <20021224152623.523E2A7@zuydcoote.int.act-europe.fr> Date: Tue, 24 Dec 2002 16:26:23 +0100 (CET) From: Thomas Quinot Reply-To: Thomas Quinot To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/46515: NFSv2 client denies O_APPEND open on existing file 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: 46515 >Category: kern >Synopsis: NFSv2 client denies O_APPEND open on existing file >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 24 07:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Thomas Quinot >Release: FreeBSD 5.0-DP2 i386 >Organization: >Environment: System: FreeBSD zuydcoote 5.0-DP2 FreeBSD 5.0-DP2 #1: Sat Nov 16 13:38:33 GMT 2002 root@tomcat.bmah.org:/usr/obj/usr/src/sys/GENERIC i386 >Description: NFS server: Debian GNU/Linux, kernel is 2.2.19. NFS client: 5.0-DP2. >How-To-Repeat: Script started on Tue Dec 24 16:09:54 2002 (quinot@zuydcoote) ~ $ echo x >> foo --> this works and correctly creates the file (quinot@zuydcoote) ~ $ echo x >> foo zsh: permission denied: foo The only network traffic caused by the second command line is: 16:14:37.753138 10.10.0.161.427357544 > 10.10.0.140.2049: 124 getattr fh Unknown/1 16:14:37.753642 10.10.0.140.2049 > 10.10.0.161.427357544: reply ok 96 getattr DIR 40755 ids 529/0 sz 4096 16:14:37.753861 10.10.0.161.427357545 > 10.10.0.140.2049: 124 getattr fh Unknown/1 16:14:37.754307 10.10.0.140.2049 > 10.10.0.161.427357545: reply ok 96 getattr REG 100644 ids 529/101 sz 2 (no traffic if the file's attributes are still in cache, apparently). The 5.0 client seems to work fine with a FreeBSD 4.7-REL NFS server. The Linux server is offering NFSv2 only, the 4.7 server has v2 and v3, both of which work correctly. tcpdump excerpt with the 4.7 server: 16:19:44.485952 10.10.0.161.427357873 > 10.10.0.159.2049: 124 getattr fh 982,166744/2764801 16:19:44.486445 10.10.0.159.2049 > 10.10.0.161.427357873: reply ok 96 getattr DIR 40775 ids 1001/101 sz 8704 16:19:44.486618 10.10.0.161.427357874 > 10.10.0.159.2049: 124 getattr fh 982,166744/2765207 16:19:44.487013 10.10.0.159.2049 > 10.10.0.161.427357874: reply ok 96 getattr REG 100644 ids 529/101 sz 2 Complete capture files will be provided on request. >Fix: None so far. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message