From owner-freebsd-bugs@freebsd.org Fri Jun 12 10:40:59 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D319C33688A for ; Fri, 12 Jun 2020 10:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49jy1l5HSdz4Jqw for ; Fri, 12 Jun 2020 10:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B3B80336889; Fri, 12 Jun 2020 10:40:59 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B381E336808 for ; Fri, 12 Jun 2020 10:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49jy1l4MxMz4Jqv for ; Fri, 12 Jun 2020 10:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9194C861A for ; Fri, 12 Jun 2020 10:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 05CAex4I086705 for ; Fri, 12 Jun 2020 10:40:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 05CAexYK086567 for bugs@FreeBSD.org; Fri, 12 Jun 2020 10:40:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 247201] stat()'ing /dev/tap results in a new interface Date: Fri, 12 Jun 2020 10:40:58 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: fk@fabiankeil.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org 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: quoted-printable 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.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2020 10:40:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247201 Bug ID: 247201 Summary: stat()'ing /dev/tap results in a new interface Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: fk@fabiankeil.de stat()'ing /dev/tap (with "stat" or "ls -l") results in a new interface: # uname -a FreeBSD 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r361779: Thu Jun 4 05:01:54 = UTC 2020 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENE= RIC=20 amd64 # ifconfig | grep ^tap # stat /dev/tap 1895890688 93 crw------- 1 uucp dialer 93 0 "Jun 12 12:25:33 2020" "Jun 12 12:25:33 2020" "Jun 12 12:25:33 2020" "Dec 31 23:59:59 1969" 4096 0 0 /dev/= tap # ifconfig | grep ^tap tap0: flags=3D8802 metric 0 mtu 1500 The issue is also present in earlier versions such as 11/stable where dtrace shows the following stack: fk@t520 ~ $sudo dtrace -n "fbt:if_tap:tapcreate:entry {stack()}" dtrace: description 'fbt:if_tap:tapcreate:entry ' matched 1 probe CPU ID FUNCTION:NAME 1 44398 tapcreate:entry=20 if_tap.ko`tap_clone_create+0x71 kernel`if_clone_createif+0xb3 if_tap.ko`tapclone+0x1af kernel`devfs_lookup+0x59e kernel`VOP_LOOKUP_APV+0x7a kernel`lookup+0x6d1 kernel`namei+0x455 kernel`kern_statat+0x9a kernel`sys_lstat+0x30 kernel`amd64_syscall+0xa86 kernel`0xffffffff8085cd40 ^C --=20 You are receiving this mail because: You are the assignee for the bug.=