From nobody Fri Jun 25 01:05:30 2021 X-Original-To: freebsd-ipfw@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E1C4411CD7B1 for ; Fri, 25 Jun 2021 01:06:09 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G9zN06nzVz4fgQ for ; Fri, 25 Jun 2021 01:06:08 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by mail-lj1-x233.google.com with SMTP id f13so10276888ljp.10 for ; Thu, 24 Jun 2021 18:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenebras-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=dy79h9fdUcRLQMjsZ5ttnjqyQdmEJbzx79bG35r1DWM=; b=kLaoNNb05qvSX3CLR6r54t0rCnWDEDWr0l3dt2yhRxVa6ggZ/9QtU44v6KNipEtlFf G+8JMYZUsxUkhtmK4X0Gu3swoLc9+Io9lM5qiiy2iMn2E2MsGvIgQGvtaIwi7jKsEszZ dIiWhuj0ad8PhrHFQyrJcG3C3XLXHoYaVpXKp95tL8gb/9kdwCy4/d44o1tPOBWaQR5u UpGcZQXFlJUKpMkTigWregkTUlZ2WKeXvgJr31nRWt3A5dQs1wNB20/BuR9PMisjItuk lAuO1K42QVPlAbjnIUfsPW3vSR33JMDs+tX0HuZhOYXxMjLnomGOLMGesKFGNRszHiYL PHww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=dy79h9fdUcRLQMjsZ5ttnjqyQdmEJbzx79bG35r1DWM=; b=Vv1Jk/OTK/mFFg6FMBXULwmajouuIbt9uTxt9t3/TaYVPlykhGOJKkUmsdBCMPRGt9 cDb6W08L3GPre3IrqkU/f6Btn5U7BYiEvdD2VJhAanIt4569RInRX0lhBGt8bjzUEBWr eYeqld72Xvb3c6HdanwV4iZHQeaBH74SOVK0HYf4+p4AL0Hatfe40mL7ZR4P/W5YFqyj Vukzgy+gwxR0X4WfDPn5z5a3D8UnbViKYJxGVZjwtzrSQ2+vmbFctJFJQsPhFXcBR+aP YoKA0tmJ4BIrvwCPcGgoBekQ6DibQou2ao9P3z9QINT26yxzBsoPA2+SaNqUL1ZXRHx8 bQFg== X-Gm-Message-State: AOAM531O+cCpTGDjVNSlGLSoAR4e3UE9San6r5PjhRBvuUXJG7OeEYzC xJ5JkuCA27fArmnxjXp2/w0YIRTzGqmg+ee015p9MA8U9bTZfIRP X-Google-Smtp-Source: ABdhPJw+AQM/ohCxi/2JVOML9SWD3+DSTLgw2y9Lkdo1Mps1TKEWlNWwW/0mqsiNqoc6kDoTWnPRq5tojMCUI3EMNuA= X-Received: by 2002:a2e:2c19:: with SMTP id s25mr5994492ljs.361.1624583166121; Thu, 24 Jun 2021 18:06:06 -0700 (PDT) List-Id: IPFW Technical Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ipfw List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ipfw@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Michael Sierchio Date: Thu, 24 Jun 2021 18:05:30 -0700 Message-ID: Subject: Re: Dummynet in monolithic kernel broken on stable/12-n233319-c419c8231fb arm64 To: "freebsd-ipfw@freebsd.org" Content-Type: multipart/alternative; boundary="000000000000866ede05c58cbe8f" X-Rspamd-Queue-Id: 4G9zN06nzVz4fgQ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tenebras-com.20150623.gappssmtp.com header.s=20150623 header.b=kLaoNNb0; dmarc=none; spf=none (mx1.freebsd.org: domain of kudzu@tenebras.com has no SPF policy when checking 2a00:1450:4864:20::233) smtp.mailfrom=kudzu@tenebras.com X-Spamd-Result: default: False [-3.15 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[tenebras-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; ZERO_FONT(0.10)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ipfw@freebsd.org]; DMARC_NA(0.00)[tenebras.com]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::233:from:127.0.2.255]; MANY_INVISIBLE_PARTS(0.05)[1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[tenebras-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::233:from]; TO_DN_EQ_ADDR_ALL(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::233:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-ipfw] X-ThisMailContainsUnwantedMimeParts: Y --000000000000866ede05c58cbe8f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Addendum: This was working with stable/12-n233296-71efecb7eb1 arm64 I don't know exactly when it broke, but it's broken with stable/12-n233319-c419c8231fb arm64 On Thu, Jun 24, 2021 at 5:55 PM Michael Sierchio wrote= : > > For numerous reasons, I've been building security appliances with a > monolithic kernel for a long time. A recent git pull on the stable/12 > branch from github has borked dummynet. > > *root@graviton-1:/etc/ipfw 242#* ipfw pipe 1 config gred 0.01/12/36/0.75 > noerror > > ipfw: net.inet.ip.dummynet.red_lookup_depth must be greater than zero > > *root@graviton-1:/etc/ipfw 243#* sysctl > net.inet.ip.dummynet.red_lookup_depth=3D256 > > sysctl: oid 'net.inet.ip.dummynet.red_lookup_depth' is read only > > > Interesting, but inconvenient. Just happened upon reboot. Attempting to > set in /boot/loader.conf doesn't work. Any advice? > > > Many (if not all) of the dummynet sysctls are borked > > > *root@graviton-1:~ 201#* sysctl net.inet.ip.dummynet.red_max_pkt_size=3D1= 500 > > sysctl: oid 'net.inet.ip.dummynet.red_max_pkt_size' is read only > > > > *michael.sierchio@graviton-1:~ 201>* sysctl net.inet.ip.dummynet > > net.inet.ip.dummynet.io_pkt_drop: 0 > > net.inet.ip.dummynet.io_pkt_fast: 0 > > net.inet.ip.dummynet.io_pkt: 0 > > net.inet.ip.dummynet.queue_count: 0 > > net.inet.ip.dummynet.fsk_count: 0 > > net.inet.ip.dummynet.si_count: 0 > > net.inet.ip.dummynet.schk_count: 0 > > net.inet.ip.dummynet.expire_cycle: 0 > > net.inet.ip.dummynet.expire: 0 > > net.inet.ip.dummynet.tick_lost: 0 > > net.inet.ip.dummynet.tick_diff: 0 > > net.inet.ip.dummynet.tick_adjustment: 0 > > net.inet.ip.dummynet.tick_delta_sum: 0 > > net.inet.ip.dummynet.tick_delta: 0 > > net.inet.ip.dummynet.red_max_pkt_size: 0 > > net.inet.ip.dummynet.red_avg_pkt_size: 0 > > net.inet.ip.dummynet.red_lookup_depth: 0 > > net.inet.ip.dummynet.debug: 0 > > net.inet.ip.dummynet.io_fast: 0 > > net.inet.ip.dummynet.pipe_byte_limit: 1048576 > > net.inet.ip.dummynet.pipe_slot_limit: 100 > > net.inet.ip.dummynet.hash_size: 64 > > net.inet.ip.dummynet.fqpie.limit: 10240 > > net.inet.ip.dummynet.fqpie.flows: 1024 > > net.inet.ip.dummynet.fqpie.quantum: 1514 > > net.inet.ip.dummynet.fqpie.beta: 1250 > > net.inet.ip.dummynet.fqpie.alpha: 125 > > net.inet.ip.dummynet.fqpie.max_ecnth: 99 > > net.inet.ip.dummynet.fqpie.max_burst: 150000 > > net.inet.ip.dummynet.fqpie.tupdate: 15000 > > net.inet.ip.dummynet.fqpie.target: 15000 > > net.inet.ip.dummynet.fqcodel.limit: 10240 > > net.inet.ip.dummynet.fqcodel.flows: 1024 > > net.inet.ip.dummynet.fqcodel.quantum: 1514 > > net.inet.ip.dummynet.fqcodel.interval: 100000 > > net.inet.ip.dummynet.fqcodel.target: 5000 > > net.inet.ip.dummynet.pie.beta: 1250 > > net.inet.ip.dummynet.pie.alpha: 125 > > net.inet.ip.dummynet.pie.max_ecnth: 99 > > net.inet.ip.dummynet.pie.max_burst: 150000 > > net.inet.ip.dummynet.pie.tupdate: 15000 > > net.inet.ip.dummynet.pie.target: 15000 > > net.inet.ip.dummynet.codel.interval: 100000 > > net.inet.ip.dummynet.codel.target: 5000 > -- > > "Well," Brahm=C4=81 said, "even after ten thousand explanations, a fool i= s no > wiser, but an intelligent person requires only two thousand five hundred.= " > > - The Mah=C4=81bh=C4=81rata > --=20 "Well," Brahm=C4=81 said, "even after ten thousand explanations, a fool is = no wiser, but an intelligent person requires only two thousand five hundred." - The Mah=C4=81bh=C4=81rata --000000000000866ede05c58cbe8f--