From owner-freebsd-bugs@freebsd.org Thu Oct 24 14:53:54 2019 Return-Path: Delivered-To: freebsd-bugs@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 1643216ED5E for ; Thu, 24 Oct 2019 14:53:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46zVcd6w9Hz3M7g for ; Thu, 24 Oct 2019 14:53:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id EB5B716ED5D; Thu, 24 Oct 2019 14:53:53 +0000 (UTC) Delivered-To: bugs@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 EB17D16ED5C for ; Thu, 24 Oct 2019 14:53:53 +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 46zVcd5zZ6z3M7f for ; Thu, 24 Oct 2019 14:53:53 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B0A4AFD86 for ; Thu, 24 Oct 2019 14:53:53 +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 x9OErreg032361 for ; Thu, 24 Oct 2019 14:53:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x9OErrlP032360 for bugs@FreeBSD.org; Thu, 24 Oct 2019 14:53:53 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: bugs@FreeBSD.org Subject: [Bug 241470] dummynet: setting bandwidth and delay causes repeatable panic Date: Thu, 24 Oct 2019 14:53:53 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: julius.flohr@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Oct 2019 14:53:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241470 Bug ID: 241470 Summary: dummynet: setting bandwidth and delay causes repeatable panic Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: julius.flohr@gmail.com Hi, I'm running base r354020 in a bhyve vm. I tried modifying link metrics = for a specific IP and came across this reproducible kernel panic. Details how to reproduce and resulting panic attached below. Cheers. jules@freebsd-rtr-1:~ % sudo ipfw list 00100 allow ip from any to any via lo0 00200 deny ip from any to 127.0.0.0/8 00300 deny ip from 127.0.0.0/8 to any 00400 deny ip from any to ::1 00500 deny ip from ::1 to any 00600 allow ipv6-icmp from :: to ff02::/16 00700 allow ipv6-icmp from fe80::/10 to fe80::/10 00800 allow ipv6-icmp from fe80::/10 to ff02::/16 00900 allow ipv6-icmp from any to any icmp6types 1 01000 allow ipv6-icmp from any to any icmp6types 2,135,136 65000 allow ip from any to any 65535 allow ip from any to any jules@freebsd-rtr-1:~ % sudo ipfw add 10 pipe 1 ip from 10.42.42.2 to any 00010 pipe 1 ip from 10.42.42.2 to any jules@freebsd-rtr-1:~ % sudo ipfw add 20 pipe 2 ip from 10.42.42.2 to any 00020 pipe 2 ip from 10.42.42.2 to any jules@freebsd-rtr-1:~ % sudo ipfw pipe 1 config bw 1Mbit/s delay 20ms mpanic: Assertion in_epoch(net_epoch_preempt) failed at /remote/src/sys/netpfil/ipfw/ip_dn_io.c:745 cpuid =3D 0 time =3D 1571927589 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe000b39b= 880 vpanic() at vpanic+0x19d/frame 0xfffffe000b39b8d0 panic() at panic+0x43/frame 0xfffffe000b39b930 dummynet_send() at dummynet_send+0x44/frame 0xfffffe000b39b970 dummynet_task() at dummynet_task+0x335/frame 0xfffffe000b39b9e0 taskqueue_run_locked() at taskqueue_run_locked+0x10c/frame 0xfffffe000b39ba= 40 taskqueue_thread_loop() at taskqueue_thread_loop+0x88/frame 0xfffffe000b39b= a70 fork_exit() at fork_exit+0x84/frame 0xfffffe000b39bab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe000b39bab0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KDB: enter: panic [ thread pid 0 tid 100043 ] Stopped at kdb_enter+0x3b: movq $0,kdb_why db> --=20 You are receiving this mail because: You are the assignee for the bug.=