From owner-freebsd-bugs@freebsd.org Thu Mar 2 09:17:46 2017 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 BFA0ACF59B1 for ; Thu, 2 Mar 2017 09:17:46 +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 A48EFAB0 for ; Thu, 2 Mar 2017 09:17:46 +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 v229HkM5005781 for ; Thu, 2 Mar 2017 09:17:46 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 217490] tcpdump fails on 10-stable complaining: "pcap_loop: BIOCROTZBUF: Capabilities insufficient" Date: Thu, 02 Mar 2017 09:17:46 +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: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jau@iki.fi X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2017 09:17:46 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217490 Bug ID: 217490 Summary: tcpdump fails on 10-stable complaining: "pcap_loop: BIOCROTZBUF: Capabilities insufficient" Product: Base System Version: 10.3-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: jau@iki.fi Here is an example of the problem in action... # tcpdump host www.funet.fi tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on em0, link-type EN10MB (Ethernet), capture size 65535 bytes tcpdump: pcap_loop: BIOCROTZBUF: Capabilities insufficient 0 packets captured 1 packet received by filter 0 packets dropped by kernel When running tcpdump as root I certainly did not expect that. When I tried "ktrace -dit+ tcpdump host www.funet.fi" the relevant part of the output from kdump was as shown below. This does not make any sense to me. It is not all that long ago when tcpdump worked just fine. I can only imagine that the capabilities check for the ioctl() operation BIOCROTZBUF ends up somehow totally pearshape. 63208 tcpdump GIO fd 2 wrote 72 bytes "listening on em0, link-type EN10MB (Ethernet), capture size 65535 b= yte\ s " 63208 tcpdump RET write 72/0x48 63208 tcpdump CALL clock_gettime(0x4,0x7fffffffe380) 63208 tcpdump RET clock_gettime 0 63208 tcpdump CALL select(0x4,0x7fffffffe300,0,0,0x7fffffffe390) 63208 tcpdump RET select 0 63208 tcpdump CALL ioctl(0x3,0x40184280,0x7fffffffe3a0) 63208 tcpdump RET ioctl -1 errno 93 Capabilities insufficient 63208 tcpdump CALL stat(0x7fffffffddf0,0x7fffffffdd78) 63208 tcpdump NAMI "/usr/share/nls/C/libc.cat" 63208 tcpdump RET stat -1 errno 2 No such file or directory 63208 tcpdump CALL stat(0x7fffffffddf0,0x7fffffffdd78) 63208 tcpdump NAMI "/usr/share/nls/libc/C" 63208 tcpdump RET stat -1 errno 2 No such file or directory 63208 tcpdump CALL stat(0x7fffffffddf0,0x7fffffffdd78) 63208 tcpdump NAMI "/usr/local/share/nls/C/libc.cat" 63208 tcpdump RET stat -1 errno 2 No such file or directory 63208 tcpdump CALL stat(0x7fffffffddf0,0x7fffffffdd78) 63208 tcpdump NAMI "/usr/local/share/nls/libc/C" 63208 tcpdump RET stat -1 errno 2 No such file or directory 63208 tcpdump CALL write(0x2,0x7fffffffdeb0,0x3b) 63208 tcpdump GIO fd 2 wrote 59 bytes "tcpdump: pcap_loop: BIOCROTZBUF: Capabilities insufficient " My assumption is that this will affect anyone using tcpdump on 10-stable. --=20 You are receiving this mail because: You are the assignee for the bug.=