Date: Fri, 12 Jun 2020 10:40:58 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 247201] stat()'ing /dev/tap results in a new interface Message-ID: <bug-247201-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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<BROADCAST,SIMPLEX,MULTICAST> 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247201-227>