From owner-freebsd-net@freebsd.org Thu Feb 20 16:30:02 2020 Return-Path: Delivered-To: freebsd-net@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 44EB223E30F for ; Thu, 20 Feb 2020 16:30:02 +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 48Ng6f19Dfz3Nnx for ; Thu, 20 Feb 2020 16:30:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2739D23E30E; Thu, 20 Feb 2020 16:30:02 +0000 (UTC) Delivered-To: net@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 26BAA23E30D for ; Thu, 20 Feb 2020 16:30:02 +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) server-signature RSA-PSS (4096 bits) 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 48Ng6f07kmz3Nnd for ; Thu, 20 Feb 2020 16:30:02 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F3174248EF for ; Thu, 20 Feb 2020 16:30:01 +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 01KGU17d040615 for ; Thu, 20 Feb 2020 16:30:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01KGU13L040614 for net@FreeBSD.org; Thu, 20 Feb 2020 16:30:01 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: net@FreeBSD.org Subject: [Bug 187835] ngctl(8) strange behavior when adding more than 530 vlan through netgraph Date: Thu, 20 Feb 2020 16:30:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: admin@support.od.ua X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2020 16:30:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D187835 --- Comment #10 from Vladislav V. Prodan --- (In reply to Aleksandr Fedorov from comment #6) Yes, thank you. On FreeBsd 12.1, with kern.ipc.maxsockbuf =3D 83886080 and adding 564 vlan,= we get the binary format: # ngctl msg em2:lower gettable |more Rec'd response 3 from "[b]:": 0000: 34 02 00 00 76 6c 61 6e 31 30 30 00 00 00 00 00 4...vlan100..... 0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0020: 00 00 00 00 64 00 64 00 00 00 76 6c 61 6e 31 30 ....d.d...vlan10 0030: 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1............... 0040: 00 00 00 00 00 00 00 00 00 00 65 00 65 00 00 00 ..........e.e... 0050: 76 6c 61 6e 31 30 32 00 00 00 00 00 00 00 00 00 vlan102......... 0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0070: 66 00 66 00 00 00 76 6c 61 6e 31 30 33 00 00 00 f.f...vlan103... ... Further, after a sequence of commands leads to a kernel panic. # delete all freshly created vlans ngctl list | awk ' $2 ~ /ngeth/ {print "ngctl shutdown "$2":";}' | sh # add already 700 vlan cat test_creating_vlan.sh: #!/bin/sh # man ng_vlan ETHER_IF=3Dem2 ngctl -f- <