From owner-freebsd-bugs@freebsd.org Fri Sep 18 19:19:59 2015 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D8759D0BD8 for ; Fri, 18 Sep 2015 19:19:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6009915B3 for ; Fri, 18 Sep 2015 19:19:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t8IJJx0P099176 for ; Fri, 18 Sep 2015 19:19:59 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 203201] on zfs extattr behaviour broken after unlink Date: Fri, 18 Sep 2015 19:19:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: justin@specialbusservice.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2015 19:19:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203201 Bug ID: 203201 Summary: on zfs extattr behaviour broken after unlink Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: justin@specialbusservice.com On ZFS root on FreeBSD freebsd11 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r285794: Wed Jul 22 16:58:53 UTC 2015 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 If I unlink a file, extattr_get_fd does not work correctly as can be seen from this ktrace: 7638 luajit-2.0.4 CALL openat(AT_FDCWD,0x107550,0x601,0x1c0) 7638 luajit-2.0.4 NAMI "XXXXYYYYZZZ45217638" 7638 luajit-2.0.4 RET openat 3 7638 luajit-2.0.4 CALL unlink(0x107550) 7638 luajit-2.0.4 NAMI "XXXXYYYYZZZ45217638" 7638 luajit-2.0.4 RET unlink 0 7638 luajit-2.0.4 CALL extattr_get_fd(0x3,0x1,0x1129d8,0,0) 7638 luajit-2.0.4 RET extattr_get_fd -1 errno 2 No such file or directory The correct behaviour is shown on a 10.2 system with ufs root: 24254 luajit-2.0.3 CALL open(0x106d48,0x601,0x1c0) 24254 luajit-2.0.3 NAMI "XXXXYYYYZZZ452124254" 24254 luajit-2.0.3 RET open 3 24254 luajit-2.0.3 CALL unlink(0x106d48) 24254 luajit-2.0.3 NAMI "XXXXYYYYZZZ452124254" 24254 luajit-2.0.3 RET unlink 0 24254 luajit-2.0.3 CALL extattr_get_fd(0x3,0x1,0x1121d0,0,0) 24254 luajit-2.0.3 RET extattr_get_fd -1 errno 87 Attribute not found The attribute not found error is the correct one as there are no xattrs on this new file, but somehow zfs is looking up the file and not finding it rather than using the file descriptor. (there is a possibility that this is a regression from 10.2 to 11 but it seems more likely it is due to zfs; I dont have enough machines to test right now). -- You are receiving this mail because: You are the assignee for the bug.