From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 12 20:40:14 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74C6816A401 for ; Wed, 12 Apr 2006 20:40:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E171143D45 for ; Wed, 12 Apr 2006 20:40:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3CKeD36089637 for ; Wed, 12 Apr 2006 20:40:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3CKeDiO089633; Wed, 12 Apr 2006 20:40:13 GMT (envelope-from gnats) Resent-Date: Wed, 12 Apr 2006 20:40:13 GMT Resent-Message-Id: <200604122040.k3CKeDiO089633@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Johan Bolmsjö Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D25C16A402 for ; Wed, 12 Apr 2006 20:39:23 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DE0A43D6D for ; Wed, 12 Apr 2006 20:39:17 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k3CKdGw0039456 for ; Wed, 12 Apr 2006 20:39:16 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k3CKdG70039442; Wed, 12 Apr 2006 20:39:16 GMT (envelope-from nobody) Message-Id: <200604122039.k3CKdG70039442@www.freebsd.org> Date: Wed, 12 Apr 2006 20:39:16 GMT From: Johan Bolmsjö To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/95665: "ping: sendto: No buffer space available" with TUN interface (easily reproducable with test program) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 20:40:14 -0000 >Number: 95665 >Category: kern >Synopsis: "ping: sendto: No buffer space available" with TUN interface (easily reproducable with test program) >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 12 20:40:13 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Johan Bolmsjö >Release: FreeBSD 6.0-RELEASE >Organization: >Environment: FreeBSD matilda.nocrew.org 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sat Mar 18 15:18:13 CET 2006 root@matilda.nocrew.org:/usr/obj/usr/src/sys/SMP i386 >Description: I was playing a little with the TUN device under FreeBSD. I wanted to test the performance of the driver so I wrote a small ICMP echo reply server using the TUN device. When I ping flood this interface with a large amount of 1k byte packets the interface is "hung". Pinging the interface shows the dreaded "ping: sendto: No buffer space available" message. Pinging the interface from another PC on the LAN shows no problems what so ever. It seems that the sheer amount of traffic doing this localy is causing this problem. No successfull flood ping rounds have shown any dropped ping requests. What buffer space is out? This certainly looks like a bug to me. I have a 200 line test program to reproduce this very easily. At the start of the test program there are detailed instructions on how to setup this test. You can find it at: http://six.nocrew.org/tmp/tun_icmp_echo_reply.c >How-To-Repeat: Run this test program: http://six.nocrew.org/tmp/tun_icmp_echo_reply.c There are detailed instructions at the top of the file on how to reproduce the problem. >Fix: >Release-Note: >Audit-Trail: >Unformatted: