From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 27 21:51:02 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2BDB9E16 for ; Fri, 27 Feb 2015 21:51:02 +0000 (UTC) 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 ED7EEE91 for ; Fri, 27 Feb 2015 21:51:01 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t1RLp1s9016260 for ; Fri, 27 Feb 2015 21:51:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 198085] service devfs restart leaks tap devices Date: Fri, 27 Feb 2015 21:51:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: brian@shadowcom.net 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.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2015 21:51:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198085 Bug ID: 198085 Summary: service devfs restart leaks tap devices Product: Base System Version: 10.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: brian@shadowcom.net The /dev/tap* interface has become somewhat unstable as of 10.1-R; One particular problem is that every time I reload devfs (testing rulesets in a set of jails), the system creates a whole new set of tap interfaces. For example: root@tokyo:~ # ls /dev/tap* | wc 198 198 2266 root@tokyo:~ # service devfs restart root@tokyo:~ # ls /dev/tap* | wc 205 205 2350 The other issue is with the "new" (to me) /dev/tap pre-interface that client utilities need to use to select and register a tap device. This device doesn't consistently get created by devfs.rules in jailed environments, causing programs that depend on tap to fail on startup. root@tokyo:~ # head /etc/jail.conf pdc1 { mount.devfs; devfs_ruleset = 5; ... root@tokyo:~ # cat /etc/devfs.rules [devfsrules_pdc1=5] add include $devfsrules_hide_all add include $devfsrules_unhide_basic add include $devfsrules_unhide_login add path 'tap' unhide mode 0600 group wheel add path 'tap0' unhide mode 0600 group wheel add path 'bridge0' unhide mode 0600 group wheel root@tokyo:~ # service jail start pdc1 Starting jails: pdc1. root@tokyo:~ # ls -l /jail/pdc1/dev/tap ls: /jail/pdc1/dev/tap: No such file or directory The device itself doesn't show up in directory listings, which can cause scripts that expect to "see" it to fail. (I suspect this is also causing devfs.conf not to be able to correctly set permissions on this device.) root@tokyo:~ # ls /dev/tap* | xargs echo | grep '/dev/tap ' (nothing returned) If this interface is undergoing development, I'd understand these instabilities; If my system is missing configuration files that control this behavior, then my apologies. Either way, would love to hear the development team's thoughts on this. :) -- You are receiving this mail because: You are the assignee for the bug.