From nobody Wed Nov 17 17:08:30 2021 X-Original-To: net@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 279E01891F42 for ; Wed, 17 Nov 2021 17:08:30 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HvTsV0YDNz4jLy for ; Wed, 17 Nov 2021 17:08:30 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E749B24A5E for ; Wed, 17 Nov 2021 17:08:29 +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 1AHH8T8A083933 for ; Wed, 17 Nov 2021 17:08:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AHH8Thl083932 for net@FreeBSD.org; Wed, 17 Nov 2021 17:08:29 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 253328] add IPv6 6rd supported in if_stf Date: Wed, 17 Nov 2021 17:08:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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 Only Me X-Bugzilla-Who: kp@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kp@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253328 Kristof Provost changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress Assignee|net@FreeBSD.org |kp@freebsd.org --- Comment #3 from Kristof Provost --- https://reviews.freebsd.org/D33037 https://reviews.freebsd.org/D33038 https://reviews.freebsd.org/D33039 https://reviews.freebsd.org/D33040 https://reviews.freebsd.org/D33042 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Nov 18 12:03:01 2021 X-Original-To: net@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 7BD68188D071 for ; Thu, 18 Nov 2021 12:03:05 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hvz2d2wLJz3DYr for ; Thu, 18 Nov 2021 12:03:05 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from [192.168.0.88] (unknown [195.64.148.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 0559D277AD for ; Thu, 18 Nov 2021 12:03:04 +0000 (UTC) (envelope-from avg@FreeBSD.org) Message-ID: Date: Thu, 18 Nov 2021 14:03:01 +0200 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.3.0 Content-Language: en-US To: "net@FreeBSD.org" From: Andriy Gapon Subject: iflib_stop: drain rx tasks to prevent any data races Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: N I am going to commit https://reviews.freebsd.org/D32926 Please speak up if there are any objections / concerns. -- Andriy Gapon From nobody Fri Nov 19 08:02:23 2021 X-Original-To: net@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 D6516188D397 for ; Fri, 19 Nov 2021 08:02:23 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HwTfR5HHcz4gWX for ; Fri, 19 Nov 2021 08:02:23 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9347424EE5 for ; Fri, 19 Nov 2021 08:02:23 +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 1AJ82NmK037495 for ; Fri, 19 Nov 2021 08:02:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AJ82NnO037494 for net@FreeBSD.org; Fri, 19 Nov 2021 08:02:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 259458] iflib_rxeof NULL pointer crash with vmxnet3 driver Date: Fri, 19 Nov 2021 08:02:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259458 --- Comment #20 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D1bfdb812c786ac2607a82633f9c84a5d1= 6f54079 commit 1bfdb812c786ac2607a82633f9c84a5d16f54079 Author: Andriy Gapon AuthorDate: 2021-11-19 07:56:30 +0000 Commit: Andriy Gapon CommitDate: 2021-11-19 08:00:38 +0000 iflib_stop: drain rx tasks to prevent any data races iflib_stop modifies iflib data structures that are used by _task_fn_rx, most prominently the free lists. So, iflib_stop has to ensure that the rx task threads are not active. This should help to fix a crash seen when iflib_if_ioctl (e.g., SIOCSIFCAP) is called while there is already traffic flowing. The crash has been seen on VMWare guests with vmxnet3 driver. My guess is that on physical hardware the couple of 1ms delays that iflib_stop has after disabling interrupts are enough for the queued work to be completed before any iflib state is touched. But on busy hypervisors the guests might not get enough CPU time to complete the work, thus there can be a race between the taskqueue threads and the work done to handle an ioctl, specifically in iflib_stop and iflib_init_locked. PR: 259458 Reviewed by: markj MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D32926 sys/net/iflib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Fri Nov 19 08:03:18 2021 X-Original-To: net@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 9741F188DECF for ; Fri, 19 Nov 2021 08:03:18 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HwTgV3h5Hz4h2Z for ; Fri, 19 Nov 2021 08:03:18 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5F9F324C2A for ; Fri, 19 Nov 2021 08:03:18 +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 1AJ83Ilp041422 for ; Fri, 19 Nov 2021 08:03:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AJ83Inr041421 for net@FreeBSD.org; Fri, 19 Nov 2021 08:03:18 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 259458] iflib_rxeof NULL pointer crash with vmxnet3 driver Date: Fri, 19 Nov 2021 08:03:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: avg@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: avg@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259458 Andriy Gapon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|net@FreeBSD.org |avg@FreeBSD.org Status|Open |In Progress --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Fri Nov 19 17:54:18 2021 X-Original-To: freebsd-net@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 B445A189ACD0 for ; Fri, 19 Nov 2021 17:54:29 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from fc.opsec.eu (fc.opsec.eu [IPv6:2001:14f8:200:4::4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hwknd1V07z3FPv; Fri, 19 Nov 2021 17:54:29 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from pi by fc.opsec.eu with local (Exim 4.95 (FreeBSD)) (envelope-from ) id 1mo85a-000Q0h-Iz; Fri, 19 Nov 2021 18:54:18 +0100 Date: Fri, 19 Nov 2021 18:54:18 +0100 From: Kurt Jaeger To: "Andrey V. Elsukov" Cc: tuexen@freebsd.org, freebsd-net@freebsd.org Subject: Workaround: Re: dtrace to trace incoming connection not suceeding ? Message-ID: References: <866D4765-25EF-4C5F-AA2E-D6BE8D5EBEEB@freebsd.org> <43FC040E-E5DE-4F4E-B91E-AAA807207D05@freebsd.org> <36CCF1D0-34EE-4E1C-B593-71CF936F4DE7@freebsd.org> List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Hwknd1V07z3FPv X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[freebsd.org]; ASN(0.00)[asn:12502, ipnet:2001:14f8::/32, country:DE] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N Hi! > > > There's one small diff between the two that I do not understand: > > > - 18040 times no signature provided by segment > > > + 18045 times no signature provided by segment > > > > This means, that received TCP segment has not TCP-MD5 signature, but > > listen socket expects it. Such SYN segment will be dropped by syncache > > code. Probably your BGP daemon configured to use TCP-MD5 for connection, > > but remote side does not. > > Thanks, that might be another possible cause. Thanks to your pointer, analysis done by KlaraSystems shows that the problem seems to be like this: frr has this open socket where it listens on incoming tcp/179: tcp4 0 0 *.179 *.* LISTEN tcp6 0 0 *.179 *.* LISTEN The problem starts sometime after FreeBSD 12.1p8, when some of the bgp peers have tcp-md5 set and others have not. If any bgp peer has tcp-md5, it seems, some (all?) non-tcp-md5 secured bgp peers will fail to connect, until a tcp-md5 secret is configured. Therefore, we can use this workaround for now and investigate frr and/or FreeBSD for a proper fix without too much hurry. -- pi@FreeBSD.org +49 171 3101372 Now what ? From nobody Fri Nov 19 18:19:39 2021 X-Original-To: net@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 BAAEB18A7DBB for ; Fri, 19 Nov 2021 18:19:42 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HwlLk4hm7z3PbB; Fri, 19 Nov 2021 18:19:42 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from [192.168.0.88] (unknown [195.64.148.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 0A3C661CF; Fri, 19 Nov 2021 18:19:41 +0000 (UTC) (envelope-from avg@FreeBSD.org) Message-ID: <0dbe63d0-3219-846d-4c58-0bf219f41634@FreeBSD.org> Date: Fri, 19 Nov 2021 20:19:39 +0200 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.3.0 Content-Language: en-US To: "net@FreeBSD.org" Cc: Mark Johnston , Patrick Kelsey From: Andriy Gapon Subject: vmxnet3: possible bug in vmxnet3_isc_rxd_pkt_get Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: N We have infrequent but persistent crashes at work where a part of an iflib_rxq_t object seems to be overwritten by a sequence of if_rxd_frag objects. Those if_rxd_frag elements look like a continuation of the ifr_frags array in an adjacent iflib_rxq_t object. This happens only on VMWare only with vmxnet3 driver. Based on the code analysis I think that the only place where the overwrite / overrun can happen is vmxnet3_isc_rxd_pkt_get(). It writes to the ifr_frags array (passed in via if_rxd_info_t::iri_frags) and there is no sanity check that nfrags is below IFLIB_MAX_RX_SEGS. I guess that the driver relies on a packet never having more than IFLIB_MAX_RX_SEGS fragments / segments in a descriptor ring because that value is programmed into nrxsg_max. So, I am not sure if this is a problem in the driver or a quirk in VMware. Here is some data to demonstrate the issue: $1 = (iflib_rxq_t) 0xfffffe00ea9f6200 (kgdb) p $1->ifr_frags[0] $2 = {irf_flid = 0 '\000', irf_idx = 1799, irf_len = 118} (kgdb) p $1->ifr_frags[1] $3 = {irf_flid = 1 '\001', irf_idx = 674, irf_len = 0} (kgdb) p $1->ifr_frags[2] $4 = {irf_flid = 1 '\001', irf_idx = 675, irf_len = 0} ... elements 3..62 follow the same pattern ... (kgdb) p $1->ifr_frags[63] $6 = {irf_flid = 1 '\001', irf_idx = 736, irf_len = 0} and then... (kgdb) p $1->ifr_frags[64] $7 = {irf_flid = 1 '\001', irf_idx = 737, irf_len = 0} (kgdb) p $1->ifr_frags[65] $8 = {irf_flid = 1 '\001', irf_idx = 738, irf_len = 0} ... the pattern continues ... (kgdb) p $1->ifr_frags[70] $10 = {irf_flid = 1 '\001', irf_idx = 743, irf_len = 0} It seems like a start-of-packet completion descriptor referenced a descriptor in the command ring zero (and apparently it didn't have the end-of-packet bit). And there were another 70 zero-length completions referencing the ring one until the end-of-packet. So, in total 71 fragment was recorded. Or it's possible that those zero-length fragments were from the penultimate pkt_get call and ifr_frags[0] was obtained after that... I am not sure how that could happen. I am thinking about adding a sanity check for the number of fragments. Not sure yet what options there are for handling the overflow besides panicing. Also, some data from the vmxnet3's side of things: (kgdb) p $15.vmx_rxq[6] $18 = {vxrxq_sc = 0xfffff80002d9b800, vxrxq_id = 6, vxrxq_intr_idx = 6, vxrxq_irq = {ii_res = 0xfffff80002f23e00, ii_rid = 7, ii_tag = 0xfffff80002f23d80}, vxrxq_cmd_ring = {{vxrxr_rxd = 0xfffffe00ead3c000, vxrxr_ndesc = 2048, vxrxr_gen = 0, vxrxr_paddr = 57917440, vxrxr_desc_skips = 1114, vxrxr_refill_start = 1799}, {vxrxr_rxd = 0xfffffe00ead44000, vxrxr_ndesc = 2048, vxrxr_gen = 0, vxrxr_paddr = 57950208, vxrxr_desc_skips = 121, vxrxr_refill_start = 743}}, vxrxq_comp_ring = {vxcr_u = {txcd = 0xfffffe00ead2c000, rxcd = 0xfffffe00ead2c000}, vxcr_next = 0, vxcr_ndesc = 4096, vxcr_gen = 1, vxcr_paddr = 57851904, vxcr_zero_length = 1044, vxcr_pkt_errors = 128}, vxrxq_rs = 0xfffff80002d78e00, vxrxq_sysctl = 0xfffff80004308080, vxrxq_name = "vmx0-rx6\000\000\000\000\000\000\000"} vxrxr_refill_start values are consistent with what is seen in ifr_frags[]. vxcr_zero_length and vxcr_pkt_errors are both not zero, so maybe something got the driver into a confused state or the emulated hardware became confused. -- Andriy Gapon From nobody Fri Nov 19 18:26:13 2021 X-Original-To: freebsd-net@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 746901853FFF for ; Fri, 19 Nov 2021 18:26:22 +0000 (UTC) (envelope-from darcy@druid.net) Received: from mail.vex.net (mail.vex.net [98.158.132.68]) by mx1.freebsd.org (Postfix) with ESMTP id 4HwlVP2yHHz3hkp for ; Fri, 19 Nov 2021 18:26:21 +0000 (UTC) (envelope-from darcy@druid.net) Received: from [100.77.154.42] (unknown [98.186.198.236]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: druid) by mail.vex.net (Postfix) with ESMTPSA id 167B041B72 for ; Fri, 19 Nov 2021 13:26:14 -0500 (EST) Message-ID: Date: Fri, 19 Nov 2021 12:26:13 -0600 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 To: freebsd-net@freebsd.org Content-Language: en-US From: D'Arcy Cain Subject: Splitting antenna Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------Ci4U3uPcJrDpXjTF5g5If5wS" X-Rspamd-Queue-Id: 4HwlVP2yHHz3hkp X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of darcy@druid.net has no SPF policy when checking 98.158.132.68) smtp.mailfrom=darcy@druid.net X-Spamd-Result: default: False [2.18 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; MIME_BASE64_TEXT_BOGUS(1.00)[]; MIME_BASE64_TEXT(0.10)[]; SIGNED_PGP(-2.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; ASN(0.00)[asn:19842, ipnet:98.158.132.0/24, country:CA]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[98.186.198.236:received]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; DMARC_NA(0.00)[druid.net]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCPT_COUNT_ONE(0.00)[1]; AUTH_NA(1.00)[]; NEURAL_SPAM_LONG(0.18)[0.179]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------Ci4U3uPcJrDpXjTF5g5If5wS Content-Type: multipart/mixed; boundary="------------GQsvY7eBjE46Gacllgne70jW"; protected-headers="v1" From: D'Arcy Cain To: freebsd-net@freebsd.org Message-ID: Subject: Splitting antenna --------------GQsvY7eBjE46Gacllgne70jW Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 SSBhbSB1c2luZyBteSBGcmVlQlNEIGJveCBhcyBteSBtYWluIGluZ3Jlc3MgdG8gbXkgUlYg dHJhaWxlci4gIFdlIG1vdmUgDQphcm91bmQgYW5kIHNvbWV0aW1lcyB1c2UgRXRoZXJuZXQs IHNvbWV0aW1lcyBQUFAgZGlyZWN0bHkgb24gRFNMIGFuZCANCnNvbWV0aW1lcyB3ZSBjb25u ZWN0IHRvIGEgbG9jYWwgd2lmaSBob3RzcG90LiAgVG8gZ2V0IHRoZSBiZXN0IGNvbm5lY3Rp b24gSSANCmhhdmUgbW91bnRlZCBhbiBleHRlcm5hbCwgbXVsdGktYmFuZCBhbnRlbm5hIG9u IHRoZSB0cmFpbGVyIGFuZCBjb25uZWN0IGl0IA0KdG8gb25lIG9mIHRoZSBhbnRlbm5hIGNv bm5lY3Rpb25zIG9uIHRoZSB3aWZpIGNhcmQuDQoNCk15IHF1ZXN0aW9uIGlzLCBjYW4gSSBz cGxpdCB0aGUgYW50ZW5uYSBjb25uZWN0aW9uIGFuZCB1c2UgYm90aCBhbnRlbm5hIA0KY29u bmVjdG9ycyBvbiB0aGUgd2lmaSBjYXJkIChvciB0aHJlZSBpZiBJIGhhdmUgdGhhdCBraW5k IG9mIGNhcmQpIG9yIHdpbGwgDQp0aGF0IG1lc3MgdXAgdGhlIGNvbm5lY3Rpb24uICBJIGtu b3cgdGhhdCBlYWNoIGNvbm5lY3Rpb24gaXMgZm9yIGEgZGlmZmVyZW50IA0KYmFuZC4gIERp ZmZlcmVudCBjYW1wIGdyb3VuZHMgdXNlIGRpZmZlcmVudCBiYW5kcyBhbmQgc29tZXRpbWVz IEkgbmVlZCB0byANCnN3aXRjaCB0aGUgYW50ZW5uYSB0byBnZXQgYSBiZXR0ZXIgSW50ZXJu ZXQgY29ubmVjdGlvbi4gIEl0IHdvdWxkIGJlIG5pY2UgaWYgDQpJIGNvdWxkIGp1c3QgaGF2 ZSBib3RoIG9mIHRoZW4gY29ubmVjdGVkIHRvIHRoZSBleHRlcm5hbCBhbnRlbm5hLg0KDQpD aGVlcnMuDQoNCi0tIA0KRCdBcmN5IEouTS4gQ2FpbiA8ZGFyY3lAZHJ1aWQubmV0PiAgICAg ICAgIHwgIERlbW9jcmFjeSBpcyB0aHJlZSB3b2x2ZXMNCmh0dHA6Ly93d3cuZHJ1aWQubmV0 L2RhcmN5LyAgICAgICAgICAgICAgICB8ICBhbmQgYSBzaGVlcCB2b3Rpbmcgb24NCisxIDQx NiA3ODggMjI0NiAgICAgKERvRCMwMDgyKSAgICAoZU5UUCkgICB8ICB3aGF0J3MgZm9yIGRp bm5lci4NCklNOiBkYXJjeUBWeWJlTmV0d29ya3MuY29tLCBWb0lQOiBzaXA6ZGFyY3lAZHJ1 aWQubmV0DQo= --------------GQsvY7eBjE46Gacllgne70jW-- --------------Ci4U3uPcJrDpXjTF5g5If5wS Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQSQJTNYM0vv3aTmBCs/5DDweYZnXQUCYZfsRQUDAAAAAAAKCRA/5DDweYZnXd0n AP9Xzuq8sr0S4Osm5XexEAX1aZMv3WX7Ce6HyZ5Gt0t96QEAvAZ4cG+jK7Q2fbYFbTxXfDAdwhow CcUtPkEmsMm49AM= =jUyc -----END PGP SIGNATURE----- --------------Ci4U3uPcJrDpXjTF5g5If5wS-- From nobody Fri Nov 19 18:46:09 2021 X-Original-To: net@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 CC0EB188E5F4 for ; Fri, 19 Nov 2021 18:46:11 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HwlxH5X1vz3pSk; Fri, 19 Nov 2021 18:46:11 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from [192.168.0.88] (unknown [195.64.148.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 29CFF686F; Fri, 19 Nov 2021 18:46:11 +0000 (UTC) (envelope-from avg@FreeBSD.org) Message-ID: <65d72f7d-5096-07ec-4e21-c6356be7e06f@FreeBSD.org> Date: Fri, 19 Nov 2021 20:46:09 +0200 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.3.0 Subject: Re: vmxnet3: possible bug in vmxnet3_isc_rxd_pkt_get Content-Language: en-US From: Andriy Gapon To: "net@FreeBSD.org" Cc: Mark Johnston , Patrick Kelsey References: <0dbe63d0-3219-846d-4c58-0bf219f41634@FreeBSD.org> In-Reply-To: <0dbe63d0-3219-846d-4c58-0bf219f41634@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ThisMailContainsUnwantedMimeParts: N On 19/11/2021 20:19, Andriy Gapon wrote: > Here is some data to demonstrate the issue: > $1 = (iflib_rxq_t) 0xfffffe00ea9f6200 > (kgdb) p $1->ifr_frags[0] > $2 = {irf_flid = 0 '\000', irf_idx = 1799, irf_len = 118} > > (kgdb) p $1->ifr_frags[1] > $3 = {irf_flid = 1 '\001', irf_idx = 674, irf_len = 0} > (kgdb) p $1->ifr_frags[2] > $4 = {irf_flid = 1 '\001', irf_idx = 675, irf_len = 0} > > ... elements 3..62 follow the same pattern ... > > (kgdb) p $1->ifr_frags[63] > $6 = {irf_flid = 1 '\001', irf_idx = 736, irf_len = 0} > > and then... > > (kgdb) p $1->ifr_frags[64] > $7 = {irf_flid = 1 '\001', irf_idx = 737, irf_len = 0} > (kgdb) p $1->ifr_frags[65] > $8 = {irf_flid = 1 '\001', irf_idx = 738, irf_len = 0} > ... the pattern continues ... > (kgdb) p $1->ifr_frags[70] > $10 = {irf_flid = 1 '\001', irf_idx = 743, irf_len = 0} > > > It seems like a start-of-packet completion descriptor referenced a descriptor in > the command ring zero (and apparently it didn't have the end-of-packet bit). And > there were another 70 zero-length completions referencing the ring one until the > end-of-packet. > So, in total 71 fragment was recorded. > > Or it's possible that those zero-length fragments were from the penultimate > pkt_get call and ifr_frags[0] was obtained after that... I think that this was the case and that I was able to find the corresponding descriptors in the completion ring. Please see https://people.freebsd.org/~avg/vmxnet3-fragment-overrun.txt $54 is the SOP, it has qid of 6. It is followed by many fragments with qid 14 (there are 8 queues / queue sets) and zero length. But not all of them are zero length, some have length of 4096, e.g. $77, $86, etc. $124 is the last fragment, its has eop = 1 and error = 1. So, there are 71 fragments in total. So, it is clear that VMWare produced 71 segments for a single packet before giving up on it. I wonder why it did that. Perhaps it's a bug, perhaps it does not count zero-length segments against the limit, maybe something else. In any case, it happens. Finally, the packet looks interesting: udp = 0, tcp = 0, ipcsum_ok = 0, ipv6 = 0, ipv4 = 0. I wonder what kind of a packet it could be -- being rather large and not an IP packet. > I am not sure how that could happen. > I am thinking about adding a sanity check for the number of fragments. > Not sure yet what options there are for handling the overflow besides panicing. > > > Also, some data from the vmxnet3's side of things: > (kgdb) p $15.vmx_rxq[6] > $18 = {vxrxq_sc = 0xfffff80002d9b800, vxrxq_id = 6, vxrxq_intr_idx = 6, > vxrxq_irq = {ii_res = 0xfffff80002f23e00, ii_rid = 7, ii_tag = > 0xfffff80002f23d80}, vxrxq_cmd_ring = {{vxrxr_rxd = 0xfffffe00ead3c000, > vxrxr_ndesc = 2048, >       vxrxr_gen = 0, vxrxr_paddr = 57917440, vxrxr_desc_skips = 1114, > vxrxr_refill_start = 1799}, {vxrxr_rxd = 0xfffffe00ead44000, vxrxr_ndesc = 2048, > vxrxr_gen = 0, vxrxr_paddr = 57950208, vxrxr_desc_skips = 121, >       vxrxr_refill_start = 743}}, vxrxq_comp_ring = {vxcr_u = {txcd = > 0xfffffe00ead2c000, rxcd = 0xfffffe00ead2c000}, vxcr_next = 0, vxcr_ndesc = > 4096, vxcr_gen = 1, vxcr_paddr = 57851904, vxcr_zero_length = 1044, >     vxcr_pkt_errors = 128}, vxrxq_rs = 0xfffff80002d78e00, vxrxq_sysctl = > 0xfffff80004308080, vxrxq_name = "vmx0-rx6\000\000\000\000\000\000\000"} > > vxrxr_refill_start values are consistent with what is seen in ifr_frags[]. > vxcr_zero_length and vxcr_pkt_errors are both not zero, so maybe something got > the driver into a confused state or the emulated hardware became confused. -- Andriy Gapon From nobody Fri Nov 19 19:11:16 2021 X-Original-To: freebsd-net@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 69988189D1F1 for ; Fri, 19 Nov 2021 19:11:31 +0000 (UTC) (envelope-from jim@netgate.com) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HwmVW0kn1z4WVb for ; Fri, 19 Nov 2021 19:11:30 +0000 (UTC) (envelope-from jim@netgate.com) Received: by mail-io1-xd2f.google.com with SMTP id p23so14087476iod.7 for ; Fri, 19 Nov 2021 11:11:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netgate.com; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=awQVbJkpG9BwPYifQ77rTAoetG2TDJ3FuHTwx93eZV8=; b=jjf/VArL9umzGxPyXLt2zp1Jf+QNtQMhg6Ag8A+u2nqPi+5GWxu0zQfS1LcJhP2sqN aZAQ/IQ4b5s/LIXKmoP/Na8C2W0lknyNugZDnBH4LWCZUElq47ZLVTRzn8tMwwqPli/D Ib+HRo3QD6n5lpliBaQvqTTIlt1lRzwCegFCE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=awQVbJkpG9BwPYifQ77rTAoetG2TDJ3FuHTwx93eZV8=; b=jS5hf4CvLcM2rjxKWOYSvtRAhlX7nEazP48MKpkxvj1F4s9e5YjjezCAX9D4p9pvSU 7qgJdaUbnvTdHcZ8tdBKYc4f6Ni+xx4ctKkbjoBlM25uQJTrVk8/J8zRw/nVVtpMUJ4L Z1FLYSg+JB7AkxHOzWAtCigsN5oh6C2SMVGTgkCYDujt9IDwZZjLSlVXRI4ug9Duxoq4 vf2TzIj33MaNq+eyX6FVl/dxHxxZGO8Re0vb6N0jLnyHtq1uVJ4WOJ9WB5zg9PUtGeJi qEaALwhwAOaObwzc/HOqVP1b3sH2ywTHYY7IkgXOBCnTbmYx3s5ZWixCpMaa+UtQ21f2 4YQg== X-Gm-Message-State: AOAM532yR/Az44l4o0rZhmdNPCrTc5OMfNOjkH664tzErkikTnbUSNke qmGA1spt4Smkmt+oMPooPM+RrAw4jaLq4Q== X-Google-Smtp-Source: ABdhPJwpPImewWEqa6muxhoKfkQXWH/70m66gH5MsmmxYx9fcH8ke+urnNYXKIDqEVfDNtoltF2HXw== X-Received: by 2002:a05:6602:134d:: with SMTP id i13mr7390675iov.164.1637349081219; Fri, 19 Nov 2021 11:11:21 -0800 (PST) Received: from smtpclient.apple ([2601:280:5b80:b910:95dc:9601:31e7:66fa]) by smtp.gmail.com with ESMTPSA id i1sm445606iov.10.2021.11.19.11.11.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Nov 2021 11:11:20 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: Splitting antenna Date: Fri, 19 Nov 2021 12:11:16 -0700 Message-Id: <70CD396F-2067-4EC1-9190-9D61E0AE1720@netgate.com> References: Cc: freebsd-net@freebsd.org In-Reply-To: To: D'Arcy Cain X-Mailer: iPhone Mail (19B81) X-Rspamd-Queue-Id: 4HwmVW0kn1z4WVb X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: jim@netgate.com From: Jim Thompson via freebsd-net X-Original-From: Jim Thompson X-ThisMailContainsUnwantedMimeParts: N (When did FreeBSD-net become about antenna theory?) The answer (of course) is, =E2=80=9Cit depends=E2=80=9D. Mostly on =E2=80=9C= what bands=E2=80=9D though your antenna and cables will have some effect as w= ell.=20 Some WiFi cards these days employ a form of beamforming or even MIMO. Older= cards could use selection diversity to enhance reception. Some cards are,= as you say, architected to have a 2.4ghz chain on one antenna and a 5ghz ch= ain on another.=20 So we=E2=80=99d have to know more about your wifi card as well.=20 Jim > On Nov 19, 2021, at 11:26 AM, D'Arcy Cain wrote: >=20 > =EF=BB=BFI am using my FreeBSD box as my main ingress to my RV trailer. W= e move around and sometimes use Ethernet, sometimes PPP directly on DSL and s= ometimes we connect to a local wifi hotspot. To get the best connection I h= ave mounted an external, multi-band antenna on the trailer and connect it to= one of the antenna connections on the wifi card. >=20 > My question is, can I split the antenna connection and use both antenna co= nnectors on the wifi card (or three if I have that kind of card) or will tha= t mess up the connection. I know that each connection is for a different ba= nd. Different camp grounds use different bands and sometimes I need to swit= ch the antenna to get a better Internet connection. It would be nice if I c= ould just have both of then connected to the external antenna. >=20 > Cheers. >=20 > --=20 > D'Arcy J.M. Cain | Democracy is three wolves > https://www.google.com/url?q=3Dhttp://www.druid.net/darcy/&source=3Dgmail-= imap&ust=3D1637951204000000&usg=3DAOvVaw3DZfT_F4PSDdMhMGL1LuAe = | and a sheep voting on > +1 416 788 2246 (DoD#0082) (eNTP) | what's for dinner. > IM: darcy@VybeNetworks.com, VoIP: sip:darcy@druid.net From nobody Fri Nov 19 19:17:42 2021 X-Original-To: freebsd-net@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 58663189FA87 for ; Fri, 19 Nov 2021 19:17:54 +0000 (UTC) (envelope-from nc@FreeBSD.org) Received: from locks.neelc.org (locks.neelc.org [IPv6:2602:fed2:7106:25ff::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hwmdt0R3qz4Ywp for ; Fri, 19 Nov 2021 19:17:54 +0000 (UTC) (envelope-from nc@FreeBSD.org) Received: from mail.neelc.org (locks.neelc.org [IPv6:2602:fed2:7106:25ff::1]) by locks.neelc.org (Postfix) with ESMTPSA id B1AF68926A for ; Fri, 19 Nov 2021 11:17:45 -0800 (PST) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Date: Fri, 19 Nov 2021 11:17:42 -0800 From: Neel Chauhan To: freebsd-net@freebsd.org Subject: Porting OpenBSD MPLS to FreeBSD User-Agent: Roundcube Webmail/1.4.12 Message-ID: <7de5f4bf0fdec027b5ae5d844a7cb0f5@FreeBSD.org> X-Sender: nc@FreeBSD.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Hwmdt0R3qz4Ywp X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; ASN(0.00)[asn:23470, ipnet:2602:fed2:7106::/48, country:US] X-ThisMailContainsUnwantedMimeParts: N Hi freebsd-net@, Long time no see. I've gotten a (Ports) commit bit since then. I haven't been very active in TCP/IP hacking as of late, as more recently I've been more focused on GNOME packages and some GPU drivers. Going back, I'm thinking about porting OpenBSD's MPLS to FreeBSD. I have a two questions: * Is porting OpenBSD MPLS to FreeBSD feasible, or are we better off doing a from-scratch implementation based on netgraph? * Would some of the other committers here be willing to mentor/help me if needed? Unlike my old IPFW patches which got nowhere (plus I no longer use IPFW), I feel this is more something that could be useful when running FreeBSD as a router, but hasn't really been done. -Neel (nc@) From nobody Fri Nov 19 20:16:37 2021 X-Original-To: freebsd-net@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 67FA8189C8F7 for ; Fri, 19 Nov 2021 20:16:54 +0000 (UTC) (envelope-from lutz@iks-jena.de) Received: from annwfn.iks-jena.de (annwfn.iks-jena.de [IPv6:2001:4bd8::19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hwnxy0j3pz4rJv; Fri, 19 Nov 2021 20:16:53 +0000 (UTC) (envelope-from lutz@iks-jena.de) X-SMTP-Sender: IPv6:2001:4bd8:0:666:248:54ff:fe12:ee3f Received: from belenus.iks-jena.de (belenus.iks-jena.de [IPv6:2001:4bd8:0:666:248:54ff:fe12:ee3f]) by annwfn.iks-jena.de (8.15.2/8.15.2) with ESMTPS id 1AJKGb40028972 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 19 Nov 2021 21:16:38 +0100 X-MSA-Host: belenus.iks-jena.de Received: (from lutz@localhost) by belenus.iks-jena.de (8.14.3/8.14.1/Submit) id 1AJKGbMd003384; Fri, 19 Nov 2021 21:16:37 +0100 Date: Fri, 19 Nov 2021 21:16:37 +0100 From: Lutz Donnerhacke To: Neel Chauhan Cc: freebsd-net@FreeBSD.org Subject: Re: Porting OpenBSD MPLS to FreeBSD Message-ID: <20211119201637.GA3334@belenus.iks-jena.de> References: <7de5f4bf0fdec027b5ae5d844a7cb0f5@FreeBSD.org> List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7de5f4bf0fdec027b5ae5d844a7cb0f5@FreeBSD.org> X-message-flag: Please send plain text messages only. Thank you. User-Agent: Mutt/1.5.17 (2007-11-01) X-Rspamd-Queue-Id: 4Hwnxy0j3pz4rJv X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N On Fri, Nov 19, 2021 at 11:17:42AM -0800, Neel Chauhan wrote: > * Is porting OpenBSD MPLS to FreeBSD feasible, or are we better off doing > a from-scratch implementation based on netgraph? I'd prefer a netgraph approach, if possible. It helps to concentrate on the important things. > * Would some of the other committers here be willing to mentor/help me if > needed? For the netgraph part ... From nobody Sat Nov 20 06:20:47 2021 X-Original-To: freebsd-net@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 72E2D189D388 for ; Sat, 20 Nov 2021 06:20:57 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hx3Lw6xjGz4mkN; Sat, 20 Nov 2021 06:20:56 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 1AK6Klfi096203; Fri, 19 Nov 2021 22:20:47 -0800 (PST) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 1AK6KlRf096202; Fri, 19 Nov 2021 22:20:47 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <202111200620.1AK6KlRf096202@gndrsh.dnsmgr.net> Subject: Re: Porting OpenBSD MPLS to FreeBSD In-Reply-To: <7de5f4bf0fdec027b5ae5d844a7cb0f5@FreeBSD.org> To: Neel Chauhan Date: Fri, 19 Nov 2021 22:20:47 -0800 (PST) CC: freebsd-net@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 4Hx3Lw6xjGz4mkN X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > Hi freebsd-net@, > > Long time no see. I've gotten a (Ports) commit bit since then. > > I haven't been very active in TCP/IP hacking as of late, as more > recently I've been more focused on GNOME packages and some GPU drivers. > > Going back, I'm thinking about porting OpenBSD's MPLS to FreeBSD. I have had similiar thoughts on and off over the years, and one pretty solid "want" for this. > > I have a two questions: > > * Is porting OpenBSD MPLS to FreeBSD feasible, or are we better off > doing a from-scratch implementation based on netgraph? Feasible, yes, as to the better off part that probably depends on who you ask. MPLS is not that complicated to implement, so doing it either way all depends on weither you want to deal with netgraph, or the kernel network interface code. Its also probably fairly trivial to do both with a great deal of shared code. > > * Would some of the other committers here be willing to mentor/help me > if needed? Yes. > > Unlike my old IPFW patches which got nowhere (plus I no longer use > IPFW), I feel this is more something that could be useful when running > FreeBSD as a router, but hasn't really been done. I can probably arrange a telco size beta tester too... unless there interested has gone away, which I doubt. > -Neel (nc@) -- Rod Grimes rgrimes@freebsd.org From nobody Sat Nov 20 12:37:35 2021 X-Original-To: net@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 6CCB91829705 for ; Sat, 20 Nov 2021 12:37:47 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HxCjl2dH3z4mxB; Sat, 20 Nov 2021 12:37:47 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: vmaffione) by smtp.freebsd.org (Postfix) with ESMTPSA id 357B3F096; Sat, 20 Nov 2021 12:37:47 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: by mail-ua1-f46.google.com with SMTP id t13so26740907uad.9; Sat, 20 Nov 2021 04:37:47 -0800 (PST) X-Gm-Message-State: AOAM5317I04d6cOr0lEHphzggnPzJoRR0ou1klcCNl8VS7O45ynA26GY qR3EqVTc550PVJWquASRlgfMfrZkjPWVf76dSJs= X-Google-Smtp-Source: ABdhPJw440ADvBDkJcvoR/pxJG10eQk+AOI/x+nL9fn8uQjCXf98yzRG+EUkokFM4+Jm8Y7W8sV1azdSu7wPCkZXRMM= X-Received: by 2002:a05:6102:7b3:: with SMTP id x19mr107641214vsg.24.1637411866692; Sat, 20 Nov 2021 04:37:46 -0800 (PST) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 References: <0dbe63d0-3219-846d-4c58-0bf219f41634@FreeBSD.org> <65d72f7d-5096-07ec-4e21-c6356be7e06f@FreeBSD.org> In-Reply-To: <65d72f7d-5096-07ec-4e21-c6356be7e06f@FreeBSD.org> From: Vincenzo Maffione Date: Sat, 20 Nov 2021 13:37:35 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: vmxnet3: possible bug in vmxnet3_isc_rxd_pkt_get To: Andriy Gapon Cc: "net@FreeBSD.org" , Mark Johnston , Patrick Kelsey Content-Type: multipart/alternative; boundary="000000000000aa4ff705d137a86a" X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: Y --000000000000aa4ff705d137a86a Content-Type: text/plain; charset="UTF-8" +1 for adding the sanity check in vmxnet3_isc_rxd_pkt_get(). This looks like a bug to me... Cheers Vincenzo Il giorno ven 19 nov 2021 alle ore 19:46 Andriy Gapon ha scritto: > On 19/11/2021 20:19, Andriy Gapon wrote: > > Here is some data to demonstrate the issue: > > $1 = (iflib_rxq_t) 0xfffffe00ea9f6200 > > (kgdb) p $1->ifr_frags[0] > > $2 = {irf_flid = 0 '\000', irf_idx = 1799, irf_len = 118} > > > > (kgdb) p $1->ifr_frags[1] > > $3 = {irf_flid = 1 '\001', irf_idx = 674, irf_len = 0} > > (kgdb) p $1->ifr_frags[2] > > $4 = {irf_flid = 1 '\001', irf_idx = 675, irf_len = 0} > > > > ... elements 3..62 follow the same pattern ... > > > > (kgdb) p $1->ifr_frags[63] > > $6 = {irf_flid = 1 '\001', irf_idx = 736, irf_len = 0} > > > > and then... > > > > (kgdb) p $1->ifr_frags[64] > > $7 = {irf_flid = 1 '\001', irf_idx = 737, irf_len = 0} > > (kgdb) p $1->ifr_frags[65] > > $8 = {irf_flid = 1 '\001', irf_idx = 738, irf_len = 0} > > ... the pattern continues ... > > (kgdb) p $1->ifr_frags[70] > > $10 = {irf_flid = 1 '\001', irf_idx = 743, irf_len = 0} > > > > > > It seems like a start-of-packet completion descriptor referenced a > descriptor in > > the command ring zero (and apparently it didn't have the end-of-packet > bit). And > > there were another 70 zero-length completions referencing the ring one > until the > > end-of-packet. > > So, in total 71 fragment was recorded. > > > > Or it's possible that those zero-length fragments were from the > penultimate > > pkt_get call and ifr_frags[0] was obtained after that... > > > I think that this was the case and that I was able to find the > corresponding > descriptors in the completion ring. > > Please see https://people.freebsd.org/~avg/vmxnet3-fragment-overrun.txt > > $54 is the SOP, it has qid of 6. > It is followed by many fragments with qid 14 (there are 8 queues / queue > sets) > and zero length. > But not all of them are zero length, some have length of 4096, e.g. $77, > $86, etc. > $124 is the last fragment, its has eop = 1 and error = 1. > So, there are 71 fragments in total. > > So, it is clear that VMWare produced 71 segments for a single packet > before > giving up on it. > > I wonder why it did that. > Perhaps it's a bug, perhaps it does not count zero-length segments against > the > limit, maybe something else. > > In any case, it happens. > > Finally, the packet looks interesting: udp = 0, tcp = 0, ipcsum_ok = 0, > ipv6 = > 0, ipv4 = 0. I wonder what kind of a packet it could be -- being rather > large > and not an IP packet. > > > I am not sure how that could happen. > > I am thinking about adding a sanity check for the number of fragments. > > Not sure yet what options there are for handling the overflow besides > panicing. > > > > > > Also, some data from the vmxnet3's side of things: > > (kgdb) p $15.vmx_rxq[6] > > $18 = {vxrxq_sc = 0xfffff80002d9b800, vxrxq_id = 6, vxrxq_intr_idx = 6, > > vxrxq_irq = {ii_res = 0xfffff80002f23e00, ii_rid = 7, ii_tag = > > 0xfffff80002f23d80}, vxrxq_cmd_ring = {{vxrxr_rxd = 0xfffffe00ead3c000, > > vxrxr_ndesc = 2048, > > vxrxr_gen = 0, vxrxr_paddr = 57917440, vxrxr_desc_skips = 1114, > > vxrxr_refill_start = 1799}, {vxrxr_rxd = 0xfffffe00ead44000, vxrxr_ndesc > = 2048, > > vxrxr_gen = 0, vxrxr_paddr = 57950208, vxrxr_desc_skips = 121, > > vxrxr_refill_start = 743}}, vxrxq_comp_ring = {vxcr_u = {txcd = > > 0xfffffe00ead2c000, rxcd = 0xfffffe00ead2c000}, vxcr_next = 0, > vxcr_ndesc = > > 4096, vxcr_gen = 1, vxcr_paddr = 57851904, vxcr_zero_length = 1044, > > vxcr_pkt_errors = 128}, vxrxq_rs = 0xfffff80002d78e00, vxrxq_sysctl > = > > 0xfffff80004308080, vxrxq_name = "vmx0-rx6\000\000\000\000\000\000\000"} > > > > vxrxr_refill_start values are consistent with what is seen in > ifr_frags[]. > > vxcr_zero_length and vxcr_pkt_errors are both not zero, so maybe > something got > > the driver into a confused state or the emulated hardware became > confused. > > > -- > Andriy Gapon > > --000000000000aa4ff705d137a86a-- From nobody Sat Nov 20 14:19:11 2021 X-Original-To: freebsd-net@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 E7CF01888157 for ; Sat, 20 Nov 2021 14:19:23 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HxFyz3KD6z3pP0; Sat, 20 Nov 2021 14:19:23 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: by mail-ua1-x92b.google.com with SMTP id n6so27218314uak.1; Sat, 20 Nov 2021 06:19:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=8r89yyaNJ/FsvWhkWTh4XHARnxkF8MSfPJuIW3ItMB8=; b=ljGYPDUqGkjLrDYbAZgAMw2MYVqkDl3Xml8MLJi0zger6asfKHPH/n9NeaUoJAlgIV qHLM0yezWO3rNrItN4gHxLGSitrdP3tEm7ysCIZYOrtqlfyLVlcCBBz2nc95x3zWJ/hq y7A5NIt5MhsO6dUZWJ/1ByobmUCLljxRSV4a/4i9x01Aqx/Sy7ohQMNtFjSdNElWOZdv hsgX9FxC4lXanZcBHWgTurDwkJWl6H69SFE9Uy++TgIfAOpw6vY3zvJevmwwtonKS+ac enz9gxfE2xfpjDTn0lO4d169t6To2eNyPBN0eafYy8MzHRdeUmGnp3ElqMhouAa9cA3L 9fsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=8r89yyaNJ/FsvWhkWTh4XHARnxkF8MSfPJuIW3ItMB8=; b=pKi/ndu3QC/mMdb5bRPCfo7RuPXuuQ/9tA3mZ2FAE5VpFv/Kf1qv6HSyKD8/a8NE6h dT6gdwreLrMVjFcwX0kLx+LOLaX87f4b4KZeUtPJS+GYLSrmhm0Qu8rg54AKUCTcnuOi O/M9Eo3SifWsBqsoXA8IARzQ2Nq5uYTNxwIrmhoKr6D2L0vfKs13EFBpM+9QNNA741EC CcrRto4lZfFiRv/3NlnKwRR0PJJUvKp8Zybypwdp5mpo1dK+I1XKmP5gt98fSuRpHar3 Zf+rSOHF2U9/FIy+en0M62Taye5HPG1XwkrNsP5k9MZ+3oGPt9mxL0NFBZ0nudosMgmu zy/g== X-Gm-Message-State: AOAM531+0O0Nrbmc0VXhK44q/a/M57/JC2Y5KmDroOSX6jiT9vD4UqpX oMB74HoZ7NHiVHrI6DdGK/WyAMg0dJ7guCZS9JyKSKitw3A= X-Google-Smtp-Source: ABdhPJyYl5We1YmmN8fnJztaBhAoWJnlokWHeYiu9+Et9Tmnw+8tksBp4blZYMaRn1jfQaxtiA/iFSFfNvN22BhsRZs= X-Received: by 2002:ab0:35e8:: with SMTP id w8mr61420669uau.31.1637417962729; Sat, 20 Nov 2021 06:19:22 -0800 (PST) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 From: =?UTF-8?B?w5Z6a2FuIEtJUklL?= Date: Sat, 20 Nov 2021 17:19:11 +0300 Message-ID: Subject: e1000 & igb if_vlan netmap header stripping issue after e1000-igb driver updates. To: FreeBSD Net , kbowling@freebsd.org, Vincenzo Maffione Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4HxFyz3KD6z3pP0 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=ljGYPDUq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ozkankirik@gmail.com designates 2607:f8b0:4864:20::92b as permitted sender) smtp.mailfrom=ozkankirik@gmail.com X-Spamd-Result: default: False [0.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::92b:from]; NEURAL_SPAM_LONG(1.00)[1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Hello, I'm using stable/12 (aba2dc46dfa5, Oct 24 2021). I'm hitting some problems with if_vlan + parent interface netmap. It was working with before driver update. Maybe something missing for netmap implementation. The way to reproduce: [HostA] <----> [HostB] HostA - ifconfig em1.110 create 10.10.10.2/24 up - ping 10.10.10.1 - tcpdump -eni em1 17:05:11.393411 00:50:56:26:69:ea > 00:0c:29:84:5d:88, ethertype 802.1Q (0x8100), length 102: vlan 110, p 0, ethertype IPv4, 10.10.10.1 > 10.10.10.2: ICMP echo reply, id 32844, seq 53, length 64 HostB - ifconfig em1.110 create 10.10.10.1/24 up - ifconfig em1 promisc -tso -lro -rxcsum -txcsum -tso6 -rxcsum -txcsum -tso6 -rxcsum6 -txcsum6 -vlanhwtag -vlanhwcsum -vlanhwtso - ./bridge -i em1 -i em1^ & # tcpdump -eni em1 17:05:11.391215 00:0c:29:84:5d:88 > 00:50:56:26:69:ea, ethertype IPv4 (0x0800), length 98: 10.10.10.2 > 10.10.10.1: ICMP echo request, id 32844, seq 53, length 64 Pinging from HostA to HostB through if_vlan. When netmap bridge is closed, everything is okey, we can see the original packet on tcpdump. But when netmap bridge is started, packet's vlan header was lost as you can see above. The netmap bridge app is the original tools/tools/netmap/bridge.c application. HostA and HostB connected back to back directly with a patch cable. There is no switch between them. I tried this test on real hardware em, igb and vmware e1000 (em) nics. Problem is easy to reproduce. But there is no such problem on ix and ixl cards. Is it possible to check and fix? Best Regards, =C3=96zkan KIRIK From nobody Sun Nov 21 21:00:55 2021 X-Original-To: net@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 8195318A9351 for ; Sun, 21 Nov 2021 21:00:56 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hy2qr0Nydz3QdM for ; Sun, 21 Nov 2021 21:00:55 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AAFCB1668B for ; Sun, 21 Nov 2021 21:00:55 +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 1ALL0t1Z070025 for ; Sun, 21 Nov 2021 21:00:55 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ALL0tOf070024 for net@FreeBSD.org; Sun, 21 Nov 2021 21:00:55 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202111212100.1ALL0tOf070024@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: net@FreeBSD.org Subject: Problem reports for net@FreeBSD.org that need special attention Date: Sun, 21 Nov 2021 21:00:55 +0000 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="16375284553.d3dDd.67989" Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: Y --16375284553.d3dDd.67989 Date: Sun, 21 Nov 2021 21:00:55 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- In Progress | 221146 | [ixgbe] Problem with second laggport New | 204438 | setsockopt() handling of kern.ipc.maxsockbuf limi New | 213410 | [carp] service netif restart causes hang only whe Open | 7556 | ppp: sl_compress_init() will fail if called anyth Open | 166724 | if_re(4): watchdog timeout Open | 193452 | Dell PowerEdge 210 II -- Kernel panic bce (broadc Open | 200319 | Bridge+CARP crashes/freezes Open | 202510 | [CARP] advertisements sourced from CARP IP cause Open | 207261 | netmap: Doesn't do TX sync with kqueue Open | 222273 | igb(4): Kernel panic (fatal trap 12) due to netwo Open | 225438 | panic in6_unlink_ifa() due to race Open | 227720 | Kernel panic in ppp server Open | 230807 | if_alc(4): Driver not working for Killer Networki Open | 236888 | ppp daemon: Allow MTU to be overridden for PPPoE Open | 236983 | bnxt(4) VLAN not operational unless explicit "ifc Open | 237072 | netgraph(4): performance issue [on HardenedBSD]? Open | 237840 | Removed dummynet dependency on ipfw Open | 238324 | Add XG-C100C/AQtion AQC107 10GbE NIC driver Open | 238707 | Lock order reversal: rtentry vs "nd6 list" Open | 240944 | em(4): Crash with Intel 82571EB NIC with AMD Pile Open | 241106 | tun/ppp: panic: vm_fault: fault on nofault entry Open | 241162 | Panic in closefp() triggered by nginx (uwsgi with Open | 241191 | route flush panic with RADIX_MPATH Open | 243463 | ix0: Watchdog timeout Open | 247111 | pxeboot very slow with i219LM Open | 257709 | netinet6: Set net.inet6.icmp6.nodeinfo default to Open | 118111 | rc: network.subr Add MAC address based interface 27 problems total for which you should take action. --16375284553.d3dDd.67989-- From nobody Mon Nov 22 02:09:46 2021 X-Original-To: net@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 774E2189597E for ; Mon, 22 Nov 2021 02:09:52 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hy9hJ27v3z54gY for ; Mon, 22 Nov 2021 02:09:52 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1C3271A69D for ; Mon, 22 Nov 2021 02:09:52 +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 1AM29qNr036198 for ; Mon, 22 Nov 2021 02:09:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AM29qkt036197 for net@FreeBSD.org; Mon, 22 Nov 2021 02:09:52 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 200319] Bridge+CARP crashes/freezes Date: Mon, 22 Nov 2021 02:09:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: kp@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: resolution bug_status 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200319 Kristof Provost changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|Open |Closed --- Comment #27 from Kristof Provost --- This should be fixed now that the if_bridge locking rework has landed. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Nov 22 03:19:48 2021 X-Original-To: freebsd-net@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 9583C188F5B6 for ; Mon, 22 Nov 2021 03:20:06 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HyCFK69scz3h1g for ; Mon, 22 Nov 2021 03:20:05 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-wm1-x332.google.com with SMTP id i12so13943817wmq.4 for ; Sun, 21 Nov 2021 19:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=olDaJVfi+EGUhnZ5UlPUFFoyXMKiVeH3AtY46XnX9pQ=; b=fzHeA+mi2/Hh6ZDDb6wNFgyNmiXKP98N5S1Zd13fuibgI+nuNfwBus5orknclb0khb +4W5XR6jByn6P7JDA8QV/HCtJgby+SDfwk2URPItSh8p5BLyowdv/jraMj+myYN7wwPL r33zIM5yCVU5/CGUNC2CXub72vBXbOQHWAMSqAuHsbAKwJDp0IMZkdv7j3uxxaDaACZQ s7G+N7D18ArT0rHxkfdRhQSOq9Nbd3qLxd3W6vCKjTYq4NWpZ8kOFDDxX4QsqcKXNJSb HqiYQjOX0lPvLMyJvsL5BYDi010u654lQ5w07BoIc6e8BzwltxWke1uplY0XYm2HbC+H Rj4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=olDaJVfi+EGUhnZ5UlPUFFoyXMKiVeH3AtY46XnX9pQ=; b=2R9pFB1/TVLzSCg9kWYbO2PH1T4v56vCOE/gd78fIO7QhN8HONeX76K3bRgDsPXC1n OzxsAAfUvi9+0AF/Qa5t0bFEivGDKGJ+CMdDYDlvswjhdPBAVyl0iqHOcY7KSpTkfzKV 3fKyPNYHpevFAi3xqGK0NvFI9SR/RBXZ4mehigzDcfTU/Qg38FURp0vrWhTzmbHXdI9v 9PeMxxsLhWeay2Hlszu803FuOQAGqIm7gGcZ1GpwaundkDP9Ll53CEP4rw3xYR6mtHdL RpWtRh2LHCT2CTUii5GRNV7Vt+xTTBuVcli4A7AcNw9LyyKmd7luRA+F6kJ3CQKKFy62 VsAg== X-Gm-Message-State: AOAM532cmH1S3yB75LMBpkPrhCyMx+0uIL7vdvdxEMYvL1b11v3VwCY8 n8qH0dQW8FvXjzqPAlbOBgI4la7tyhoPICzbXTY= X-Google-Smtp-Source: ABdhPJw19Zg7OngE1PpnBND2c2GW0Ezr0qNZpyHsMEn7OhTLEZt5hVmq49VUWhJKQau1KfMsfAtV1EkR4YagAOkKYII= X-Received: by 2002:a7b:ce16:: with SMTP id m22mr21242519wmc.137.1637551204286; Sun, 21 Nov 2021 19:20:04 -0800 (PST) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Kevin Oberman Date: Sun, 21 Nov 2021 19:19:48 -0800 Message-ID: Subject: Re: Splitting antenna To: "D'Arcy Cain" Cc: freebsd-net Content-Type: multipart/alternative; boundary="000000000000d5458e05d15819d6" X-Rspamd-Queue-Id: 4HyCFK69scz3h1g X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=fzHeA+mi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2a00:1450:4864:20::332 as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-2.18 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[1]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.92)[-0.922]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.56)[-0.558]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::332:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: Y --000000000000d5458e05d15819d6 Content-Type: text/plain; charset="UTF-8" On Fri, Nov 19, 2021 at 10:27 AM D'Arcy Cain wrote: > I am using my FreeBSD box as my main ingress to my RV trailer. We move > around and sometimes use Ethernet, sometimes PPP directly on DSL and > sometimes we connect to a local wifi hotspot. To get the best connection > I > have mounted an external, multi-band antenna on the trailer and connect it > to one of the antenna connections on the wifi card. > > My question is, can I split the antenna connection and use both antenna > connectors on the wifi card (or three if I have that kind of card) or will > that mess up the connection. I know that each connection is for a > different > band. Different camp grounds use different bands and sometimes I need to > switch the antenna to get a better Internet connection. It would be nice > if > I could just have both of then connected to the external antenna. > > Cheers. > > -- > D'Arcy J.M. Cain | Democracy is three wolves > http://www.druid.net/darcy/ | and a sheep voting on > +1 416 788 2246 (DoD#0082) (eNTP) | what's for dinner. > IM: darcy@VybeNetworks.com, VoIP: sip:darcy@druid.net Yes, you can split the signal, but the signal on each output will be a bit less than half the strength of the input signal. Three-way splitters are less common, but a 4-way means a quarter of the input. Make sure the splitter matches the impedance of the antenna as do all of the cables. As long as the S/N ratio is good enough, the split will work fine as it is in the analog realm. Since signal strength will vary depending on location, splitting may work in some places and not in others. A broadband amplifier attached at or near the antenna will help a lot if the signal strength is enough to work well before splitting. If you have a friend who is a ham radio operator, they could help a lot. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --000000000000d5458e05d15819d6-- From nobody Mon Nov 22 22:43:00 2021 X-Original-To: net@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 28F3A189CA33 for ; Mon, 22 Nov 2021 22:43:03 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hyj3B3B2gz4fc7 for ; Mon, 22 Nov 2021 22:43: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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 256EC309C for ; Mon, 22 Nov 2021 22:43:02 +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 1AMMh2UE004158 for ; Mon, 22 Nov 2021 22:43:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AMMh2FF004157 for net@FreeBSD.org; Mon, 22 Nov 2021 22:43:02 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 259645] crash in_cksumdata (sys/amd64/amd64/in_cksum.c:113) via in4_cksum (sys/netpfil/pf/in4_cksum.c:117) after FreeBSD 13.0 p5 update Date: Mon, 22 Nov 2021 22:43:00 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? mfc-stable13? mfc-stable12? 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259645 --- Comment #16 from Mark Johnston --- *** Bug 257627 has been marked as a duplicate of this bug. *** --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From nobody Wed Nov 24 02:08:39 2021 X-Original-To: freebsd-net@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 EF2A21894590 for ; Wed, 24 Nov 2021 02:08:48 +0000 (UTC) (envelope-from jschauma@netmeister.org) Received: from panix.netmeister.org (panix.netmeister.org [166.84.7.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzPZ80BTZz4b58 for ; Wed, 24 Nov 2021 02:08:47 +0000 (UTC) (envelope-from jschauma@netmeister.org) Received: by panix.netmeister.org (Postfix, from userid 1000) id 17B948586F; Tue, 23 Nov 2021 21:08:40 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=netmeister.org; s=2021; t=1637719720; bh=CcuIFKnE2pcf0LkAV9H+lxasWwBhsrtVYM90gj5tfzE=; h=Date:From:To:Subject; b=dY1wj6q3zQCK7sWRt/0lVJxl5MmHLNBJSG3jezz59pdZVtp5fmIieAvt1MzS/SdC6 SAQgRky2tmXuk3xaVLdH12p/dcV6YDvOaPcCXPtibFTeanAM/16qUjHngCNG0tpBES zVAWLj6UpN8WxUzU/EVzSyz2Z5jTEGkV78VifGao= Date: Tue, 23 Nov 2021 21:08:39 -0500 To: freebsd-net@freebsd.org Subject: bind() to ::1 fails with EADDRNOTAVAIL / clang vs gcc Message-ID: <20211124020839.GZ11277@netmeister.org> List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.1 (2018-12-01) X-Rspamd-Queue-Id: 4HzPZ80BTZz4b58 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=netmeister.org header.s=2021 header.b=dY1wj6q3; dmarc=pass (policy=quarantine) header.from=netmeister.org; spf=pass (mx1.freebsd.org: domain of jschauma@netmeister.org designates 166.84.7.99 as permitted sender) smtp.mailfrom=jschauma@netmeister.org X-Spamd-Result: default: False [-3.98 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.977]; R_DKIM_ALLOW(-0.20)[netmeister.org:s=2021]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[netmeister.org:+]; DMARC_POLICY_ALLOW(-0.50)[netmeister.org,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2033, ipnet:166.84.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[] Reply-To: jschauma@netmeister.org From: Jan Schaumann via freebsd-net X-Original-From: Jan Schaumann X-ThisMailContainsUnwantedMimeParts: N Hello, I'm observing the following strange behavior, where trying to bind(2) a socket on "::1" fails with EADDRNOTAVAIL, but binding in6addr_any will succeed (and then yield a bound ::1). What's more, the behavior is inconsistent depending on the compiler used. Here's my sample program a.c: ---- #include #include #include #include #include #define PORT 12345 int main(int argc, char **argv) { int sock; socklen_t a, b; struct sockaddr_storage server; struct sockaddr_in6 *sin = (struct sockaddr_in6 *)&server; if ((sock = socket(PF_INET6, SOCK_STREAM, 0)) < 0) { err(EXIT_FAILURE, "socket"); /* NOTREACHED */ } if (inet_pton(PF_INET6, "::1", &(sin->sin6_addr)) != 1) { err(EXIT_FAILURE, "inet_pton"); /* NOTREACHED */ } sin->sin6_family = PF_INET6; sin->sin6_port = htons(PORT); if (bind(sock, (struct sockaddr *)sin, sizeof(*sin)) != 0) { err(EXIT_FAILURE, "bind"); /* NOTREACHED */ } return 0; } ---- This program succeeds in binding and returns 0, as expected. However, note the declaration of the unused socklen_t a and b. If I remove that declaration, the call to bind(2) will fail: $ diff -bu [ab].c --- a.c 2021-11-23 19:49:05.926884000 +0000 +++ b.c 2021-11-23 19:48:51.409173000 +0000 @@ -11,7 +11,6 @@ int main(int argc, char **argv) { int sock; - socklen_t a, b; struct sockaddr_storage server; struct sockaddr_in6 *sin = (struct sockaddr_in6 *)&server; $ ./a.out $ echo $? 0 $ cc b.c $ ./a.out a.out: bind: Can't assign requested address $ This is on FreeBSD 13.0-RELEASE with FreeBSD clang version 11.0.1. Compiling either with gcc version 10.3.0 fails. So my questions are: - Why does _any_ of those fail? - Why does a.c succeed when compiled with clang, but b.c does not? -Jan From nobody Wed Nov 24 02:19:51 2021 X-Original-To: freebsd-net@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 993D8189B86E for ; Wed, 24 Nov 2021 02:19:53 +0000 (UTC) (envelope-from jschauma@netmeister.org) Received: from panix.netmeister.org (panix.netmeister.org [166.84.7.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzPpv5VgSz4fV3 for ; Wed, 24 Nov 2021 02:19:51 +0000 (UTC) (envelope-from jschauma@netmeister.org) Received: by panix.netmeister.org (Postfix, from userid 1000) id 25EDB8586F; Tue, 23 Nov 2021 21:19:51 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=netmeister.org; s=2021; t=1637720391; bh=w+5l0HV0kim0brDEGzMrEROgpZ2Ft8wcYcOrWSDBNAg=; h=Date:From:To:Subject:References:In-Reply-To; b=LGmzTXTGZN7Dp6rW7Gn6BN6M6XdqbnXFqNkiV+N2V4Edrh2XKRKOaEI08WRVhN8wX RA60X6kfHv6OiCCPIp+/zoowKX2RX/Fw8KGpVb4V9iJr32tQk54H6HEyomGdAJrQFO b9WGGpds9+8nfjO9Qea/KCC2hpacGlLtSfQjp1Lw= Date: Tue, 23 Nov 2021 21:19:51 -0500 To: freebsd-net@freebsd.org Subject: Re: bind() to ::1 fails with EADDRNOTAVAIL / clang vs gcc Message-ID: <20211124021950.GA11277@netmeister.org> References: <20211124020839.GZ11277@netmeister.org> List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211124020839.GZ11277@netmeister.org> User-Agent: Mutt/1.11.1 (2018-12-01) X-Rspamd-Queue-Id: 4HzPpv5VgSz4fV3 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=netmeister.org header.s=2021 header.b=LGmzTXTG; dmarc=pass (policy=quarantine) header.from=netmeister.org; spf=pass (mx1.freebsd.org: domain of jschauma@netmeister.org designates 166.84.7.99 as permitted sender) smtp.mailfrom=jschauma@netmeister.org X-Spamd-Result: default: False [-3.89 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.89)[-0.885]; R_DKIM_ALLOW(-0.20)[netmeister.org:s=2021]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[netmeister.org:+]; DMARC_POLICY_ALLOW(-0.50)[netmeister.org,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2033, ipnet:166.84.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[] Reply-To: jschauma@netmeister.org From: Jan Schaumann via freebsd-net X-Original-From: Jan Schaumann X-ThisMailContainsUnwantedMimeParts: N Jan Schaumann via freebsd-net wrote: > Compiling either with gcc version 10.3.0 fails. Sorry, this is misleading. I meant to say: Compiling either with gcc version 10.3.0 yields a program that fails to bind(2). Compilation itself succeeds just fine. -Jan From nobody Wed Nov 24 02:53:45 2021 X-Original-To: freebsd-net@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 A2E6618ACF94 for ; Wed, 24 Nov 2021 02:53:53 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzQZ92bwLz4q1c for ; Wed, 24 Nov 2021 02:53:53 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.16.1/8.16.1) with ESMTPS id 1AO2rj8w057267 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 24 Nov 2021 04:53:48 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 1AO2rj8w057267 Received: (from kostik@localhost) by tom.home (8.16.1/8.16.1/Submit) id 1AO2rjh3057266; Wed, 24 Nov 2021 04:53:45 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 24 Nov 2021 04:53:45 +0200 From: Konstantin Belousov To: jschauma@netmeister.org Cc: freebsd-net@freebsd.org Subject: Re: bind() to ::1 fails with EADDRNOTAVAIL / clang vs gcc Message-ID: References: <20211124020839.GZ11277@netmeister.org> List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211124020839.GZ11277@netmeister.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on tom.home X-Rspamd-Queue-Id: 4HzQZ92bwLz4q1c X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, Nov 23, 2021 at 09:08:39PM -0500, Jan Schaumann via freebsd-net wrote: > Hello, > > I'm observing the following strange behavior, where > trying to bind(2) a socket on "::1" fails with > EADDRNOTAVAIL, but binding in6addr_any will succeed > (and then yield a bound ::1). What's more, the > behavior is inconsistent depending on the compiler > used. > > Here's my sample program a.c: > > ---- > #include > #include > > #include > > #include > #include > > #define PORT 12345 > > int > main(int argc, char **argv) { > int sock; > socklen_t a, b; > struct sockaddr_storage server; > struct sockaddr_in6 *sin = (struct sockaddr_in6 *)&server; > > if ((sock = socket(PF_INET6, SOCK_STREAM, 0)) < 0) { > err(EXIT_FAILURE, "socket"); > /* NOTREACHED */ > } > > if (inet_pton(PF_INET6, "::1", &(sin->sin6_addr)) != 1) { > err(EXIT_FAILURE, "inet_pton"); > /* NOTREACHED */ > } > > sin->sin6_family = PF_INET6; > sin->sin6_port = htons(PORT); > > if (bind(sock, (struct sockaddr *)sin, sizeof(*sin)) != 0) { > err(EXIT_FAILURE, "bind"); > /* NOTREACHED */ > } > > return 0; > } > ---- > > This program succeeds in binding and returns 0, as > expected. However, note the declaration of the unused > socklen_t a and b. If I remove that declaration, the > call to bind(2) will fail: > > $ diff -bu [ab].c > --- a.c 2021-11-23 19:49:05.926884000 +0000 > +++ b.c 2021-11-23 19:48:51.409173000 +0000 > @@ -11,7 +11,6 @@ > int > main(int argc, char **argv) { > int sock; > - socklen_t a, b; > struct sockaddr_storage server; > struct sockaddr_in6 *sin = (struct sockaddr_in6 *)&server; > > $ ./a.out > $ echo $? > 0 > $ cc b.c > $ ./a.out > a.out: bind: Can't assign requested address > $ > > This is on FreeBSD 13.0-RELEASE with FreeBSD clang > version 11.0.1. > > Compiling either with gcc version 10.3.0 fails. > > > So my questions are: > > - Why does _any_ of those fail? > - Why does a.c succeed when compiled with clang, but > b.c does not? Most likely because you did not fully initialized *sin. struct sockaddr_in6 is more complex than just address/port/family. There is also at least scope_id, and something called flow_id. You did not initialized these fields. By adding unused stack variables, you changed the place on stack where sockaddr_in6 structure was laid out, systematically chaning assigned values to these fields. Really it is UB, try to memset(sin, 0, sizeof(*sin)). From nobody Wed Nov 24 03:10:10 2021 X-Original-To: freebsd-net@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 A67B4188B742 for ; Wed, 24 Nov 2021 03:10:18 +0000 (UTC) (envelope-from jschauma@netmeister.org) Received: from panix.netmeister.org (panix.netmeister.org [IPv6:2001:470:30:84:e276:63ff:fe72:3900]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzQx60W93z4tGh for ; Wed, 24 Nov 2021 03:10:18 +0000 (UTC) (envelope-from jschauma@netmeister.org) Received: by panix.netmeister.org (Postfix, from userid 1000) id B59B38586F; Tue, 23 Nov 2021 22:10:10 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=netmeister.org; s=2021; t=1637723410; bh=2yg49QeuReGzwTo3pUhw2ITFsQnujjb6j8c/26Qw0Ts=; h=Date:From:To:Subject:References:In-Reply-To; b=pl5zTkI+l8VykcOEqW+udY4lchTcpNElOlFkU5FwT1dgL37y1S/Rj/HtITYGbelHd nY4p8APC9SoD1kw2LHwqazpixjcNSNReAcncPykH6JOlDQMD24wSRB3aMi5KUdzEKn grHxFsCAyzhWNYv0uXGYTkXsK40F0uE4ZbvdcCps= Date: Tue, 23 Nov 2021 22:10:10 -0500 To: freebsd-net@freebsd.org Subject: Re: bind() to ::1 fails with EADDRNOTAVAIL / clang vs gcc Message-ID: <20211124031010.GB11277@netmeister.org> References: <20211124020839.GZ11277@netmeister.org> List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.1 (2018-12-01) X-Rspamd-Queue-Id: 4HzQx60W93z4tGh X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=netmeister.org header.s=2021 header.b=pl5zTkI+; dmarc=pass (policy=quarantine) header.from=netmeister.org; spf=pass (mx1.freebsd.org: domain of jschauma@netmeister.org designates 2001:470:30:84:e276:63ff:fe72:3900 as permitted sender) smtp.mailfrom=jschauma@netmeister.org X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[netmeister.org:s=2021]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[netmeister.org:+]; DMARC_POLICY_ALLOW(-0.50)[netmeister.org,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2033, ipnet:2001:470:30::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[] Reply-To: jschauma@netmeister.org From: Jan Schaumann via freebsd-net X-Original-From: Jan Schaumann X-ThisMailContainsUnwantedMimeParts: N Konstantin Belousov wrote: > On Tue, Nov 23, 2021 at 09:08:39PM -0500, Jan Schaumann via freebsd-net wrote: > > - Why does _any_ of those fail? > > - Why does a.c succeed when compiled with clang, but > > b.c does not? > Most likely because you did not fully initialized *sin. > Really it is UB, try to memset(sin, 0, sizeof(*sin)). Nice, that works. Thanks! -Jan From nobody Wed Nov 24 03:36:58 2021 X-Original-To: freebsd-net@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 E86D5189AAC1 for ; Wed, 24 Nov 2021 03:36:59 +0000 (UTC) (envelope-from jschauma@netmeister.org) Received: from panix.netmeister.org (panix.netmeister.org [IPv6:2001:470:30:84:e276:63ff:fe72:3900]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzRWt6d9Hz53Qd for ; Wed, 24 Nov 2021 03:36:58 +0000 (UTC) (envelope-from jschauma@netmeister.org) Received: by panix.netmeister.org (Postfix, from userid 1000) id 78FD28586F; Tue, 23 Nov 2021 22:36:58 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=netmeister.org; s=2021; t=1637725018; bh=hwiZSsLxZ4Owy9szFnLzLCeO95zwFe4EOUnPhSIyhck=; h=Date:From:To:Subject:References:In-Reply-To; b=Cz+64bmJaoS3IWDpY6uk4v4ZAzSB0daRKkW729pe9JGi3umYKRBCFIpt4EKR2isSB lzmIHrd2uO+ZXwhrjgCFTd7HnMLu3jTi6Jm0TpWjupWJ8WgMOzp9GnjY9zriwS9hkj AyNfo3bCDDSqNk7sUwyiUPr0HUwbV06L7EGf9060= Date: Tue, 23 Nov 2021 22:36:58 -0500 To: freebsd-net@freebsd.org Subject: Re: bind() to ::1 fails with EADDRNOTAVAIL / clang vs gcc Message-ID: <20211124033658.GC11277@netmeister.org> References: <20211124020839.GZ11277@netmeister.org> <20211124031010.GB11277@netmeister.org> List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211124031010.GB11277@netmeister.org> User-Agent: Mutt/1.11.1 (2018-12-01) X-Rspamd-Queue-Id: 4HzRWt6d9Hz53Qd X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=netmeister.org header.s=2021 header.b=Cz+64bmJ; dmarc=pass (policy=quarantine) header.from=netmeister.org; spf=pass (mx1.freebsd.org: domain of jschauma@netmeister.org designates 2001:470:30:84:e276:63ff:fe72:3900 as permitted sender) smtp.mailfrom=jschauma@netmeister.org X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[netmeister.org:s=2021]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[netmeister.org:+]; DMARC_POLICY_ALLOW(-0.50)[netmeister.org,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2033, ipnet:2001:470:30::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[] Reply-To: jschauma@netmeister.org From: Jan Schaumann via freebsd-net X-Original-From: Jan Schaumann X-ThisMailContainsUnwantedMimeParts: N Jan Schaumann via freebsd-net wrote: > Konstantin Belousov wrote: > > On Tue, Nov 23, 2021 at 09:08:39PM -0500, Jan Schaumann via freebsd-net wrote: > > > > - Why does _any_ of those fail? > > > - Why does a.c succeed when compiled with clang, but > > > b.c does not? > > Most likely because you did not fully initialized *sin. > > > Really it is UB, try to memset(sin, 0, sizeof(*sin)). > > Nice, that works. Specifically, it looks like it's the sin6_scope_id that matters here: In the case where we have additional stack variables, 'sin->sin6_scope_id' ends up being set to '0', while in the other case it retains a random value. The random value then means that we're trying to bind not "::1", but "::1%", which is why this fails. Fun. -Jan From nobody Wed Nov 24 18:39:50 2021 X-Original-To: net@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 87507189E7BC for ; Wed, 24 Nov 2021 18:39:52 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzqYf741Nz3qxw for ; Wed, 24 Nov 2021 18:39:50 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9AC2D6F8D for ; Wed, 24 Nov 2021 18:39:50 +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 1AOIdolf046630 for ; Wed, 24 Nov 2021 18:39:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AOIdox8046629 for net@FreeBSD.org; Wed, 24 Nov 2021 18:39:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 259645] crash in_cksumdata (sys/amd64/amd64/in_cksum.c:113) via in4_cksum (sys/netpfil/pf/in4_cksum.c:117) after FreeBSD 13.0 p5 update Date: Wed, 24 Nov 2021 18:39:50 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? mfc-stable13? mfc-stable12? 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637779191; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MeNjkPzzZPJekGLEfXq+0D4iErkDn7fv9A+T9TrpuS4=; b=FZNulfeyrV+iLHhMmk6LMSftUNo1W7Q1WpGzWUfr7jhLw3uT2YCMGRkoQcBHbTyJo+9nt/ WC8EFve1c5QFMesugtMFPj7x0FBP75PstR5f90daO3GdD1mBLeLKUtOSTOZgUJquWAZAdL xrDLMezC0jvCFz2BFjMSNgtLVXtEsjG0xthUQ0gVaQE+6SE6jLXVdUqG0MjJHH2GcjnSvT /iuVnd+Vu2XMehSGX7FoWr62yshg2Wg4QxH9wco2nZcSXQIYal3pazR5Il1x/dsud+TEYM imKqBV5QJPRBcGUOPLkTRIjaHCKZHCKtSgkS1vXo4i9kB8rE7ccjQePSR6fkfA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637779191; a=rsa-sha256; cv=none; b=S+bNnGGmaxR0hf/4NxYbfaKbHLR4uudGA6CA76xqX0tC5xzIW0lCpwbFPa9ThIxCCK9zbe ovY+4S8+wU047oY429aFIh3NBJUNMrgwAt+oCKhWabmC4ALn2jGinsELrqceqFCONCifez yMy0xMbJtyyrctzT/0B82SllkzXXFiMPI8w5uhTmphFKVbeAz29bX/nz2ypbM563pHhuxJ 52jxn9upTtnOGj7tB6tOpOYNsQovx8CPwo9NqwH5UzLkd2RNbnNWzXQQ/WCa/33ddFYokU SEQUps0x1MK1UfjjBf/Sb6MLdJ/RGl4orJ92ljyBxwj1VNQd3pzJMWq6pJZjmw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259645 --- Comment #17 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D0d9c3423f59bb305301f5a5bc7c8f5daf= 7b7aa52 commit 0d9c3423f59bb305301f5a5bc7c8f5daf7b7aa52 Author: Mark Johnston AuthorDate: 2021-11-24 18:19:54 +0000 Commit: Mark Johnston CommitDate: 2021-11-24 18:31:16 +0000 netinet: Implement in_cksum_skip() using m_apply() This allows it to work with unmapped mbufs. In particular, in_cksum_skip() calls no longer need to be preceded by calls to mb_unmapped_to_ext() to avoid a page fault. PR: 259645 Reviewed by: gallatin, glebius, jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33096 sys/netinet/in_cksum.c | 63 +++++++++++++++++++++++++---------------------= ---- 1 file changed, 32 insertions(+), 31 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From nobody Wed Nov 24 18:40:52 2021 X-Original-To: net@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 48C2818A0210 for ; Wed, 24 Nov 2021 18:40: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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzqZr14fFz3rmS for ; Wed, 24 Nov 2021 18:40:52 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CAF786FAF for ; Wed, 24 Nov 2021 18:40:51 +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 1AOIepoR047551 for ; Wed, 24 Nov 2021 18:40:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AOIepa2047549 for net@FreeBSD.org; Wed, 24 Nov 2021 18:40:51 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 259645] crash in_cksumdata (sys/amd64/amd64/in_cksum.c:113) via in4_cksum (sys/netpfil/pf/in4_cksum.c:117) after FreeBSD 13.0 p5 update Date: Wed, 24 Nov 2021 18:40:52 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: bug_status assigned_to 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637779252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xplmuuaFmzFUKOgjWNfo9S6YLyhoj0+6eVRkFDp4HLs=; b=FC1Sly6SeRNuGKYFn/OeeSBz0Wo0tTwHyTNk6m4hF9UTZN7Z+1ufy/uPPEwokLOf/4ro9W ruuykLDWj5Xis1OXIVNg65MusDe1Ucqam58V0DhrlbeBm5Zk4LNCfRt3zpn+phO1PAOgk9 1VGBqfxKgxDYjkKQqL6Hqx3Qvt+RzRA7USLiasUMNkpOAjZWbJDLU+BrTOzA0aXUyKJTn2 iGya3jzGpzaGn0F6f7nz8lNPyBullOi1AViHalFzwzbE0WB3lFcPcfZqBg8uDjwbD+ZxDo Nsf3Rlkts//bFptD0/d4U1CHsK5U3OeNvrgAvJG6/4csGrEWvCuw4HHQUUmukA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637779252; a=rsa-sha256; cv=none; b=frcQmxXKSx2AZLgKLEhh7Y34ADUndjOu66kHncAbFXjfcsRGI4S14ELi91QHKskk++qM1k l2j38PHbK7xzaWt6+8SNnK7kKYmUQW008c6jw1BTagNDjaOaNbz7kVDiOFjy9333n3ha/Z 5WwBMOchx4+OtI1Uu223HhDdMZblyeo6Zco2KqwKih7Az8g6NWFYmZzB+BJPmMrXJpBNUj Sxm8SK/DP9iR8/X1SIhVBVh0FRT9Dra1PKLuD5FtVihV/aBBpX+lGXY3c7OuI9nKAXccLi blVzJtnLcZGcdOuajWYaoSD96fdRZMv/kPRlf0aEz8jx0XH6gjYbBhK+O7yXAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259645 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress Assignee|net@FreeBSD.org |markj@FreeBSD.org --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From nobody Wed Nov 24 19:53:13 2021 X-Original-To: freebsd-net@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 55F6D189D267 for ; Wed, 24 Nov 2021 19:53:17 +0000 (UTC) (envelope-from driesm@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzsBN3c5dz4p0l; Wed, 24 Nov 2021 19:53:16 +0000 (UTC) (envelope-from driesm@freebsd.org) Received: from [IPV6:2a02:1811:251a:d231:faac:65ff:fee1:267a] (ptr-8slu6gm7rqtjhb5xx16.18120a2.ip6.access.telenet.be [IPv6:2a02:1811:251a:d231:faac:65ff:fee1:267a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: driesm) by smtp.freebsd.org (Postfix) with ESMTPSA id 142EAFC4; Wed, 24 Nov 2021 19:53:15 +0000 (UTC) (envelope-from driesm@freebsd.org) Message-ID: <025d7286-5704-d125-fcb0-3bbfca7088fa@freebsd.org> Date: Wed, 24 Nov 2021 20:53:13 +0100 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Content-Language: en-US To: freebsd-net@freebsd.org Cc: tobias@strongswan.org From: Dries Michiels Subject: Strongswan: Virtual IPs on FreeBSD cannot set IPv6 addresses Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637783596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=okGGKbCuljAy+H1dONU4HstUQ4JJU0AXV0JJ7SYqNg0=; b=M/4Vpc+nk4dbZIGgHsX8qibN8yMvUpQnH4JS5CfIC+Vn6h9a9xtq+4J5Be/SJbJyfHyoeH gG6aS/Y+FZL6m9XHsIJlulNuQbb6/dEt3bXcZXPAGYyekfPsekr42cbZ5tUAlrovNvSlaF C260iY9jv3JhKZ3p8wPvtAzzbp2u34fUVPJH0zsyDlKGSEGqDb5MmCRDL17LuyM9K7Uubh 9HG8GzgJblKtCaq344EesYuqqjDN3IiwhjjGm+nylqI2ixVflSAIN5F1jlN011QRaYE2wk HNFZXag64iKJ3NuulwrCkSQPWGdlonCMtb3E+Q39DJzp41jtLmymG5sjw+QJjQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637783596; a=rsa-sha256; cv=none; b=Ezr9VZ8yVKEqkPA4m+ND328TJCR3JNZMkSMUN+mbAyG5Pxsvafx/RHUhI3fIq6nu8xbfqT iAia75tUPgKD4B0B9Sb1U4wj9/Fp6+QicfpjXH5YMEgx9ApLFMl6X8QLbHSKCqhddd4uqy heXKduL8B7Jbv4kPUom/en9nsdMy52KivI7X1GrCKtqENcemwAisCdbmh0xdNtbtf34q1s 4mwXq8hNyI3WuTcTcqGAYo1lCONthyLR1JR8SwnvsTOKHzWy2yQptWaPLMKv82ji5+qsye N0ZSt/BWxDFl+0MJN+7Cv/iEtMvnHp5yr4pa7TKI1uCelz7Vmw+xBtIsnSsZiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Hi net mailing list, Recently I have been trying patches form Tobias (CC-ed) to get virtual IPv6 working on FreeBSD (as roadwarrior client). Although at this point I couldn't help Tobias any further as the questions he has to getting this fixed are technical to our network stack. So I'd like to ask that someone familiar with IPsec / Strongswan could take a look at the following bug: https://wiki.strongswan.org/issues/3285 And more specific to Tobias his questions in the last reply as I am unable to answer those or test :). Dries From nobody Sun Nov 28 18:30:46 2021 X-Original-To: freebsd-net@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 675B118A8106 for ; Sun, 28 Nov 2021 18:30:57 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2H9Y0nxTz4vbT; Sun, 28 Nov 2021 18:30:57 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: vmaffione) by smtp.freebsd.org (Postfix) with ESMTPSA id EAD1120732; Sun, 28 Nov 2021 18:30:56 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: by mail-ua1-f44.google.com with SMTP id a14so29435914uak.0; Sun, 28 Nov 2021 10:30:56 -0800 (PST) X-Gm-Message-State: AOAM533V8qqXjj9rFS9dTzB29D4uFdNJnWGrIIJFT7vQXd51fYZirtRz 4ZZDfqBH/acPvuEK7q4n43LSjo465oHyLNRznUo= X-Google-Smtp-Source: ABdhPJw2lDsWLmqBZ0Gq0AUSWLLBZG3WOshJPSYJIWl2+t2nNU0BRjbv4OqUYLhBWhwcFwBtafoM3HkrQuOPYEvoCp0= X-Received: by 2002:a05:6102:358b:: with SMTP id h11mr27989042vsu.24.1638124256494; Sun, 28 Nov 2021 10:30:56 -0800 (PST) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Vincenzo Maffione Date: Sun, 28 Nov 2021 19:30:46 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: e1000 & igb if_vlan netmap header stripping issue after e1000-igb driver updates. To: =?UTF-8?B?w5Z6a2FuIEtJUklL?= Cc: FreeBSD Net , kbowling@freebsd.org Content-Type: multipart/alternative; boundary="000000000000680ae405d1dd8612" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638124257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ueWg8mhsH/F5pmKzNgfKPC175EYbcbMSaf+gkDFfCew=; b=ZnCk5nENP7h1Pu3EB9mkp4bm4V1PotTW0jx93neIi8vPc613mAnzq/iy5yrgv1t2LWo0Ip KWOY9LDC4dTLjPYLKoV/z8gxU9M8n/qawpvqMlhB918WFtQmLoNWruqphEGmm/g32ohYqV 2IGOYl5S5TVOb13+NI5qS9eOMiUfbb3g6uEpd+5+g3MEeet/wlOJ2Bf9WYEwKMoEhflFsM 5nGjbO7O147UC5PlEYW9lv/8JJIH0mgBqV7oSmhmpjqa77R4mSHcTAGSdm+U0PKV1Dt2iB O9qNYKJdaWk5YTHphqwwp4Vv5DgeKU0jhfkQolqOkAAiyYweQF3MmWJ10sddOA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638124257; a=rsa-sha256; cv=none; b=FKtb30sMoiuYKcRJgiavWwE/EaUL66uXT0KUQojBHPIxukPx2eKtpQW/AoOoPvKWO3fW14 VcfP+8w6H3cWMhwH4ikCnE+05tw0RFhor/B1QlrQ06fxsnXwxgVHaIYrxdq04xG94cjTB1 phZteID2KWHq88TxzFPw1WJKI1MVya5FFN7OnFDQBmCYVrdt6br4QR2pBBnkiVOG1qSTJA uC5AdFmGVR10Np83lC5GdU5U2JOTCqepdrmuQARNVNPfsrrJXaCc/vlhFRfKtte4vRsfFl ygeSh2m9Zc1CX4W7s1urw+iJ4XDRJA0UB0i7kzl/gwYwsFUFH4/h9DqsjpCyvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: Y --000000000000680ae405d1dd8612 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260068 On Sat, Nov 20, 2021, 3:19 PM =C3=96zkan KIRIK wrot= e: > Hello, > > I'm using stable/12 (aba2dc46dfa5, Oct 24 2021). I'm hitting some > problems with if_vlan + parent interface netmap. It was working with > before driver update. Maybe something missing for netmap > implementation. > > The way to reproduce: > [HostA] <----> [HostB] > > HostA > - ifconfig em1.110 create 10.10.10.2/24 up > - ping 10.10.10.1 > - tcpdump -eni em1 > 17:05:11.393411 00:50:56:26:69:ea > 00:0c:29:84:5d:88, ethertype > 802.1Q (0x8100), length 102: vlan 110, p 0, ethertype IPv4, 10.10.10.1 > > 10.10.10.2: ICMP echo reply, id 32844, seq 53, length 64 > > HostB > - ifconfig em1.110 create 10.10.10.1/24 up > - ifconfig em1 promisc -tso -lro -rxcsum -txcsum -tso6 -rxcsum -txcsum > -tso6 -rxcsum6 -txcsum6 -vlanhwtag -vlanhwcsum -vlanhwtso > - ./bridge -i em1 -i em1^ & > # tcpdump -eni em1 > 17:05:11.391215 00:0c:29:84:5d:88 > 00:50:56:26:69:ea, ethertype IPv4 > (0x0800), length 98: 10.10.10.2 > 10.10.10.1: ICMP echo request, id > 32844, seq 53, length 64 > > Pinging from HostA to HostB through if_vlan. When netmap bridge is > closed, everything is okey, we can see the original packet on tcpdump. > But when netmap bridge is started, packet's vlan header was lost as > you can see above. The netmap bridge app is the original > tools/tools/netmap/bridge.c application. > HostA and HostB connected back to back directly with a patch cable. > There is no switch between them. > > I tried this test on real hardware em, igb and vmware e1000 (em) nics. > Problem is easy to reproduce. > But there is no such problem on ix and ixl cards. > > Is it possible to check and fix? > Best Regards, > =C3=96zkan KIRIK > --000000000000680ae405d1dd8612-- From nobody Sun Nov 28 21:00:18 2021 X-Original-To: net@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 E635618A8A0F for ; Sun, 28 Nov 2021 21:00:22 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2LTw6xQPz4nYm for ; Sun, 28 Nov 2021 21:00:20 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0B4FC160A9 for ; Sun, 28 Nov 2021 21:00:19 +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 1ASL0IVv054690 for ; Sun, 28 Nov 2021 21:00:18 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ASL0ILF054689 for net@FreeBSD.org; Sun, 28 Nov 2021 21:00:18 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202111282100.1ASL0ILF054689@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: net@FreeBSD.org Subject: Problem reports for net@FreeBSD.org that need special attention Date: Sun, 28 Nov 2021 21:00:18 +0000 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="16381332189.879D49.53622" Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638133221; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nsWU5Aw1JVjyYUtv8Gg2sdUoDJwcuQnBd+jf306iDRg=; b=Tw/eceyDKqrKKSbJNABVgUcdxPpIBfpC5M46sj1CF0WCg9JT98iOT2J3yq4p9n+EBkfcfz b59J79+Umx22qA2bFWINwx9ElZpbpkaPeVzcT66o5Crbuj+gyfbxx0uMFUn0xnUSzm1scu ic5EV6SXfJVKqj+xT0IEl8rruF3yVqgNIqDQ22/CGA4MmIH59uPFMRm8vYCgryy8FssVsZ mM4mavFBmPvDN4FBs6QaRpEjbSOJeMgSf6XItLgNLUX+pQlC/yvUsgWomJMOLLcJ3xsxIi mtS4FaPaEAZBBawk1+uZSHnmuVpZQbJnWu++y/m3ssV56Nn4fCo+ROiSZl2Nkw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638133221; a=rsa-sha256; cv=none; b=ADNcsEeyGsYv5A3IPomMkWILvQb5t+Zl1zRNikGvzIAwKNak94q1r+0pvkEUnvT3bYFzQ8 YZXCHL+tA/JkvzOSpvTCkfBoPrfYmrHii3hNE3QcW5ZoNmswCTIvD9pyWbk0EFqKUj6w4Y aCtgGEd8Pv/msbBCJ4QDgz3nZmbQ5uZKQL3Gze4LnElao4P/VW69tiRl51/mo4D4gceGf7 pSnhHsSMjESt48woUwz+gGeG4jU4Fp2R123fJx3FAdftzySRQcTjF/eMI2S4dQB5sZv5R+ UkotoLFDRHa78pSrz4hRxeDWowqGEZzxeDbCJLjUU5ASHS/5nv8GvtbThioRUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: Y --16381332189.879D49.53622 Date: Sun, 28 Nov 2021 21:00:18 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- In Progress | 221146 | [ixgbe] Problem with second laggport New | 204438 | setsockopt() handling of kern.ipc.maxsockbuf limi New | 213410 | [carp] service netif restart causes hang only whe Open | 7556 | ppp: sl_compress_init() will fail if called anyth Open | 166724 | if_re(4): watchdog timeout Open | 193452 | Dell PowerEdge 210 II -- Kernel panic bce (broadc Open | 202510 | [CARP] advertisements sourced from CARP IP cause Open | 207261 | netmap: Doesn't do TX sync with kqueue Open | 222273 | igb(4): Kernel panic (fatal trap 12) due to netwo Open | 225438 | panic in6_unlink_ifa() due to race Open | 227720 | Kernel panic in ppp server Open | 230807 | if_alc(4): Driver not working for Killer Networki Open | 236888 | ppp daemon: Allow MTU to be overridden for PPPoE Open | 236983 | bnxt(4) VLAN not operational unless explicit "ifc Open | 237072 | netgraph(4): performance issue [on HardenedBSD]? Open | 237840 | Removed dummynet dependency on ipfw Open | 238324 | Add XG-C100C/AQtion AQC107 10GbE NIC driver Open | 238707 | Lock order reversal: rtentry vs "nd6 list" Open | 240944 | em(4): Crash with Intel 82571EB NIC with AMD Pile Open | 241106 | tun/ppp: panic: vm_fault: fault on nofault entry Open | 241162 | Panic in closefp() triggered by nginx (uwsgi with Open | 241191 | route flush panic with RADIX_MPATH Open | 243463 | ix0: Watchdog timeout Open | 247111 | pxeboot very slow with i219LM Open | 257709 | netinet6: Set net.inet6.icmp6.nodeinfo default to Open | 118111 | rc: network.subr Add MAC address based interface 26 problems total for which you should take action. --16381332189.879D49.53622-- From nobody Sun Nov 28 22:53:22 2021 X-Original-To: net@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 8ABB818C07EE for ; Sun, 28 Nov 2021 22:53:22 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2P0L18Crz4TLr for ; Sun, 28 Nov 2021 22:53:22 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 07FEC17B40 for ; Sun, 28 Nov 2021 22:53:22 +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 1ASMrLJM019174 for ; Sun, 28 Nov 2021 22:53:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ASMrLx1019173 for net@FreeBSD.org; Sun, 28 Nov 2021 22:53:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: maintainer-feedback requested: [Bug 260095] page fault when restarting vnet jails: at htable_prefix_free+0xf4 Date: Sun, 28 Nov 2021 22:53:22 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638140002; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=slHkVUIAKAzBoDU2WAVBtX4ZL6dCOuSqVsFk3jTOkgY=; b=DlCDNqcz8U8XrJmn9qlfYJxoZkBkD/OdOzbzhuIdpFFfuPq6Y+OBCyT21jjeUEIFqapgNM aiOHy1fsSHbwcHoy1FUx91E9YSrrn3v5SVb3yEP0g4RqNceNGCVOUVRz7wnvYqHI2wEJiy ooorhJYhR1HSL/lx2MgNLQwWlfUsCxNFpe6ekaFK3okHUOMFaAv2p4Pp0HwBdXKshyEly7 sXX+EamjZZ+EuFyUJQ3d4OSqR3CTl8/qBDTrDw/STvymVP/IPt/jCkCCCWDyYbb92n11sM C6pekJr8dEQ/ScUcLR5A6D5F6Y0+TKqfgvIaZQKD8yZuURo5vGgGxq6spMkGVA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638140002; a=rsa-sha256; cv=none; b=UiQMhogPf0HoheCTyOOhuugmbpPj/lyBXx2A3wuFNSsAvR4yRLn2TO13rNFelV7KAN1MuC /T+17PjYOODafb2aGNmSZZSMf1qU9vbXpGdP/jf3mfNGvPGX+crNgSVrFByJg1rzPdMJVU AxQls6jf9QybJIWljtG0dJvrrlUwCDMX3hGsoqg3Px/L5MAKgaJGW9nESp+P8qPe9tamP6 u8OByXBQ1vruVOzQRmBx5bbct8RzzPr8eJBhfSoua8lWog2eV2GloH6+FPRsZ5uuTIY8/g YecbgRjn1A/FUlDQDOy4ImqT2IKOKGN7WI5yNGxTR6dRGWLVnMEiRVFdXFKBUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Kubilay Kocak has asked freebsd-net (Nobody) for maintainer-feedback: Bug 260095: page fault when restarting vnet jails: at htable_prefix_free+0x= f4 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260095 From nobody Sun Nov 28 22:53:22 2021 X-Original-To: net@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 8ABE418C09A5 for ; Sun, 28 Nov 2021 22:53:22 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2P0L23jKz4TLs for ; Sun, 28 Nov 2021 22:53:22 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 27A8917B41 for ; Sun, 28 Nov 2021 22:53:22 +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 1ASMrMsN019178 for ; Sun, 28 Nov 2021 22:53:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ASMrMSJ019177 for net@FreeBSD.org; Sun, 28 Nov 2021 22:53:22 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 260095] page fault when restarting vnet jails: at htable_prefix_free+0xf4 Date: Sun, 28 Nov 2021 22:53:22 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc assigned_to keywords bug_status short_desc flagtypes.name 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638140002; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q0/DxGuoW4HA1vw5FYE8sCZftqz1FgeKlL6+dLe9pdg=; b=vaOUHVwroptkPr3hwSrpP8lsRxPzRa/4z8kTnLa/uJKVfCXuPCZWJpS45gpAml+/CQeisa g13oV9wH5AFaX1ItEiHp5R35pltrAfk36ClvuV16pLBBQ6vzkddZ4uN2t53E0AigCIX/+p AjONjNmi97LF8UyIUEbN96o+a/BgPFVfPhVxhHjSWYebRd9AvxHkqijpwTrg7VRLabcNOk Ni4ODDJEacG7WpWUfsRQXNMpXM4SQCYlpcLXhLEZYYcbnJG5eKwrQ0nvpmzjDoVZ1XelEt U6f8cWHNjth+DZkTd8aE/WfqkWlOjKJsdrTw9m3WcnlfwRktVC7vUgoUe4tbuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638140002; a=rsa-sha256; cv=none; b=OYb0L7LB/5fFP+prb0RCnNE7+RikhT7dt6gULdi+BAvdy7dB656SZ2nBy3ClKoi1nnzOVx Q/IOuomXOXA9Wxwc8fEN4TAM81PF0Qx/0r4Dg+tUov5wpLUroiK5NoR1dVvRK1XYvuILb2 cJXFbXR+ymrxoIEm44SguKDn5X6wlsZNNkF+tpOOm3463fl/9wkSP7j9zXc4jNg+RDAWmu yKoANbqk7qXkvUVptIaoD3z/WD5t3UCz+ux/E8k0w6rlsGtwrXFSRbfkBXduc0A03zEj6O uWgyrhe3ntZjx31HtmHO/xZUT4tTV0Zlf8+Nt7qJV9bx1xjM0xUz6vK3tvuL8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260095 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |net@FreeBSD.org Assignee|bugs@FreeBSD.org |net@FreeBSD.org Keywords| |crash, needs-qa Status|New |Open Summary|page fault when restarting |page fault when restarting |vnet jails |vnet jails: at | |htable_prefix_free+0xf4 Flags| |maintainer-feedback?(net@Fr | |eeBSD.org) --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From nobody Tue Nov 30 14:02:28 2021 X-Original-To: net@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 417C118B8C94 for ; Tue, 30 Nov 2021 14:02:32 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J3P6v6xS3z4XKh; Tue, 30 Nov 2021 14:02:31 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from [192.168.0.88] (unknown [195.64.148.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 51E9B5F8F; Tue, 30 Nov 2021 14:02:31 +0000 (UTC) (envelope-from avg@FreeBSD.org) Message-ID: Date: Tue, 30 Nov 2021 16:02:28 +0200 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.3.0 Subject: Re: vmxnet3: possible bug in vmxnet3_isc_rxd_pkt_get Content-Language: en-US From: Andriy Gapon To: "net@FreeBSD.org" Cc: Mark Johnston , Patrick Kelsey References: <0dbe63d0-3219-846d-4c58-0bf219f41634@FreeBSD.org> <65d72f7d-5096-07ec-4e21-c6356be7e06f@FreeBSD.org> In-Reply-To: <65d72f7d-5096-07ec-4e21-c6356be7e06f@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638280952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bhUdBO1NSbt3P2oUcmUz8yJd+sARByQWALlr+/ZVXqI=; b=g+gkoL/Nr+UwoRd6nHd9Qcq5h3o2ZRoiMnbEAS1wLIPANvh9c6lYja3SXCawu7JHLGUJsS vyqFtlNFKPHqxvGh+MxA9WkjwyVFtXubcANjd6kmlWcvh6p32Wn4Swc2h5/hsTDJPRTQke Kf0y0IBNbPM0dZim9dic58jqo3zkSe7ApzdBCd98wg6nfdikMWt5go3l1EXtEGHdrpzd6c RVe46J/DMnWmc0aqkzhsmxvGaM+cfayW4lGcxb6HJXC7pq4QjH2eIy72L8oPCI2Zy8nndF dzSC7X9cMC8CyeoZAyuMuYoSQVOEQN/gCiEwuSsgJzDbyMqr74VWcqdgaDKYSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638280952; a=rsa-sha256; cv=none; b=yJYf0aV38hZQXsSE5+YeFZBHD/w8bf90Q3K5/d4Vh2rrdkgjZMKahHZCqU74SA+NLppqfm NA/LZYIdZIzM9YE0uUBuQnBKBacoKMT6zb8lWRilJcNTr0g6fWvBrJramCV3bWM8+GXofW fY4pwYsnYpY2d8TI/xFpZDutG121egZXZB5gq8hxI4GMuBN0SZ5rR5ZX18zYv9lOhIXDBz hhC7oR0Dg7NIDPcRVUZaXHmtd8tvZgTdsC9aAYvtj0MZ7kUy0EEP3xjwDQywei//mTeD2C DrJJ++4Y4hC0yacYY0tWXii3x2j+3vkiVnHbJ6DITa1arebbnn0SGKRI9qXyMw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 19/11/2021 20:46, Andriy Gapon wrote: > I think that this was the case and that I was able to find the corresponding > descriptors in the completion ring. > > Please see https://people.freebsd.org/~avg/vmxnet3-fragment-overrun.txt > > $54 is the SOP, it has qid of 6. > It is followed by many fragments with qid 14 (there are 8 queues / queue sets) > and zero length. > But not all of them are zero length, some have length of 4096, e.g. $77, $86, etc. > $124 is the last fragment, its has eop = 1 and error = 1. > So, there are 71 fragments in total. > > So, it is clear that VMWare produced 71 segments for a single packet before > giving up on it. > > I wonder why it did that. > Perhaps it's a bug, perhaps it does not count zero-length segments against the > limit, maybe something else. > > In any case, it happens. This is what I am currently testing at work: https://reviews.freebsd.org/D33189 So far so good. > Finally, the packet looks interesting: udp = 0, tcp = 0, ipcsum_ok = 0, ipv6 = > 0, ipv4 = 0.  I wonder what kind of a packet it could be -- being rather large > and not an IP packet. -- Andriy Gapon From nobody Wed Dec 1 00:24:30 2021 X-Original-To: net@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 5E39618BD2A2 for ; Wed, 1 Dec 2021 00:24:36 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J3fwg6mQ1z3QqM for ; Wed, 1 Dec 2021 00:24:35 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C23251FE9D for ; Wed, 1 Dec 2021 00:24:35 +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 1B10OZZU077782 for ; Wed, 1 Dec 2021 00:24:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B10OZSg077781 for net@FreeBSD.org; Wed, 1 Dec 2021 00:24:35 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 200319] Bridge+CARP crashes/freezes Date: Wed, 01 Dec 2021 00:24:30 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: kp@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc assigned_to flagtypes.name 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638318276; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YiIDC9929i+JYuI4y8Waiusep42fFQR9ZsXGXRoJXIA=; b=LY2RIyIubwFCQjHkmRVRRUqOwrwGBK+/7BJIw5VbH47z7P2DDfUmw9+zMj8nv93tFH+TsM J+QRjfdiHhPw5qWThNQCZB87XTMO46obi+XDuMs1ZIHHoPW7g5k3t4GGU/S2R1T/+bNGDx khiFCkCwl0ILUr6hY2hUxe3CdEXC0RIjaKE7g5eXsPpWCWdZZyEsn9LS4E0BfwnrqpTBh6 M9YHdmD4hw/SooCWixvXvHCYuJt58D4oHJdc/0Y1Zyuwo9GrHmfqxvs9HZIgDmtem31vGt FHR1fBxPVOraYuy4hq4xg2MzCm+rBebpnDQz832NgY4tvpcU3gt0d4gkr7ZrZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638318276; a=rsa-sha256; cv=none; b=lQYW90/xtqK1BFcH2DptTYqpQxEZ3vOhzS7fGfiDiHu9SMJ0+xUVUot+yoXvSSidzTf/YB FwgITIks+aWJhNo6IubC9OgFVmkjgCRbbZbK42XehcnqdbC8Z3Amrti89YHtkP0oA5aZzk ck9NUT4wG2mH5xFg0wc7FTn8rAIRF68UE/Ppm8s5fvGi7/17mWrg+KzdqmaWJyRPAMJDIc FyMNMukpmeH3FjIFQyiysj4M2bIWh7VMspvb9tSp+GbIcJR61yznV9iy8oBTZG+QmL2Fd8 LNIU5C2RGu5LZmm/gjV2GabTLS+VGpDvBM7gKzplgbtlthXXLsqYFjDO2cSTtQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200319 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-qa | CC| |net@FreeBSD.org Assignee|net@FreeBSD.org |kp@freebsd.org Flags|mfc-stable12?, | |mfc-stable11? | --- Comment #28 from Kubilay Kocak --- ^Triage: Assign to committer that resolved --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From nobody Wed Dec 1 00:35:15 2021 X-Original-To: net@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 3927518C29D9 for ; Wed, 1 Dec 2021 00:35:16 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J3g8z5kPSz3lp5 for ; Wed, 1 Dec 2021 00:35:15 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A0AFE200BC for ; Wed, 1 Dec 2021 00:35:15 +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 1B10ZFNq082497 for ; Wed, 1 Dec 2021 00:35:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B10ZFY8082496 for net@FreeBSD.org; Wed, 1 Dec 2021 00:35:15 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 259458] iflib_rxeof NULL pointer crash with vmxnet3 driver Date: Wed, 01 Dec 2021 00:35:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: avg@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: flagtypes.name keywords cc 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638318915; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VtUiT7jj3kU99XdTKmdTCml1turAZC5OOiBE+gN8EUE=; b=bB3AXsUYeRkNg53Myfm/tfQHdtyOrdYHiPrHoi/Y7xXLcBkDlGLiWcJk96LQhGLT4Yf/qf sZcgOR2p7dfk3gvg8VpmH/HR74Awl9C/dlU9/TawxsAT0TvyvbYbdk+dDrpMCAhMfWAH4e uFgtHG2MLs03172rGUDC1ing7SPopcwqGFND08EFZvjnI7pyzC/VCxOTfxwNzWHgSup+L+ RJmzmcVuiANKQATl/stQlDcvx76OSy9XwfCYhpeYyjE0Kizp+hfSFKUmDDgGE+Xyw0gP2o 3CoXLkdcTWZ9pHxRQP/O4OQtad92iow2QnI9vzyedSW1OdYfXxT0S2rfSwfcUA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638318915; a=rsa-sha256; cv=none; b=yF6Lf48a2DB/HuHkhX14PWnIojr+lLWu6qazx4X5Izi81n3MwvIawQyn85hvitkum7wZfL 3IDsD18AEdsHzk3ygZ0m7O0AEFEm6lmf7Xm8QxtGu2PMgFVnHbijpA/9MeOkzXNjzh0BgG gaGEXLbOkyNX/c09Tz6AEKdDiUCIrtyzo+1fHV0Ox7DQLtJpFoDJfCr27GFV4Ll/osxxYp kZlPUtee79etJS20rmqbYFoAt1/3XKLd0Edvi0+y8Y6hTx9V3Vry2yNUu+NVqlkF7rRHnj CmzRxbQLh5J3zrOPQuQ7XXSzfxKOOf/Hcm1MR31l2/w2O3WTDthw1e2VlDoeLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259458 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |mfc-stable13?, | |mfc-stable12? Keywords| |crash CC| |net@FreeBSD.org --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Wed Dec 1 10:34:57 2021 X-Original-To: net@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 DD7C018C62E2 for ; Wed, 1 Dec 2021 10:35: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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J3wT256sSz4cjG for ; Wed, 1 Dec 2021 10:35: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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8F488212 for ; Wed, 1 Dec 2021 10:35:02 +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 1B1AZ23E013477 for ; Wed, 1 Dec 2021 10:35:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B1AZ28n013476 for net@FreeBSD.org; Wed, 1 Dec 2021 10:35:02 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 200319] Bridge+CARP crashes/freezes Date: Wed, 01 Dec 2021 10:34:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: girgen@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: kp@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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638354902; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W0N/Qnnx5MtByskQuw5rL8hS+zPKzg4pSbXkrD3mlgs=; b=fvk1Lyn7/NVY/Uc07w4J1nd5eoMYu3m03GiimFhp3R2N8/mhnvkCTqlj9IY2ndS/p6aqry fiJe9mD6rBpcI4iW02wfmNgQFgkQblW0YSIVp8p2UdNFE7hShcxTIdEDR2hl6nNr3fazDV iAIT5kJnWhdvoLiv94kx2JRgEaI9K7oR6ekte7cFaJf6ehTJjfQFO0caSFLY7DBEmNtUff 7PIcDeuw7XI+/ItbcBRzOZbr1/3pPX6yuwVaqfgllRr7/YHboUEz8d7GJl0jk87cMGJUm3 MDPXRLOqFbBaTw1SjjWpyYE+euMBDgmqDrjJkZyN2UoVR+yEh10DFcl8hRPpZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638354902; a=rsa-sha256; cv=none; b=BTZOcoQoipx0FMSvXn/8Lt9M3rt6OFeZ7Elk0sfSDYeV1MaBPHE+yozoJXyYJ4duvS1zz6 GCnu49aniumWL4wlnJR6bec9XpQkXyIc59CYjRU9U4wW605EvVFiQasu7u/htEkFLCn5gB +hUpkGD+2v/Bp9fPUxYrRYZITpj+NQOrYXk7DlqkdJ7zc54SsgxZKZcZINYsEvBpk+Bdfq 2lGxM57oRWdALRO0DuPm2JAVgbqbwylOLQ2brQMS0shX27ieie+wz5zGZ9M0DT1zs1dh5b U+7Vbr59FeKFw4FYhStAfcFN4eD+Cv6HFZiqcNgnU637soFS+sVO7lx62b7mDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200319 --- Comment #29 from Palle Girgensohn --- (In reply to Kristof Provost from comment #27) Can you please just refer to which commit fixes this issue? The locking see= ms to be committed last October 2020? commit 4af1bd81573675599d68069b247c6abcf521917f Author: Kristof Provost Date: Tue Oct 6 19:19:56 2020 +0000 bridge: call member interface ioctl() without NET_EPOCH in which case, it does not really solve my problem, since FreeBSD-13.0 sure= ly behaves differently, but still panics. I see more commits in stable/13 and main, will they help with stability? I'll try to get more data and I should probably start a new ticket, so if I just get answer here which commit is supposed to fix *this* problem, I'll be much obliged. Thanks for all the great work! Palle --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Wed Dec 1 10:38:16 2021 X-Original-To: net@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 36E2E18C7C53 for ; Wed, 1 Dec 2021 10:38:17 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J3wXn0NHfz4fH1 for ; Wed, 1 Dec 2021 10:38:17 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E268D27D50 for ; Wed, 1 Dec 2021 10:38:16 +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 1B1AcGOZ014170 for ; Wed, 1 Dec 2021 10:38:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B1AcGZY014169 for net@FreeBSD.org; Wed, 1 Dec 2021 10:38:16 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 200319] Bridge+CARP crashes/freezes Date: Wed, 01 Dec 2021 10:38:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: kp@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: kp@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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638355097; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+TiWDeJzkqu7gs1fiA/zS1WT2j6ywHa9cuyShZqVSWs=; b=h0YyVmgx16GvE0bFS3ovSEbOc134NIS56tPvCHB6eIjoRCM4gUo3FnKWPiNcm4RGNOU0mx fVW5T5YqV2IphKgVtyTnKtyEGz0t1f7Is0PbwASgr02iRljgCSfywrLw+Ef8RcHv2PMAOC 9WZ5BlVFBxpHnKOGgitYoHHZ4J54fbYyMiSSy/ub52s2gQpgnexBtufniMzr+z3w/GTvTf hzucRc6i2kf04e+6JYGfW3asTxwqrV/w0lddxKu3SEFYyjmGN3W23Xe8kHh7hb7dYSP69+ Jm7jA+vKnKx5w/ieD/45p1iNHw+4tGGiouTqi9UvhQV+Xxs8YOlxc4wZa0URcg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638355097; a=rsa-sha256; cv=none; b=u9x68GNUkUMVWGKIoMplwDMh2cFiEELM9/uw4vGh6rmbsh/47oV28bjqgtED8wbhtrlvDD pnNQBQV6flXGX0n5YFokUWYZG4b1RWcFy2JquUl2RcCuB4W0PhS44Ze0X6rBBU2aEfE+yb CZWdmee8kfmHl5HPyygLV55AUVW75xITmTrzgMld8iK4nxkxoVtL7+wMdaIs+xCAHPWxKn Gv0rBuku94gkSARwe1qts0jC03nCNXKtkIpvmL1FV7YTT4Sx5LBUgr4LUWT8lZaXTyE/D5 m66ctywOOeziTl1CXs6/SQoKzBaO5RcKFg4gb4USQoIiAFkd6T9+nLXK/mal4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200319 --- Comment #30 from Kristof Provost --- (In reply to Palle Girgensohn from comment #29) I'd expect this issue to have gone away with fffd27e5f3b9700b6556a8c4fbd9503593a5ba33 (on main, fffd27e5f3b9700b6556a8c4fbd9503593a5ba33 on stable/13). --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Wed Dec 1 10:55:01 2021 X-Original-To: net@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 C807C18A92A8 for ; Wed, 1 Dec 2021 10:55: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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J3ww63sFJz4kWh for ; Wed, 1 Dec 2021 10:55: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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 657E44BE for ; Wed, 1 Dec 2021 10:55:02 +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 1B1At2Ig024926 for ; Wed, 1 Dec 2021 10:55:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B1At23T024925 for net@FreeBSD.org; Wed, 1 Dec 2021 10:55:02 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 200319] Bridge+CARP crashes/freezes Date: Wed, 01 Dec 2021 10:55:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: girgen@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: kp@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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638356102; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dftKPecEwIo38lmB6kU4Anbvc51a8xqh0vchzw+mdAg=; b=XIID0CydnNfLI+OI08fopHDtqQg0DbnnOAMUn7SWwVlcs2tfqmT27likIj/Ro7s2u0HWVA vmrmJcVm8n5i+/4aoe0w+R+2T2xJ/JVpqZi5l3eqwu6FX1ma1sIzKKxx2N+7dQqGbM33hg 5pBo4eu+6Wp7TsDuFsx8JgMepr6uxBKlqKAq+hhTPmnOfwWXNbSTy3C2A0ZyoA9O9WMUVd j2p8EvIqydYf6JV66nyvhZ2vJ+J+ZuMOlLGUOXAQkh2gPj4VsA/UNCqQii+cUwmjwFs4ZO 7GGSV3uwmsbIwac6VtiwSZmnzog/1uNf0EvxxDK3UYE7WKVWXa3SEEkE/Lrr7Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638356102; a=rsa-sha256; cv=none; b=NNYPY5YpNNu2VbOicSKh70OEkWU9EIahmdyan37ak40NNVvFTCxJbN21BNsOzRGlv4+UEO ht5KcLlZZuiX7/5T2Sse+GHFP9nitW5vk6+VdbrwTqGycpawfoIBd2rroSZDPFGSG2BRxG 35nO7XApSdcYeX+ZjyUUBE0tS/o0cMdg/Jh2w2sABgnQxkeTVVzzyvLj9s5Qs3E1Be29YC 6+0EPTJfam9x0VkbAvahlSwKs9mBUFRCsKDbs3uN1cTBXhxL1V4wd+w3iiog3jweTdmRyX 06CibKgOWBg9Ra2Trqnw/ttNUBVvrPyp2wv9yKctGpHxczH8kbmK86gRkGvvmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200319 --- Comment #31 from Palle Girgensohn --- (In reply to Kristof Provost from comment #30) Splendid! Then I will try stable/13 and see if that resolves my problems. Thanks! --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Wed Dec 1 12:49:25 2021 X-Original-To: net@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 0115718BB9F2 for ; Wed, 1 Dec 2021 12:49:29 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J3zS758vjz3kFk for ; Wed, 1 Dec 2021 12:49:27 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 65AEC1565 for ; Wed, 1 Dec 2021 12:49:26 +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 1B1CnQDj087005 for ; Wed, 1 Dec 2021 12:49:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B1CnQbx087004 for net@FreeBSD.org; Wed, 1 Dec 2021 12:49:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 259645] crash in_cksumdata (sys/amd64/amd64/in_cksum.c:113) via in4_cksum (sys/netpfil/pf/in4_cksum.c:117) after FreeBSD 13.0 p5 update Date: Wed, 01 Dec 2021 12:49:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? mfc-stable13? mfc-stable12? 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638362968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KX5jO4Xq/ZX2nQaiv0YHPxQr/gws2f+w3MsnRBzROHM=; b=RCz1R6g+MWZ71nuiB0glHO6sn95FtBZN94JoRLds7GnjcD5X4018JUI4O27jR//Fj6eoRb MpYKZd/ujZs7QzGjYLiw871fI1MS6WLgyaE9ufAa6c9VOUPJFBWH0KOJP1XOIvs+Lh4To4 D3BBwOq0lgbZccdhXeh61wUqXh6CoqlQsjlen1LoGtwVXGYGSxht9vBQoGUE4U7Z1fF7/+ CSKFW0q/9uU2/AILBhTFSl8ILB7Xjg9y4n0xO9gLZhzDRsEL+t2xxgLGq/F2YQxdObaLKw joQmgXo6jUyQRYHSQUaZu8KmBkGyX4THYorZcWue1EcaBoOmB5iAPXF/y5coaw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638362968; a=rsa-sha256; cv=none; b=NeWCurCQsnkaPebOtQQT2gNIqMuu4FzSSfdp7gPmvEjNOI/ENmMdkjPxi6srnES/t/eWjF ZNaYiONgRFoe8FyYfeJxc9C0J1w7QRpq+FNx7SOeKkKc+40iW6h9dnsFQ4e6tHsf4jcWdx xnuLZgepBGEcVcOw28N6fvxJKTwslCHrMBQLWA2yWLW1aOhNczcIe0k9wCZEGjPhsbAxFE N+cciUvz9vb7zoDcMDlDYmmPGw6sXxmiroa+HPsgVIwyoDKXLlwIkDVQmafYuAYXV3l6QN cOEOPRL0PBkgBgfyS5Yss9SaArEw9pX3I3gxjSHLBdTD0lY2QoGo5FSPclC3QQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259645 --- Comment #18 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Ddfd5240189ca024b268e53df2f0a3076d= f57b240 commit dfd5240189ca024b268e53df2f0a3076df57b240 Author: Mark Johnston AuthorDate: 2021-11-24 18:19:54 +0000 Commit: Mark Johnston CommitDate: 2021-12-01 12:43:03 +0000 netinet: Implement in_cksum_skip() using m_apply() This allows it to work with unmapped mbufs. In particular, in_cksum_skip() calls no longer need to be preceded by calls to mb_unmapped_to_ext() to avoid a page fault. PR: 259645 Reviewed by: gallatin, glebius, jhb Sponsored by: The FreeBSD Foundation (cherry picked from commit 0d9c3423f59bb305301f5a5bc7c8f5daf7b7aa52) sys/netinet/in_cksum.c | 63 +++++++++++++++++++++++++---------------------= ---- 1 file changed, 32 insertions(+), 31 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Wed Dec 1 13:13:20 2021 X-Original-To: net@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 58FA918C71D3 for ; Wed, 1 Dec 2021 13:13:20 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J3zzh1NMzz3tb5 for ; Wed, 1 Dec 2021 13:13:20 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0FA1F1F79 for ; Wed, 1 Dec 2021 13:13:20 +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 1B1DDKgS002151 for ; Wed, 1 Dec 2021 13:13:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B1DDKfU002150 for net@FreeBSD.org; Wed, 1 Dec 2021 13:13:20 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 259645] crash in_cksumdata (sys/amd64/amd64/in_cksum.c:113) via in4_cksum (sys/netpfil/pf/in4_cksum.c:117) after FreeBSD 13.0 p5 update Date: Wed, 01 Dec 2021 13:13:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: resolution bug_status 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638364400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JA0QpAWC4jIqiFtLenkAKeNU9TLh543mOPcN5d00q1Q=; b=absB2LSMmwH8xB/fuj4bSat4MBf0/9dGbn7unKHVK0l4u2IwBTpReL29lSa4cusAunuZl+ AfL+rhLjYQ7pclIB28cmruA2Pq2ZAq0pv5W1I7g9RPQAzkjKfiwx5PQVV34SVq3opAf5HE FE43chBE3r7iJGsS+hAb8DCR4aF8FU8P6SL0uaZnDkl7i6RyeQYK+giUaxo3ud9Crutp3+ LvSrHhpWp2vfpMjBfbXhFvGDFZUdQ+S2Qh+q+ti3p3ZRnvSJZ6v4GskKIXdcT7DmQvNzHn dsMTen5K34zGK8YnIz1A7YTve7UcMWHchzVqiejTqtRM75e1LU7UKnxc1LKLSw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638364400; a=rsa-sha256; cv=none; b=D1i98pOpqfN60HWv2fXz4aW28CDbXNSfQ2sqKrDo4a0mZGmJvNTQ/71UF8BqTMTqpumY35 TxOPWC3BbuD5C7atipb7RD4WVY8SDV26L9GhfxHZr2/9zLyVbjU7sZs9JINkLEmSIKYjh0 qOLmqFQv2SmIbcctq0AqhXhuM/MAs+M70g+z4vxwv8qi3XgqUfkz6Q2MWKh243uVj4TtrT Ixjho9u4MFoPVGhrmi0TYjEnuRT0IsdMy/Kr4fPr7TAmqtjRY7ElDvUnIHrlSkqxOx8VlA aPwqbiJADUB0cWEeJAHvHfujM3l9q998RvYegnio8BQj5vZKW1Y0jyHD70wGpQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259645 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|In Progress |Closed --- Comment #19 from Mark Johnston --- Fixed in stable/13 now. The patches will appear in 13.1, as we have a workaround (kern.ipc.mb_use_ext_pgs=3D0) in the meantime. With 13.1 that workaround will not be necessary. --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Wed Dec 1 13:15:56 2021 X-Original-To: net@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 372B118C7816 for ; Wed, 1 Dec 2021 13:15:57 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J402h2Lk6z3txd for ; Wed, 1 Dec 2021 13:15:56 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3102E2411 for ; Wed, 1 Dec 2021 13:15:56 +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 1B1DFuuG002597 for ; Wed, 1 Dec 2021 13:15:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B1DFuNl002596 for net@FreeBSD.org; Wed, 1 Dec 2021 13:15:56 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 254478] Panic when using ipfw and divert sockets Date: Wed, 01 Dec 2021 13:15:56 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: cc 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638364556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8dpftyXLf0+Tb43xCfDaEZlLSUevP6rZOQ+Epd5CHzg=; b=ia2V0JzoaW2V+8vg8UOK5PO7KcHL9gcorxvjWhdZquid3pg+EYRt2gsoMeZlEL5ywOCwne vBJVepLbRjTb1oIJrgYgkZV8aWicYLp+twIL6thn1FASQ28lcOq3KjxxojwdvhjKyWqijt inf9WMVcEtMZ9ZhulYuiuiuWtc/iR9mAeO/K2Q56G586aRIiDt6k5iCM/EJeAWNFeihB// Mme3Dxh8Xp2v5ka/OJQdhP7JCqB0+iy55aOAjXNExcWvxbB9E+sSXoD/nkfw6Vc5d7J5oA H6c/lMzhsHiNpqKCe9snFKjNkuX7XVHee7Z+sUhhpFQuXA2I2EDMoXCibGajnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638364556; a=rsa-sha256; cv=none; b=QIt/OpmXaEo4NoIeyhYVHFxi03tQIR1TFjeJfrdif0CbzgH1hDW7VMzGu1RIW/tjPH0IRf avLgKl7/bmkQCECBUEJsW6fmO0QpCpXmfVtYdaleBPtQpGpAIBPO4wZQXH5fC37GoNObPi s63/1m67W3LiSr/guvqXf6R4euHIRZdTfYpwVtmTAhOgUtTyFj9K31D90e3VmDoc5JScBe n5EEzkBuh2voFNt41J0kkXtfuzpmEzBJwz6Amj+BeHiEYFVJH301iWw4yz3AnZKL1+Hdd7 PM050eply1trBAws7ivduQDPjJVrOEoImwAlU3MJq4gHwz8Tb4+a8aA3TBLPNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254478 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #15 from Mark Johnston --- Is there anything left to do for this bug? --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From nobody Wed Dec 1 22:41:56 2021 X-Original-To: net@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 A3CDA18AF261 for ; Wed, 1 Dec 2021 22:41:56 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J4Dbm393Vz4Vdt for ; Wed, 1 Dec 2021 22:41:56 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4D949122DF for ; Wed, 1 Dec 2021 22:41:56 +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 1B1MfuuW016231 for ; Wed, 1 Dec 2021 22:41:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B1MfuvP016230 for net@FreeBSD.org; Wed, 1 Dec 2021 22:41:56 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 254478] Panic when using ipfw and divert sockets Date: Wed, 01 Dec 2021 22:41:56 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: xxjack12xx@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12? 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638398516; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZLhFG0eKEib64Zt/WU5ejMoJ9agZFMJRcDLBJffYDhg=; b=KNuffJkSAYCtXDtQrQkpvsroaMKxzQqbF45wnB/VxDQfYnja4Bg3S46kq53DFd8dVO8F5x MiDSH5OzIZDjt6FBm2XFlC6j5LseCVTq1OeJaqGfeQ26OvBwMQEYG0k+OhHwxVwEC1rhVg thRw38sK+RJ4T/cC/+m3kqCd6ebKIlEr5J43qKUkWqHmG4mspX/WHkg+96aS9n1L+BIsM4 g2PEGVzHCcxbBVDATRE23ygjvoOBicUOc4X7NJpN2IDOsxRbu8Hp7fDbnjtzFfJYaQeDdd 73aWfDPx8xK1A5FdvtojMzGYiGc++9PV/c5gwlEAUXI5wGZGKN5kJidPU6KuEA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638398516; a=rsa-sha256; cv=none; b=jmJ2ohtH8TlCjt9AO8/X4/hBqgi/IQki/6KSZSn3Sb6t7ZG79H5pGdRVOVsYaJPLmihPX+ 2wyJeVOvk++P/AdAa7AJNl9qhG9IS7JfE35zM+cRb7LjRuZN/XLbspHUTrE2kYjOOuiJ9s ZKSbfjS8R8T/CV3FvBfrNf3GSTGTz0ZU0Yv8IuTNo1WR1n+2+xmnI1sHNitsbyjVmdvkzf t/wOlfJ9m0Iwr1CbJR0MAeaATe3I0mLJdZCw8ZWOUl9V5jvczwqs3qj8/4PbM5/JLIa/i5 Kxr3jR1ejJN78wulAgp/EFu76i05k/lLRY4HAv3Er67BfC9QbEM9FaZsFOLjNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254478 --- Comment #16 from Jack --- So far so good here on latest 13-stable. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From nobody Wed Dec 1 22:55:22 2021 X-Original-To: net@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 AB2AE18B7910 for ; Wed, 1 Dec 2021 22:55:23 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J4DvH3lM8z4dGG for ; Wed, 1 Dec 2021 22:55:23 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 60C221272C for ; Wed, 1 Dec 2021 22:55:23 +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 1B1MtNJM024316 for ; Wed, 1 Dec 2021 22:55:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B1MtNDI024315 for net@FreeBSD.org; Wed, 1 Dec 2021 22:55:23 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 259645] crash in_cksumdata (sys/amd64/amd64/in_cksum.c:113) via in4_cksum (sys/netpfil/pf/in4_cksum.c:117) after FreeBSD 13.0 p5 update Date: Wed, 01 Dec 2021 22:55:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: crash, regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable13+ mfc-stable12- X-Bugzilla-Changed-Fields: flagtypes.name see_also bug_file_loc keywords 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638399323; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hvmM6aMf+G6d3G4q72oiro36VLTOEZuqFr/5NJnV2ic=; b=x21myI8TmQKTYUKeGlw4iL0rV3p3SgWugINAaaY2l4j8mCR22lqDHJTMXYBCkQZP0CI7Iz m/vahnvsUtpcE0YMcv/DYNERxn+E3DRSrXswriEkQNspIPg8iygl2BMocAqkWNdb+4A8Gm BeAbUJ28re4OovewTkEzWRB6g+gpZPRGkKqTjKUQYxgS5/BeWYRxGAw6p39SFMn74jpqbF dc32mywOjjz7a4vcUktn18ezqtu930JLaeIBc80kN3S8dJCV20dht711siF2ddigW4bEK7 PPQzlWEukXaNgOQWJQPz1ioU9zgXVPHwParszMRoj8q4TSVi3DnHgwxr5H2p1A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638399323; a=rsa-sha256; cv=none; b=qIsmkdlewK7VM3sgyBSxOghPplhAVEUKMAaBf840He8uVQo1h2xC2ww5aKk1CMhzMq4Sc6 0rYrZkWrsK5rTv6V7L9Z89rkltMklKnEAxXhwsPnQUTh6gBIMRqvfQpxaky/62rdDH24/k +KbLGJ7iIncQbxIsEib/JIzcY9zKcFt9gRAKtvvdhia7sZOFEihjfVyeJAwcg9cE5S/MSL PdGSMVEG+xkewgX8MF6Pr9bU5L1sT7+Nt/qsmNZqgwgFSlPhMeu3/UmlXCjmsr0TwVsr7v 5yQlo3cFh20tPowrtToqYqTOv6sllOddiGjzxuPm6etGhl0tPLXwQGJuJmSXrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259645 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|maintainer-feedback?(mjg@Fr |mfc-stable13+, |eeBSD.org), |mfc-stable12- |maintainer-feedback?(kp@fre | |ebsd.org), mfc-stable13?, | |mfc-stable12? | See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2= 544 | |19 URL| |https://reviews.freebsd.org | |/D33096 Keywords|needs-qa |regression --- Comment #20 from Kubilay Kocak --- (In reply to Mark Johnston from comment #19) Could you confirm stable/12 is not affected and doesn't need the merge? --=20 You are receiving this mail because: You are on the CC list for the bug.=