From owner-freebsd-ipfw@freebsd.org Mon Nov 14 16:27:38 2016 Return-Path: Delivered-To: freebsd-ipfw@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 BA439C40D36 for ; Mon, 14 Nov 2016 16:27:38 +0000 (UTC) (envelope-from qavvap@googlemail.com) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 763F51863 for ; Mon, 14 Nov 2016 16:27:38 +0000 (UTC) (envelope-from qavvap@googlemail.com) Received: by mail-lf0-f48.google.com with SMTP id t196so62284815lff.3 for ; Mon, 14 Nov 2016 08:27:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EYVy9b3RxqnZ7/vSCFL8WmQTh4OEKb5LjK4wik/VUz4=; b=jXKa5qVjTVwoSPss2YuzuXisalGvFkvtPB4mvTRJfCYEO80DIwyCMQD+ZsQmBKiLRG hOPE6wYiqVej12vsDxmb4Vh6ZMmhMc3YgRVYTCqrxKqXJvsF6GmtFXLwVlY8e/yGKW2w xTr+umaFzjDNlY/VTK24GAg5vDrjC0NoZ/2j3vUAvb6qz71RZqbm85GlLhunSLR0NUEc 3l/LMq2OAj+oHDdnOx5R/Jl8lvxQhSQ+eMd1gfsUvK/uBl6+X71nPuz9D5YYVTpKP1qo cBuIH1radUhiossO1f21iQAAyqc3lYLdRuq6ZcpOFnxq0TEFt0Ege+Cawtc2saLdB/nM HGPg== X-Gm-Message-State: ABUngvdUfvqiFHHnV+a3kbVXQ0aJ/SEDceGcMiqSYt7Zd8qPGHKHQWYEKLAawIPkla3XiG4E7xCKmsijIjjGFg== X-Received: by 10.25.228.88 with SMTP id b85mr8745712lfh.100.1479131005874; Mon, 14 Nov 2016 05:43:25 -0800 (PST) MIME-Version: 1.0 From: wo0x Date: Mon, 14 Nov 2016 13:43:15 +0000 Message-ID: Subject: [Bug 214419] ipfw coredump when try to add rule with table of IPv6 addresses To: freebsd-ipfw@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 16:27:38 -0000 Hi there, I just subscribed to this list due to the subjected bug--and I am quite happy to find this trouble has yet been noted by others: # fwcmd=/sbin/ipfw # ${fwcmd} -f table dnssrv flush # ${fwcmd} table dnssrv create type addr # ${fwcmd} table dnssrv add 2a02:e00:fffd:139::9 added: 2a02:e00:fffd:139::9/128 0 # ${fwcmd} table dnssrv add 2001:41D0:A:0028::1 added: 2001:41d0:a:28::1/128 0 # ${fwcmd} table dnssrv add 2001:4860:4860::8844 added: 2001:4860:4860::8844/128 0 # ${fwcmd} add 20020 allow ip6 from any to "table(dnssrv)" out via gif0 setup keep-state Segmentation fault (core dumped) # uname -v FreeBSD 11.0-STABLE #0 r308635: Mon Nov 14 08:55:15 UTC 2016 root@tunnel.example.vnet:/usr/obj/usr/src/sys/CUSTOM When doing "ipfw list" all rules are with numbers lower to 20020 are listed correctly. Then again SegFault is notified and processing of further rules is interrupted, more precisely: The mandatory "65535 deny ip from any to any" is also missing. This is from within a VNET jail using a cloned "gif interface. If connection is relevant: The jails "external" interface has the same MAC address like the host system. Involved is a netgraph utilizing ng_etf, that filters ethertypes ipv4 (0x0800) and arp (0x0806) to the affected jails ng_eiface. If I can help with any input, please let me know. I am just lacking knowledge to debug or analyze dumps. Best" Benjamin