From nobody Mon Nov 1 09:46: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 2190B182AA36 for ; Mon, 1 Nov 2021 09:46:28 +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 4HjSpr0J4gz3sfj for ; Mon, 1 Nov 2021 09:46:28 +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 DEEA7713F for ; Mon, 1 Nov 2021 09:46:27 +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 1A19kRDo057863 for ; Mon, 1 Nov 2021 09:46:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A19kRfo057862 for net@FreeBSD.org; Mon, 1 Nov 2021 09:46:27 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: Mon, 01 Nov 2021 09:46:28 +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: New 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 #13 from Andriy Gapon --- (In reply to Andriy Gapon from comment #12) Applied the fix but still seeing variations of the crash. The data I see makes me think that somehow concurrent calls to iflib_fl_refill() for the same iflib_fl_t (free list) are happening. One hypothetical possibility is that iflib_stop/iflib_fl_setup are not sufficiently synchronized with the taskqueue threads (that call _task_fn_rx= ).=20 I am not familiar with grouptask / taskqgroup code, but I do not see any drain-like calls. So, I wonder if there could be a race between an enqueued task and the stop/setup operations. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Nov 1 09:46:44 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 2CF6F182AAD3 for ; Mon, 1 Nov 2021 09:46:45 +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 4HjSq86Z0sz3snd for ; Mon, 1 Nov 2021 09:46:44 +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 B0A197417 for ; Mon, 1 Nov 2021 09:46:44 +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 1A19kiPH057914 for ; Mon, 1 Nov 2021 09:46:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A19kil6057913 for net@FreeBSD.org; Mon, 1 Nov 2021 09:46:44 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: Mon, 01 Nov 2021 09:46:44 +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: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 ---------------------------------------------------------------------------- Status|New |Open --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Nov 1 10:13:04 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 C652418383C0 for ; Mon, 1 Nov 2021 10:13:04 +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 4HjTPX57Pfz4Wwx for ; Mon, 1 Nov 2021 10:13:04 +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 90DAF7A83 for ; Mon, 1 Nov 2021 10:13:04 +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 1A1AD4vX075995 for ; Mon, 1 Nov 2021 10:13:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A1AD4O8075994 for net@FreeBSD.org; Mon, 1 Nov 2021 10:13:04 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: Mon, 01 Nov 2021 10:13:04 +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: 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 #14 from Andriy Gapon --- Some data from the latest crash I've got. Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0x15fc12000 fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff80a5dd07 stack pointer =3D 0x28:0xfffffe00c85cb930 frame pointer =3D 0x28:0xfffffe00c85cb960 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 0 (if_io_tqg_0) trap number =3D 12 panic: page fault cpuid =3D 0 time =3D 1635553138 KDB: stack backtrace: stack1 db_trace_self_wrapper+0x2b vpanic+0x182 panic+0x43 trap_fatal+0x391 trap_pfault+0x4f trap+0x286 calltrap+0x8 stack2 bounce_bus_dmamap_sync+0x17 iflib_fl_refill+0x31b _task_fn_rx+0x84b gtaskqueue_run_locked+0xed gtaskqueue_thread_loop+0x7e fork_exit+0x6d fork_trampoline+0xe (kgdb) bt [snip] #13 0xffffffff8073dc23 in panic (fmt=3D0xffffffff81178120 "= ") at /usr/src/sys/kern/kern_shutdown.c:909 #14 0xffffffff809d8b31 in trap_fatal (frame=3D0xfffffe00c85cb870, eva=3D590= 1459456) at /usr/src/sys/amd64/amd64/trap.c:921 #15 0xffffffff809d8b8f in trap_pfault (frame=3D0xfffffe00c85cb870, usermode=3D, signo=3D, ucode=3D) at /usr/src/sys/amd64/amd64/trap.c:739 #16 0xffffffff809d8256 in trap (frame=3D0xfffffe00c85cb870) at /usr/src/sys/amd64/amd64/trap.c:405 #17 #18 0xffffffff80a5dd07 in bounce_bus_dmamap_sync (dmat=3D0xfffff80002d83400, map=3D0x15fc12000, op=3D1) at /usr/src/sys/x86/x86/busdma_bounce.c:973 #19 0xffffffff8085104b in bus_dmamap_sync (dmat=3D0xfffff80002d83400, map=3D0x15fc12000, op=3D) at /usr/src/sys/x86/include/bus_dma.h:125 #20 iflib_fl_refill (ctx=3D0xfffff80002dd7000, fl=3D, count=3D) at /usr/src/sys/net/iflib.c:2109 #21 0xffffffff8084d5db in iflib_fl_refill_all (ctx=3D0xfffff80002dd7000, fl=3D0xfffff80002d955c0) at /usr/src/sys/net/iflib.c:2188 #22 iflib_rxeof (rxq=3D, budget=3D) at /usr/src/sys/net/iflib.c:2899 #23 _task_fn_rx (context=3D) at /usr/src/sys/net/iflib.c:3868 #24 0xffffffff807808bd in gtaskqueue_run_locked (queue=3D0xfffff800020c7200= ) at /usr/src/sys/kern/subr_gtaskqueue.c:362 #25 0xffffffff8078068e in gtaskqueue_thread_loop (arg=3D) at /usr/src/sys/kern/subr_gtaskqueue.c:537 #26 0xffffffff8070792d in fork_exit (callout=3D0xffffffff80780610 , arg=3D0xfffffe00007f8008, frame=3D0xfffffe00c85cb= c00) at /usr/src/sys/kern/kern_fork.c:1088 (kgdb) fr 21 #21 0xffffffff8084d5db in iflib_fl_refill_all (ctx=3D0xfffff80002dd7000, fl=3D0xfffff80002d955c0) at /usr/src/sys/net/iflib.c:2188 2188 in /usr/src/sys/net/iflib.c (kgdb) p fl $1 =3D (iflib_fl_t) 0xfffff80002d955c0 (kgdb) fr 20 #20 iflib_fl_refill (ctx=3D0xfffff80002dd7000, fl=3D, count=3D) at /usr/src/sys/net/iflib.c:2109 2109 /usr/src/sys/net/iflib.c: No such file or directory. (kgdb) i loc iru =3D {iru_paddrs =3D 0xfffff80002d95640, iru_idxs =3D 0xfffff80002d95740= , iru_pidx =3D 1888, iru_qsidx =3D 0, iru_count =3D 32, iru_buf_size =3D 4096, iru_fli= dx =3D 1 '\001'} cb_arg =3D {error =3D 0, seg =3D {ds_addr =3D 5901459456, ds_len =3D 4096},= nseg =3D 1} sd_m =3D 0xfffffe00eabdc000 sd_map =3D 0xfffffe00eabe8000 sd_cl =3D 0xfffffe00eabe0000 sd_ba =3D 0xfffffe00eabe4000 idx =3D 1949 pidx =3D 1920 frag_idx =3D -1 n =3D i =3D 29 credits =3D 1949 bus_addr =3D 18446735283517988864 cl =3D err =3D m =3D (kgdb) p $1.ifl_size $4 =3D 2048 (kgdb) p/x *$1.ifl_rx_bitmap@32 $7 =3D {0xffffffffffffffff } (kgdb) p *$1 $8 =3D {ifl_cidx =3D 0, ifl_pidx =3D 1920, ifl_credits =3D 1920, ifl_gen = =3D 0 '\000', ifl_rxd_size =3D 0 '\000', ifl_rx_bitmap =3D 0xfffff80002d83200, ifl_fragid= x =3D 128, ifl_size =3D 2048, ifl_buf_size =3D 4096, ifl_cltype =3D 3,=20 ifl_zone =3D 0xfffff800029c5000, ifl_sds =3D {ifsd_map =3D 0xfffffe00eabe= 8000, ifsd_m =3D 0xfffffe00eabdc000, ifsd_cl =3D 0xfffffe00eabe0000, ifsd_ba =3D 0xfffffe00eabe4000}, ifl_rxq =3D 0xfffffe00ea9f5000, ifl_id =3D 1 '\001',=20 ifl_buf_tag =3D 0xfffff80002d83400, ifl_ifdi =3D 0xfffff80002d9b4d0, ifl_bus_addrs =3D {5901619200, 5901623296, 5901533184, 5901537280, 59015413= 76, 5901545472, 5901549568, 5901553664, 5901557760, 5901561856, 5901565952, 5901570048,=20 5901574144, 5901488128, 5901492224, 5901496320, 5901500416, 5901504512, 5901508608, 5901512704, 5901516800, 5901520896, 5901524992, 5901529088, 5901443072, 5901447168, 5901451264, 5901455360, 5901459456, 5901602816,=20 5901606912, 5901611008}, ifl_rxd_idxs =3D {1920, 1921, 1922, 1923, 1924, 1925, 1926, 1927, 1928, 1929, 1930, 1931, 1932, 1933, 1934, 1935, 1936, 193= 7, 1938, 1939, 1940, 1941, 1942, 1943, 1944, 1945, 1946, 1947, 2047, 1917,=20 1918, 1919}} Things of note: - frag_idx =3D -1 and ifl_rx_bitmap is indeed full - i =3D 29 and there is a jump from 1947 to 2047 (maximum index as ifl_size= =3D 2048) in ifl_rxd_idxs at positions 27 and 28 This makes me suspect that a concurrent refill topped the free list while t= he refill in question was running. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Nov 1 10:17: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 9ABCD183B370 for ; Mon, 1 Nov 2021 10:17: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 4HjTW43tMNz4ZDm for ; Mon, 1 Nov 2021 10:17: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 618D3785D for ; Mon, 1 Nov 2021 10:17: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 1A1AHq74076927 for ; Mon, 1 Nov 2021 10:17:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A1AHqmi076926 for net@FreeBSD.org; Mon, 1 Nov 2021 10:17: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 259458] iflib_rxeof NULL pointer crash with vmxnet3 driver Date: Mon, 01 Nov 2021 10:17:52 +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: 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 #15 from Andriy Gapon --- Also of note is that in all cases I see vmx0: link state changed to UP shortly before the crash. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Nov 1 11:31: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 027C5183B069 for ; Mon, 1 Nov 2021 11:31:09 +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 4HjW7c6b11z4tXk for ; Mon, 1 Nov 2021 11:31:08 +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 C2E3710BB8 for ; Mon, 1 Nov 2021 11:31:08 +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 1A1BV8QY013465 for ; Mon, 1 Nov 2021 11:31:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A1BV8m0013464 for net@FreeBSD.org; Mon, 1 Nov 2021 11:31:08 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: Mon, 01 Nov 2021 11:31:09 +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: 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 #16 from Andriy Gapon --- Actually, I am not sure that comment #0 and comment #14 (and comment #11) a= re the same problem. It could very well be that the crash from comment #0 is really fixed by the= fix from bug 253473. The more I dig into it, the more the problem in comment #14 is starting to = look like uninitialized memory in ifl_rx_bitmap rather than a race. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Nov 1 13: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 857A11835F9C for ; Mon, 1 Nov 2021 13:03:01 +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 4HjY9d39YXz3vdb for ; Mon, 1 Nov 2021 13:03:01 +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 4D00511F47 for ; Mon, 1 Nov 2021 13:03:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1A1D310X063100 for ; Mon, 1 Nov 2021 13:03:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A1D31T0063099 for net@FreeBSD.org; Mon, 1 Nov 2021 13:03:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 259458] iflib_rxeof NULL pointer crash with vmxnet3 driver Date: Mon, 01 Nov 2021 13:03:01 +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: 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 #17 from Andriy Gapon --- Some additional observations from another crash of exactly the same kind. There are 8 receive queues with 2 free lists per each. As far as I can tell, all free lists had been initialized and had initial 1= 28 credits. Just a single packet had been received. It was on rxq0 and its descriptor matched free list number 0. So, a single credit was consumed fr= om that free list and its cidx was advanced to 1. After that the free list was topped up with credits. Additionally the code was also topping up the other free list for rxq0 and that's when the problem happened. iflib_fl_refill()= was called with count of 1919 (2048 - 128 - 1) and it was able to fill 1247 cre= dits before the free list's bitmap became full somehow... Free lists for receive queues other than zero look like this: (kgdb) p *ctx->ifc_rxqs[$i++].ifr_fl@2 $52 =3D {{ifl_cidx =3D 0, ifl_pidx =3D 128, ifl_credits =3D 128, ifl_gen = =3D 0 '\000', ifl_rxd_size =3D 0 '\000', ifl_rx_bitmap =3D 0xfffff80002fb0c00, ifl_fragid= x =3D 128, ifl_size =3D 2048, ifl_buf_size =3D 2048, ifl_cltype =3D 1,=20 ifl_zone =3D 0xfffff800029c6000, ifl_sds =3D {ifsd_map =3D 0xfffffe00ea= c18000, ifsd_m =3D 0xfffffe00eabfc000, ifsd_cl =3D 0xfffffe00eac10000, ifsd_ba =3D 0xfffffe00eac14000}, ifl_rxq =3D 0xfffffe00ea9f5300, ifl_id =3D 0 '\000',=20 ifl_buf_tag =3D 0xfffff80002fb0e00, ifl_ifdi =3D 0xfffff80002fc56a8, ifl_bus_addrs =3D {6106355712, 6106349568, 6106351616, 6106345472, 61063475= 20, 6106361856, 6106363904, 6106357760, 6106359808, 6106353664, 6106376192,=20 6106370048, 6106372096, 6106365952, 6106368000, 6106382336, 610638438= 4, 6106378240, 6106380288, 6106374144, 6106396672, 6106390528, 6106392576, 6106386432, 6106388480, 6106402816, 6106404864, 6106398720, 6106400768,=20 6106394624, 6104950784, 6106415104}, ifl_rxd_idxs =3D {96, 97, 98, 99= , 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, = 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127}}, { ifl_cidx =3D 0, ifl_pidx =3D 128, ifl_credits =3D 128, ifl_gen =3D 0 '\00= 0', ifl_rxd_size =3D 0 '\000', ifl_rx_bitmap =3D 0xfffff80002fb0b00, ifl_fragid= x =3D 128, ifl_size =3D 2048, ifl_buf_size =3D 4096, ifl_cltype =3D 3,=20 ifl_zone =3D 0xfffff800029c5000, ifl_sds =3D {ifsd_map =3D 0xfffffe00ea= c28000, ifsd_m =3D 0xfffffe00eac1c000, ifsd_cl =3D 0xfffffe00eac20000, ifsd_ba =3D 0xfffffe00eac24000}, ifl_rxq =3D 0xfffffe00ea9f5300, ifl_id =3D 1 '\001',=20 ifl_buf_tag =3D 0xfffff80002fb0d00, ifl_ifdi =3D 0xfffff80002fc56d0, ifl_bus_addrs =3D {8338677760, 8338681856, 8338685952, 8338690048, 83386204= 16, 8338624512, 8338628608, 8338632704, 6105874432, 6105878528, 6105882624,=20 6105886720, 6105890816, 6105894912, 6105899008, 6105903104, 610590720= 0, 6105911296, 6105915392, 6105919488, 6105923584, 6105927680, 6105931776, 6105935872, 6105939968, 6105944064, 6105948160, 6105952256, 6105956352,=20 6105960448, 6105964544, 6105968640}, ifl_rxd_idxs =3D {96, 97, 98, 99= , 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, = 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127}}} And their bitmaps are all like this: $62 =3D {0xffffffffffffffff, 0xffffffffffffffff, 0x0 } Here are the free lists of rxq0 at the time of the crash: $51 =3D {{ifl_cidx =3D 1, ifl_pidx =3D 0, ifl_credits =3D 2047, ifl_gen =3D= 0 '\000', ifl_rxd_size =3D 0 '\000', ifl_rx_bitmap =3D 0xfffff80002faf400, ifl_fragid= x =3D 0, ifl_size =3D 2048, ifl_buf_size =3D 2048, ifl_cltype =3D 1,=20 ifl_zone =3D 0xfffff800029c6000, ifl_sds =3D {ifsd_map =3D 0xfffffe00ea= bd8000, ifsd_m =3D 0xfffffe00eabcc000, ifsd_cl =3D 0xfffffe00eabd0000, ifsd_ba =3D 0xfffffe00eabd4000}, ifl_rxq =3D 0xfffffe00ea9f5000, ifl_id =3D 0 '\000',=20 ifl_buf_tag =3D 0xfffff80002faf600, ifl_ifdi =3D 0xfffff80002fc5728, ifl_bus_addrs =3D {6101612544, 6101651456, 6101649408, 6101639168, 61016412= 16, 6101626880, 6101628928, 6101635072, 6101637120, 6101659648, 6101661696,=20 6101647360, 6101624832, 6101618688, 6101620736, 6101614592, 610161664= 0, 6101671936, 6101673984, 6101667840, 6101669888, 6101622784, 6101678080, 6101680128, 6101682176, 6101655552, 6101657600, 6101786624, 6101788672,=20 6101766144, 6101768192, 6101676032}, ifl_rxd_idxs =3D {2016, 2017, 20= 18, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2027, 2028, 2029, 2030, 203= 1, 2032, 2033, 2034, 2035, 2036, 2037, 2038, 2039, 2040, 2041, 2042, 2043,=20 2044, 2045, 2046, 2047}}, {ifl_cidx =3D 0, ifl_pidx =3D 1344, ifl_credits =3D 1344, ifl_gen =3D 0 '\0= 00', ifl_rxd_size =3D 0 '\000', ifl_rx_bitmap =3D 0xfffff80002faf300, ifl_fragid= x =3D 128, ifl_size =3D 2048, ifl_buf_size =3D 4096,=20 ifl_cltype =3D 3, ifl_zone =3D 0xfffff800029c5000, ifl_sds =3D {ifsd_ma= p =3D 0xfffffe00eabe8000, ifsd_m =3D 0xfffffe00eabdc000, ifsd_cl =3D 0xfffffe00ea= be0000, ifsd_ba =3D 0xfffffe00eabe4000}, ifl_rxq =3D 0xfffffe00ea9f5000,=20 ifl_id =3D 1 '\001', ifl_buf_tag =3D 0xfffff80002faf500, ifl_ifdi =3D 0xfffff80002fc5750, ifl_bus_addrs =3D {8347934720, 8347938816, 8347942912, 8347824128, 8347828224, 8347832320, 8347836416, 8347840512, 8347844608, 8347848704,=20 8347852800, 8347856896, 8347860992, 8347865088, 8347869184, 834787328= 0, 8347877376, 8347881472, 8347758592, 8347762688, 8347770880, 8347774976, 8347779072, 8347783168, 8347787264, 8347791360, 8347795456, 8347799552,=20 8347803648, 8347807744, 8347811840, 8347930624}, ifl_rxd_idxs =3D {13= 44, 1345, 1346, 1347, 1348, 1349, 1350, 1351, 1352, 1353, 1354, 1355, 1356, 135= 7, 1358, 1359, 1360, 1361, 1362, 1363, 1364, 1365, 1366, 1367, 1368, 1369,=20 1370, 1371, 1372, 1373, 2047, 1343}}} And their bitmaps: (kgdb) set $i=3D0 (kgdb) p/x *ctx->ifc_rxqs[$i/2].ifr_fl[$i++%2].ifl_rx_bitmap@32 $60 =3D {0xfffffffffffffffe, 0xffffffffffffffff } (kgdb)=20 $61 =3D {0xffffffffffffffff } I am out of ideas what could have caused the full bitmap for fl 1 of rxq0 a= fter receiving just one packet. All other fields in the free list do not appear= to be corrupt or inconsistent. It's only ifl_rx_bitmap and ifl_rxd_idxs at position 30. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Nov 2 17:29:21 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 50664182C89D for ; Tue, 2 Nov 2021 17:29: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 4HkH2V1gnWz4sGP for ; Tue, 2 Nov 2021 17:29: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 14B9FBEE for ; Tue, 2 Nov 2021 17:29: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 1A2HTMoE066339 for ; Tue, 2 Nov 2021 17:29:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A2HTMsD066338 for net@FreeBSD.org; Tue, 2 Nov 2021 17:29: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 258849] IPSec may generate duplicate SPIs Date: Tue, 02 Nov 2021 17:29:21 +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 Some People X-Bugzilla-Who: mjg@FreeBSD.org X-Bugzilla-Status: In Progress 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=3D258849 --- Comment #5 from Mateusz Guzik --- ae, ping? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Nov 2 20:22:42 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 631FD183FC61 for ; Tue, 2 Nov 2021 20:22:42 +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 4HkLtV2Jg0z3Br8 for ; Tue, 2 Nov 2021 20:22:42 +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 2F8F83B32 for ; Tue, 2 Nov 2021 20:22:42 +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 1A2KMgTD062813 for ; Tue, 2 Nov 2021 20:22:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A2KMgnP062812 for net@FreeBSD.org; Tue, 2 Nov 2021 20:22:42 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 258849] IPSec may generate duplicate SPIs Date: Tue, 02 Nov 2021 20:22:42 +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 Some People X-Bugzilla-Who: ae@FreeBSD.org X-Bugzilla-Status: In Progress 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=3D258849 --- Comment #6 from Andrey V. Elsukov --- (In reply to Mateusz Guzik from comment #5) I'll take a look --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Nov 3 12:06: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 B7F211832DBC for ; Wed, 3 Nov 2021 12:06:09 +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 4Hklq54l88z3lVj for ; Wed, 3 Nov 2021 12:06:09 +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 7FF5E18721 for ; Wed, 3 Nov 2021 12:06:09 +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 1A3C69dI048341 for ; Wed, 3 Nov 2021 12:06:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A3C69QC048340 for net@FreeBSD.org; Wed, 3 Nov 2021 12:06:09 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 258849] IPSec may generate duplicate SPIs Date: Wed, 03 Nov 2021 12:06:09 +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 Some People X-Bugzilla-Who: ae@FreeBSD.org X-Bugzilla-Status: In Progress 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=3D258849 --- Comment #7 from Andrey V. Elsukov --- (In reply to Mateusz Guzik from comment #4) I'm agree with your solution, will you publish the full diff? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Nov 3 12:48: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 5DA671845234 for ; Wed, 3 Nov 2021 12:48: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 4Hkmlm1qDfz4RRG for ; Wed, 3 Nov 2021 12:48: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 1AE93188FD for ; Wed, 3 Nov 2021 12:48: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 1A3CmKTd069892 for ; Wed, 3 Nov 2021 12:48:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A3CmKPo069891 for net@FreeBSD.org; Wed, 3 Nov 2021 12:48: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 258849] IPSec may generate duplicate SPIs Date: Wed, 03 Nov 2021 12:48:20 +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 Some People X-Bugzilla-Who: mjg@FreeBSD.org X-Bugzilla-Status: In Progress 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=3D258849 --- Comment #8 from Mateusz Guzik --- Well I'm going to have to write one first. ;) I'll try to do it today. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Nov 3 16:27:04 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 7D788182C87E for ; Wed, 3 Nov 2021 16:27:04 +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 4Hksc82sc7z4rSF for ; Wed, 3 Nov 2021 16:27:04 +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 3D2521BE43 for ; Wed, 3 Nov 2021 16:27:04 +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 1A3GR4Ha081642 for ; Wed, 3 Nov 2021 16:27:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A3GR4Mr081641 for net@FreeBSD.org; Wed, 3 Nov 2021 16:27:04 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 258849] IPSec may generate duplicate SPIs Date: Wed, 03 Nov 2021 16:27:04 +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 Some People X-Bugzilla-Who: mjg@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mjg@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D258849 Mateusz Guzik changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|net@FreeBSD.org |mjg@FreeBSD.org --- Comment #9 from Mateusz Guzik --- https://reviews.freebsd.org/D32826 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Nov 3 19:59:52 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 CFE8E184A085 for ; Wed, 3 Nov 2021 19:59:53 +0000 (UTC) (envelope-from misho@elwix.org) Received: from mail.elwix.net (ns.aitbg.com [95.87.254.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4HkyKj2Gqpz3Hqy for ; Wed, 3 Nov 2021 19:59:53 +0000 (UTC) (envelope-from misho@elwix.org) Received: from terran.aitnet.org (unknown [87.246.28.119]) by mail.elwix.net (Postfix) with ESMTPSA id 84198DB00 for ; Wed, 3 Nov 2021 21:55:49 +0200 (EET) Date: Wed, 3 Nov 2021 21:59:52 +0200 From: Michael Pounov To: freebsd-net@freebsd.org Subject: Broadcom bnxt driver issue with promisc mode Message-Id: <20211103215952.fefc8cf8eb96ebaf22bb4935@elwix.org> Organization: ELWIX X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) 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/mixed; boundary="Multipart=_Wed__3_Nov_2021_21_59_52_+0200_k/o+IP0oGOyOxn+J" X-Rspamd-Queue-Id: 4HkyKj2Gqpz3Hqy X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of misho@elwix.org has no SPF policy when checking 95.87.254.42) smtp.mailfrom=misho@elwix.org X-Spamd-Result: default: False [2.75 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.35)[-0.348]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-diff]; HAS_ATTACHMENT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_SHORT(0.59)[0.593]; NEURAL_SPAM_LONG(1.00)[1.000]; DMARC_NA(0.00)[elwix.org]; R_SPF_NA(0.00)[no SPF record]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; ASN(0.00)[asn:43561, ipnet:95.87.192.0/18, country:BG]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[87.246.28.119:received] X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --Multipart=_Wed__3_Nov_2021_21_59_52_+0200_k/o+IP0oGOyOxn+J Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hello After survey about solution for Broadcom bnxt driver issue with promiscous mode. I am not found any normal solution with that situation. Only workaround to using promiscous mode to have normal operations with these cards. This isn't normal by me! I look and do some debug on bnxt driver. Issue came from hardware filter in ASIC. On init driver and its ring buffers default states of filter are all block. Also I saw that we have not ability to append configured VLANs on the host into broadcom vlan tag list to be allowed for further processing from network stack. Then my solution is simple and effective in such situation. I append to filter mask bit for passing further for processing all tagged vlans and native/primary vlan too. This is enough to have normal packet processing for bnxt driver. We have such BCM57414 NetXtreme-E 10Gb/25Gb RDMA Ethernet Controller. I tested patch on them. Patch is make on FreeBSD 14.0-CURRENT #3 main-n244973-c02a28754bc-dirty: Tue Nov 2 20:53:08 EET 2021 If you are thinking it is ok. You can feel free to merge it to FreeBSD existing driver. P.S. I found other small issues, but they are not show stoppers now for us. Br Michael Pounov CloudSigma AG ELWIX.ORG -- Michael Pounov --Multipart=_Wed__3_Nov_2021_21_59_52_+0200_k/o+IP0oGOyOxn+J Content-Type: text/x-diff; name="fix_bnxt_promisc.patch" Content-Disposition: attachment; filename="fix_bnxt_promisc.patch" Content-Transfer-Encoding: 7bit diff --git a/sys/dev/bnxt/if_bnxt.c b/sys/dev/bnxt/if_bnxt.c index 7811f4fdebf..f4a53cd4d93 100644 --- a/sys/dev/bnxt/if_bnxt.c +++ b/sys/dev/bnxt/if_bnxt.c @@ -588,7 +588,8 @@ bnxt_rx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, softc->vnic_info.def_ring_grp = (uint16_t)HWRM_NA_SIGNATURE; softc->vnic_info.cos_rule = (uint16_t)HWRM_NA_SIGNATURE; softc->vnic_info.lb_rule = (uint16_t)HWRM_NA_SIGNATURE; - softc->vnic_info.rx_mask = HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCAST; + softc->vnic_info.rx_mask = HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCAST | + HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ANYVLAN_NONVLAN; softc->vnic_info.mc_list_count = 0; softc->vnic_info.flags = BNXT_VNIC_FLAG_DEFAULT; rc = iflib_dma_alloc(ctx, BNXT_MAX_MC_ADDRS * ETHER_ADDR_LEN, @@ -1392,8 +1393,7 @@ bnxt_promisc_set(if_ctx_t ctx, int flags) HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ANYVLAN_NONVLAN; else softc->vnic_info.rx_mask &= - ~(HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_PROMISCUOUS | - HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ANYVLAN_NONVLAN); + ~(HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_PROMISCUOUS); rc = bnxt_hwrm_cfa_l2_set_rx_mask(softc, &softc->vnic_info); --Multipart=_Wed__3_Nov_2021_21_59_52_+0200_k/o+IP0oGOyOxn+J-- From nobody Wed Nov 3 23:01:02 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 7AD21183090C for ; Wed, 3 Nov 2021 23:01:03 +0000 (UTC) (envelope-from mike@mail.karels.net) Received: from mail.karels.net (mail.karels.net [216.160.39.52]) by mx1.freebsd.org (Postfix) with ESMTP id 4Hl2Lk3dc2z3LS2 for ; Wed, 3 Nov 2021 23:01:02 +0000 (UTC) (envelope-from mike@mail.karels.net) Received: from mail.karels.net (localhost [127.0.0.1]) by mail.karels.net (8.16.1/8.16.1) with ESMTPS id 1A3N12dG075695 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 3 Nov 2021 18:01:02 -0500 (CDT) (envelope-from mike@mail.karels.net) Received: (from mike@localhost) by mail.karels.net (8.16.1/8.16.1/Submit) id 1A3N121R075694; Wed, 3 Nov 2021 18:01:02 -0500 (CDT) (envelope-from mike) Message-Id: <202111032301.1A3N121R075694@mail.karels.net> To: freebsd-net@freebsd.org From: Mike Karels Reply-to: mike@karels.net Subject: netmask for loopback interfaces 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-ID: <75692.1635980462.1@mail.karels.net> Date: Wed, 03 Nov 2021 18:01:02 -0500 X-Rspamd-Queue-Id: 4Hl2Lk3dc2z3LS2 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of mike@mail.karels.net has no SPF policy when checking 216.160.39.52) smtp.mailfrom=mike@mail.karels.net X-Spamd-Result: default: False [2.68 / 15.00]; HAS_REPLYTO(0.00)[mike@karels.net]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[mike]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_HAM_SHORT(-0.62)[-0.620]; NEURAL_SPAM_LONG(1.00)[1.000]; DMARC_NA(0.00)[karels.net]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[mike@karels.net,mike@mail.karels.net]; RCVD_NO_TLS_LAST(0.10)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:209, ipnet:216.160.36.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[mike@karels.net,mike@mail.karels.net] X-ThisMailContainsUnwantedMimeParts: N I have a pending change to stop using class A/B/C netmasks when setting an interface address without an explicit mask, and instead to use a default mask (24 bits). A question has arisen as to what the default mask should be for loopback interfaces. The standard 127.0.0.1 is added with an 8 bit mask currently, but additions without a mask would default to 24 bits. There is no warning for missing masks for loopback in the current code. I'm not convinced that the mask has any meaning here; only a host route to the assigned address is created. Does anyone know of any meaning or use of the mask on a loopback address? Thanks, Mike From nobody Thu Nov 4 06:05: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 54275182A831 for ; Thu, 4 Nov 2021 06:05:22 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Received: from mail.flex-it.com.ua (mail.flex-it.com.ua [193.239.74.7]) (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 4HlCmK3Bdkz3PP1 for ; Thu, 4 Nov 2021 06:05:20 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Received: from [93.183.208.50] (helo=[192.168.200.124]) by mail.flex-it.com.ua with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1miVs8-0004PL-6V for freebsd-net@freebsd.org; Thu, 04 Nov 2021 08:05:12 +0200 Message-ID: <3244c917-d08a-c72b-5b5a-f74233cf47f5@shurik.kiev.ua> Date: Thu, 4 Nov 2021 08:05:13 +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 Thunderbird/91.2.0 Subject: Re: netmask for loopback interfaces Content-Language: ru To: freebsd-net@freebsd.org References: <202111032301.1A3N121R075694@mail.karels.net> From: Oleksandr Kryvulia In-Reply-To: <202111032301.1A3N121R075694@mail.karels.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4HlCmK3Bdkz3PP1 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of shuriku@shurik.kiev.ua designates 193.239.74.7 as permitted sender) smtp.mailfrom=shuriku@shurik.kiev.ua X-Spamd-Result: default: False [2.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[shurik.kiev.ua]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_SPAM_LONG(0.40)[0.396]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:35297, ipnet:193.239.72.0/22, country:UA]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 04.11.21 01:01, Mike Karels пишет: > I have a pending change to stop using class A/B/C netmasks when setting > an interface address without an explicit mask, and instead to use a default > mask (24 bits). A question has arisen as to what the default mask should > be for loopback interfaces. The standard 127.0.0.1 is added with an 8 bit > mask currently, but additions without a mask would default to 24 bits. > There is no warning for missing masks for loopback in the current code. > I'm not convinced that the mask has any meaning here; only a host route > to the assigned address is created. Does anyone know of any meaning or > use of the mask on a loopback address? > > Thanks, > Mike > /8 mask on loopback prevetnts using of 127.x.x.x network anywhere outside of the localhost. This described in RFC 5735 [1] and 1122 [2] [1] https://datatracker.ietf.org/doc/html/rfc5735 [2] https://datatracker.ietf.org/doc/html/rfc1122 From nobody Thu Nov 4 09:18: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 959F818291E2 for ; Thu, 4 Nov 2021 09:18:48 +0000 (UTC) (envelope-from sthaug@nethelp.no) Received: from bizet.nethelp.no (bizet.nethelp.no [IPv6:2001:8c0:9e04:500::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4HlJ3W75H2z3tCX for ; Thu, 4 Nov 2021 09:18:47 +0000 (UTC) (envelope-from sthaug@nethelp.no) Received: from localhost (bizet.nethelp.no [IPv6:2001:8c0:9e04:500::1]) by bizet.nethelp.no (Postfix) with ESMTP id D9B9EE604B; Thu, 4 Nov 2021 10:18:39 +0100 (CET) Date: Thu, 04 Nov 2021 10:18:39 +0100 (CET) Message-Id: <20211104.101839.22506556.sthaug@nethelp.no> To: Michael Pounov Cc: freebsd-net@freebsd.org Subject: Re: Broadcom bnxt driver issue with promisc mode From: sthaug@nethelp.no In-Reply-To: <20211103215952.fefc8cf8eb96ebaf22bb4935@elwix.org> References: <20211103215952.fefc8cf8eb96ebaf22bb4935@elwix.org> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) 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-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HlJ3W75H2z3tCX X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > After survey about solution for Broadcom bnxt driver issue with promiscous mode. I am not found any normal solution with that situation. > Only workaround to using promiscous mode to have normal operations with these cards. This isn't normal by me! > > I look and do some debug on bnxt driver. Issue came from hardware filter in ASIC. On init driver and its ring buffers default states of filter are all block. Also I saw that we have not ability to append configured VLANs on the host into broadcom vlan tag list to be allowed for further processing from network stack. > Then my solution is simple and effective in such situation. I append to filter mask bit for passing further for processing all tagged vlans and native/primary vlan too. > > This is enough to have normal packet processing for bnxt driver. > We have such BCM57414 NetXtreme-E 10Gb/25Gb RDMA Ethernet Controller. I tested patch on them. > > Patch is make on FreeBSD 14.0-CURRENT #3 main-n244973-c02a28754bc-dirty: Tue Nov 2 20:53:08 EET 2021 > > If you are thinking it is ok. You can feel free to merge it to FreeBSD existing driver. This patch solved a big problem for me also. My environment is FreeBSD 12.2-STABLE (r370686), with a 2 port BCM57412. The bnxt interfaces work fine as long as I configure IP address on the main (physical) interface - no VLANs. If I configure a VLAN interface (e.g. bnxt1.91), this only works if I put the main interface in promiscuous mode. After updating if_bnxt.c with the patch from Michael Pounov, I am now able to use VLAN interfaces without putting the main interface in promiscuous mode. This is the output from pciconf -lv: bnxt0@pci0:24:0:0: class=0x020000 card=0x412014e4 chip=0x16d614e4 rev=0x01 hdr=0x00 vendor = 'Broadcom Inc. and subsidiaries' device = 'BCM57412 NetXtreme-E 10Gb RDMA Ethernet Controller' class = network subclass = ethernet bnxt1@pci0:24:0:1: class=0x020000 card=0x412014e4 chip=0x16d614e4 rev=0x01 hdr=0x00 vendor = 'Broadcom Inc. and subsidiaries' device = 'BCM57412 NetXtreme-E 10Gb RDMA Ethernet Controller' class = network subclass = ethernet Below I have enclosed the patch I used for 12.2-STABLE - the only difference, as far as I can see, is slightly different line numbers. Thank you Michael Pounov! Steinar Haug, Nethelp consulting, sthaug@nethelp.no ---------------------------------------------------------------------- --- sys/dev/bnxt/if_bnxt.c.orig 2021-09-28 21:25:17.000000000 +0200 +++ sys/dev/bnxt/if_bnxt.c 2021-11-04 07:59:24.720236000 +0100 @@ -587,7 +587,8 @@ softc->vnic_info.def_ring_grp = (uint16_t)HWRM_NA_SIGNATURE; softc->vnic_info.cos_rule = (uint16_t)HWRM_NA_SIGNATURE; softc->vnic_info.lb_rule = (uint16_t)HWRM_NA_SIGNATURE; - softc->vnic_info.rx_mask = HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCAST; + softc->vnic_info.rx_mask = HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCAST | + HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ANYVLAN_NONVLAN; softc->vnic_info.mc_list_count = 0; softc->vnic_info.flags = BNXT_VNIC_FLAG_DEFAULT; rc = iflib_dma_alloc(ctx, BNXT_MAX_MC_ADDRS * ETHER_ADDR_LEN, @@ -1384,8 +1385,7 @@ HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ANYVLAN_NONVLAN; else softc->vnic_info.rx_mask &= - ~(HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_PROMISCUOUS | - HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ANYVLAN_NONVLAN); + ~(HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_PROMISCUOUS); rc = bnxt_hwrm_cfa_l2_set_rx_mask(softc, &softc->vnic_info); From nobody Thu Nov 4 13:03:29 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 00B30183EC05 for ; Thu, 4 Nov 2021 13:03:33 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:300:2185:123::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4HlP2r6RP8z4nHn for ; Thu, 4 Nov 2021 13:03:32 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [104.207.135.49]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 1A4D3V22091831; Thu, 4 Nov 2021 13:03:31 GMT (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 1A4D3T0r091830; Thu, 4 Nov 2021 13:03:29 GMT (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202111041303.1A4D3T0r091830@donotpassgo.dyslexicfish.net> Date: Thu, 04 Nov 2021 13:03:29 +0000 Organization: Dyslexic Fish To: shuriku@shurik.kiev.ua, freebsd-net@FreeBSD.org Subject: Re: netmask for loopback interfaces References: <202111032301.1A3N121R075694@mail.karels.net> <3244c917-d08a-c72b-5b5a-f74233cf47f5@shurik.kiev.ua> In-Reply-To: <3244c917-d08a-c72b-5b5a-f74233cf47f5@shurik.kiev.ua> User-Agent: Heirloom mailx 12.4 7/29/08 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=utf-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [104.207.135.49]); Thu, 04 Nov 2021 13:03:31 +0000 (GMT) X-Rspamd-Queue-Id: 4HlP2r6RP8z4nHn X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N Oleksandr Kryvulia wrote: > 04.11.21 01:01, Mike Karels пишет: > > I have a pending change to stop using class A/B/C netmasks when setting > > an interface address without an explicit mask, and instead to use a default > > mask (24 bits). A question has arisen as to what the default mask should > > be for loopback interfaces. The standard 127.0.0.1 is added with an 8 bit > > mask currently, but additions without a mask would default to 24 bits. > > There is no warning for missing masks for loopback in the current code. > > I'm not convinced that the mask has any meaning here; only a host route > > to the assigned address is created. Does anyone know of any meaning or > > use of the mask on a loopback address? > > > > Thanks, > > Mike > > > > /8 mask on loopback prevetnts using of 127.x.x.x network anywhere > outside of the localhost. This described in RFC 5735 [1] and 1122 [2] > > [1] https://datatracker.ietf.org/doc/html/rfc5735 > [2] https://datatracker.ietf.org/doc/html/rfc1122 There is a push by some people to release 127.0.0.0/8 address space, leaving only 127.0.0.0/16 as reserved for localhost. https://www.spinics.net/lists/netdev/msg598545.html https://github.com/schoen/unicast-extensions/blob/master/127.md https://github.com/schoen/unicast-extensions/ I make no comment on the feasability of doing this! However, that aside, aren't you just confusing the mask with routing? I think the mask on any IP on a loopback interface should be /32 (if you want to add a "127.0.0.0/8 -local" route even if done automatically", then so be it) Note, the default FreeBSD firewall rules already have: ${fwcmd} add 100 pass all from any to any via lo0 ${fwcmd} add 200 deny all from any to 127.0.0.0/8 ${fwcmd} add 300 deny ip from 127.0.0.0/8 to any Cheers, Jamie From nobody Thu Nov 4 13:56:40 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 437241840ADD for ; Thu, 4 Nov 2021 13:57:01 +0000 (UTC) (envelope-from mike@mail.karels.net) Received: from mail.karels.net (mail.karels.net [216.160.39.52]) by mx1.freebsd.org (Postfix) with ESMTP id 4HlQDX2ZGlz3PgS for ; Thu, 4 Nov 2021 13:56:59 +0000 (UTC) (envelope-from mike@mail.karels.net) Received: from mail.karels.net (localhost [127.0.0.1]) by mail.karels.net (8.16.1/8.16.1) with ESMTPS id 1A4DufY9078224 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 4 Nov 2021 08:56:41 -0500 (CDT) (envelope-from mike@mail.karels.net) Received: (from mike@localhost) by mail.karels.net (8.16.1/8.16.1/Submit) id 1A4DueIJ078223; Thu, 4 Nov 2021 08:56:40 -0500 (CDT) (envelope-from mike) Message-Id: <202111041356.1A4DueIJ078223@mail.karels.net> To: Jamie Landeg-Jones cc: shuriku@shurik.kiev.ua, freebsd-net@FreeBSD.org From: Mike Karels Reply-to: mike@karels.net Subject: Re: netmask for loopback interfaces In-reply-to: Your message of Thu, 04 Nov 2021 13:03:29 -0000. <202111041303.1A4D3T0r091830@donotpassgo.dyslexicfish.net> 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-ID: <78221.1636034200.1@mail.karels.net> Content-Transfer-Encoding: quoted-printable Date: Thu, 04 Nov 2021 08:56:40 -0500 X-Rspamd-Queue-Id: 4HlQDX2ZGlz3PgS X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of mike@mail.karels.net has no SPF policy when checking 216.160.39.52) smtp.mailfrom=mike@mail.karels.net X-Spamd-Result: default: False [0.29 / 15.00]; HAS_REPLYTO(0.00)[mike@karels.net]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[mike]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; DMARC_NA(0.00)[karels.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.99)[0.988]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[mike@karels.net,mike@mail.karels.net]; RCVD_NO_TLS_LAST(0.10)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:216.160.36.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[mike@karels.net,mike@mail.karels.net]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Jamie wrote: > Oleksandr Kryvulia wrote: > > 04.11.21 01:01, Mike Karels wrote: > > > I have a pending change to stop using class A/B/C netmasks when sett= ing > > > an interface address without an explicit mask, and instead to use a = default > > > mask (24 bits). A question has arisen as to what the default mask s= hould > > > be for loopback interfaces. The standard 127.0.0.1 is added with an= 8 bit > > > mask currently, but additions without a mask would default to 24 bit= s. > > > There is no warning for missing masks for loopback in the current co= de. > > > I'm not convinced that the mask has any meaning here; only a host ro= ute > > > to the assigned address is created. Does anyone know of any meaning= or > > > use of the mask on a loopback address? > > > > > > Thanks, > > > Mike > > > > > > > /8 mask on loopback prevetnts using of 127.x.x.x network anywhere = > > outside of the localhost. This described in RFC 5735 [1] and 1122 [2] > > > > [1] https://datatracker.ietf.org/doc/html/rfc5735 > > [2] https://datatracker.ietf.org/doc/html/rfc1122 It's true that 127/8 is currently reserved, but that isn't enforced by FreeBSD using the mask on the interface. Such packets are prevented from forwarding by in_canforward(), which in turn uses IN_LOOPBACK(). The latter uses a compiled-in 8-bit mask. > There is a push by some people to release 127.0.0.0/8 address space, > leaving only 127.0.0.0/16 as reserved for localhost. > https://www.spinics.net/lists/netdev/msg598545.html > https://github.com/schoen/unicast-extensions/blob/master/127.md > https://github.com/schoen/unicast-extensions/ > I make no comment on the feasability of doing this! > However, that aside, aren't you just confusing the mask with routing? The two masks (interface and route) are separate, but the routing mask is set from the interface mask for most interfaces (broadcast or NBMA, but not loopback or point-to-point). The interface mask is visible to user level, including routing daemons. But I think it would be wrong for a routing daemon to infer anything from the mask on a loopback route. But the reason for my question was to find out if there is anything that uses the interface mask in this case, and thus whether a change in the default matters. > I think the mask on any IP on a loopback interface should be /32 > (if you want to add a "127.0.0.0/8 -local" route even if done > automatically", then so be it) Using /32 on loopback is not a bad idea. /etc/network.subr is wired to 127.0.0.1/8 currently. I don't think I'll change it in this pass though. > Note, the default FreeBSD firewall rules already have: > ${fwcmd} add 100 pass all from any to any via lo0 > ${fwcmd} add 200 deny all from any to 127.0.0.0/8 > ${fwcmd} add 300 deny ip from 127.0.0.0/8 to any If you use the default rules... Mike From nobody Thu Nov 4 14:28:02 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 B739918293DA for ; Thu, 4 Nov 2021 14:28:11 +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 4HlQwW3Pjhz3qfx for ; Thu, 4 Nov 2021 14:28:11 +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 1A4ES2EV029644; Thu, 4 Nov 2021 07:28:02 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 1A4ES2VL029643; Thu, 4 Nov 2021 07:28:02 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <202111041428.1A4ES2VL029643@gndrsh.dnsmgr.net> Subject: Re: netmask for loopback interfaces In-Reply-To: <3244c917-d08a-c72b-5b5a-f74233cf47f5@shurik.kiev.ua> To: Oleksandr Kryvulia Date: Thu, 4 Nov 2021 07:28:02 -0700 (PDT) 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: 4HlQwW3Pjhz3qfx X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > 04.11.21 01:01, Mike Karels ?????: > > I have a pending change to stop using class A/B/C netmasks when setting > > an interface address without an explicit mask, and instead to use a default > > mask (24 bits). A question has arisen as to what the default mask should > > be for loopback interfaces. The standard 127.0.0.1 is added with an 8 bit > > mask currently, but additions without a mask would default to 24 bits. > > There is no warning for missing masks for loopback in the current code. > > I'm not convinced that the mask has any meaning here; only a host route > > to the assigned address is created. Does anyone know of any meaning or > > use of the mask on a loopback address? > > > > Thanks, > > Mike > > > > /8 mask on loopback prevetnts using of 127.x.x.x network anywhere > outside of the localhost. This described in RFC 5735 [1] and 1122 [2] > > [1] https://datatracker.ietf.org/doc/html/rfc5735 > [2] https://datatracker.ietf.org/doc/html/rfc1122 Saddly that no longer works correctly since there is no longer a 127/8 route in the table. Which, IMHO, is a mistake. -- Rod Grimes rgrimes@freebsd.org From nobody Thu Nov 4 14:30:25 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 522CB1829C2A for ; Thu, 4 Nov 2021 14:30:32 +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 4HlQzD0DWrz3rQV for ; Thu, 4 Nov 2021 14:30:31 +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 1A4EUPiw029662; Thu, 4 Nov 2021 07:30:25 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 1A4EUPOe029661; Thu, 4 Nov 2021 07:30:25 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <202111041430.1A4EUPOe029661@gndrsh.dnsmgr.net> Subject: Re: netmask for loopback interfaces In-Reply-To: <202111041303.1A4D3T0r091830@donotpassgo.dyslexicfish.net> To: Jamie Landeg-Jones Date: Thu, 4 Nov 2021 07:30:25 -0700 (PDT) CC: shuriku@shurik.kiev.ua, 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: 4HlQzD0DWrz3rQV X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > Oleksandr Kryvulia wrote: > > > 04.11.21 01:01, Mike Karels ?????: > > > I have a pending change to stop using class A/B/C netmasks when setting > > > an interface address without an explicit mask, and instead to use a default > > > mask (24 bits). A question has arisen as to what the default mask should > > > be for loopback interfaces. The standard 127.0.0.1 is added with an 8 bit > > > mask currently, but additions without a mask would default to 24 bits. > > > There is no warning for missing masks for loopback in the current code. > > > I'm not convinced that the mask has any meaning here; only a host route > > > to the assigned address is created. Does anyone know of any meaning or > > > use of the mask on a loopback address? > > > > > > Thanks, > > > Mike > > > > > > > /8 mask on loopback prevetnts using of 127.x.x.x network anywhere > > outside of the localhost. This described in RFC 5735 [1] and 1122 [2] > > > > [1] https://datatracker.ietf.org/doc/html/rfc5735 > > [2] https://datatracker.ietf.org/doc/html/rfc1122 > > There is a push by some people to release 127.0.0.0/8 address space, > leaving only 127.0.0.0/16 as reserved for localhost. > > https://www.spinics.net/lists/netdev/msg598545.html > > https://github.com/schoen/unicast-extensions/blob/master/127.md > > https://github.com/schoen/unicast-extensions/ > > I make no comment on the feasability of doing this! > > However, that aside, aren't you just confusing the mask with routing? > > I think the mask on any IP on a loopback interface should be /32 > (if you want to add a "127.0.0.0/8 -local" route even if done > automatically", then so be it) > > Note, the default FreeBSD firewall rules already have: > > ${fwcmd} add 100 pass all from any to any via lo0 > ${fwcmd} add 200 deny all from any to 127.0.0.0/8 > ${fwcmd} add 300 deny ip from 127.0.0.0/8 to any Which no longer work correctly since the "to 127.0.0.0/8" packets SHALL go out what ever interface the route table tells them to (often the default route), AND NOT lo0. oot {1003}# route -n get 127.1.1.1 route to: 127.1.1.1 destination: 0.0.0.0 mask: 0.0.0.0 gateway: 192.168.32.8 fib: 0 interface: em0 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1500 1 0 > Cheers, Jamie -- Rod Grimes rgrimes@freebsd.org From nobody Thu Nov 4 14:36: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 BCBFA182EBFF for ; Thu, 4 Nov 2021 14:36:40 +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 4HlR6J10lZz3v5P for ; Thu, 4 Nov 2021 14:36:40 +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 1A4EabYF029697; Thu, 4 Nov 2021 07:36:37 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 1A4Eabv2029696; Thu, 4 Nov 2021 07:36:37 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <202111041436.1A4Eabv2029696@gndrsh.dnsmgr.net> Subject: Re: netmask for loopback interfaces In-Reply-To: <202111041356.1A4DueIJ078223@mail.karels.net> To: mike@karels.net Date: Thu, 4 Nov 2021 07:36:37 -0700 (PDT) CC: Jamie Landeg-Jones , shuriku@shurik.kiev.ua, 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: 4HlR6J10lZz3v5P X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > Jamie wrote: > > > Oleksandr Kryvulia wrote: > > > > 04.11.21 01:01, Mike Karels wrote: > > > > I have a pending change to stop using class A/B/C netmasks when setting > > > > an interface address without an explicit mask, and instead to use a default > > > > mask (24 bits). A question has arisen as to what the default mask should > > > > be for loopback interfaces. The standard 127.0.0.1 is added with an 8 bit > > > > mask currently, but additions without a mask would default to 24 bits. > > > > There is no warning for missing masks for loopback in the current code. > > > > I'm not convinced that the mask has any meaning here; only a host route > > > > to the assigned address is created. Does anyone know of any meaning or > > > > use of the mask on a loopback address? > > > > > > > > Thanks, > > > > Mike > > > > > > > > > > /8 mask on loopback prevetnts using of 127.x.x.x network anywhere > > > outside of the localhost. This described in RFC 5735 [1] and 1122 [2] > > > > > > [1] https://datatracker.ietf.org/doc/html/rfc5735 > > > [2] https://datatracker.ietf.org/doc/html/rfc1122 > > It's true that 127/8 is currently reserved, but that isn't enforced > by FreeBSD using the mask on the interface. Such packets are prevented > from forwarding by in_canforward(), which in turn uses IN_LOOPBACK(). > The latter uses a compiled-in 8-bit mask. I have a review up that "relaxes" the restrictions on this (127/8) and other ranges. https://reviews.freebsd.org/D19316 > > > There is a push by some people to release 127.0.0.0/8 address space, > > leaving only 127.0.0.0/16 as reserved for localhost. > > > https://www.spinics.net/lists/netdev/msg598545.html > > > https://github.com/schoen/unicast-extensions/blob/master/127.md > > > https://github.com/schoen/unicast-extensions/ > > > I make no comment on the feasability of doing this! > > > However, that aside, aren't you just confusing the mask with routing? > > The two masks (interface and route) are separate, but the routing mask > is set from the interface mask for most interfaces (broadcast or NBMA, > but not loopback or point-to-point). The interface mask is visible to > user level, including routing daemons. But I think it would be wrong > for a routing daemon to infer anything from the mask on a loopback > route. But the reason for my question was to find out if there is ^^^^^ I think you meant interface here? > anything that uses the interface mask in this case, and thus whether > a change in the default matters. I actually do believe routing daemons pay very close attention to the netmask on and interfaces. It is how CIDR routes to interfaces are created and maintained by most of them. Even ancient gated used this information. > > > I think the mask on any IP on a loopback interface should be /32 > > (if you want to add a "127.0.0.0/8 -local" route even if done > > automatically", then so be it) > > Using /32 on loopback is not a bad idea. /etc/network.subr is wired > to 127.0.0.1/8 currently. I don't think I'll change it in this pass > though. > > > Note, the default FreeBSD firewall rules already have: > > > ${fwcmd} add 100 pass all from any to any via lo0 > > ${fwcmd} add 200 deny all from any to 127.0.0.0/8 > > ${fwcmd} add 300 deny ip from 127.0.0.0/8 to any > > If you use the default rules... The default rules should work with a fresh install that is left with defaults in place. Due to loss of 127/8 routes the firewall code is borked and we only do not leak 127/8 packets because of other code in the kernel that prevents them from leaking. > Mike -- Rod Grimes rgrimes@freebsd.org From nobody Thu Nov 4 17:58: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 A9B4E183E30F for ; Thu, 4 Nov 2021 17:58:56 +0000 (UTC) (envelope-from mike@mail.karels.net) Received: from mail.karels.net (mail.karels.net [216.160.39.52]) by mx1.freebsd.org (Postfix) with ESMTP id 4HlWbg40WYz4qTW for ; Thu, 4 Nov 2021 17:58:55 +0000 (UTC) (envelope-from mike@mail.karels.net) Received: from mail.karels.net (localhost [127.0.0.1]) by mail.karels.net (8.16.1/8.16.1) with ESMTPS id 1A4Hwmf1079050 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 4 Nov 2021 12:58:48 -0500 (CDT) (envelope-from mike@mail.karels.net) Received: (from mike@localhost) by mail.karels.net (8.16.1/8.16.1/Submit) id 1A4HwloY079049; Thu, 4 Nov 2021 12:58:47 -0500 (CDT) (envelope-from mike) Message-Id: <202111041758.1A4HwloY079049@mail.karels.net> To: "Rodney W. Grimes" cc: Jamie Landeg-Jones , shuriku@shurik.kiev.ua, freebsd-net@FreeBSD.org From: Mike Karels Reply-to: mike@karels.net Subject: Re: netmask for loopback interfaces In-reply-to: Your message of Thu, 04 Nov 2021 07:36:37 -0700. <202111041436.1A4Eabv2029696@gndrsh.dnsmgr.net> 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-ID: <79047.1636048727.1@mail.karels.net> Content-Transfer-Encoding: quoted-printable Date: Thu, 04 Nov 2021 12:58:47 -0500 X-Rspamd-Queue-Id: 4HlWbg40WYz4qTW X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of mike@mail.karels.net has no SPF policy when checking 216.160.39.52) smtp.mailfrom=mike@mail.karels.net X-Spamd-Result: default: False [2.29 / 15.00]; HAS_REPLYTO(0.00)[mike@karels.net]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[mike]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; DMARC_NA(0.00)[karels.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[0.996]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_SPAM_SHORT(1.00)[0.998]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[mike@karels.net,mike@mail.karels.net]; RCVD_NO_TLS_LAST(0.10)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:216.160.36.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[mike@karels.net,mike@mail.karels.net]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Rod wrote: > > Jamie wrote: > > = > > > Oleksandr Kryvulia wrote: > > = > > > > 04.11.21 01:01, Mike Karels wrote: > > > > > I have a pending change to stop using class A/B/C netmasks when = setting > > > > > an interface address without an explicit mask, and instead to us= e a default > > > > > mask (24 bits). A question has arisen as to what the default ma= sk should > > > > > be for loopback interfaces. The standard 127.0.0.1 is added wit= h an 8 bit > > > > > mask currently, but additions without a mask would default to 24= bits. > > > > > There is no warning for missing masks for loopback in the curren= t code. > > > > > I'm not convinced that the mask has any meaning here; only a hos= t route > > > > > to the assigned address is created. Does anyone know of any mea= ning or > > > > > use of the mask on a loopback address? > > > > > > > > > > Thanks, > > > > > Mike > > > > > > > > > > > > > /8 mask on loopback prevetnts using of 127.x.x.x network anywhere = > > > > outside of the localhost. This described in RFC 5735 [1] and 1122 = [2] > > > > > > > > [1] https://datatracker.ietf.org/doc/html/rfc5735 > > > > [2] https://datatracker.ietf.org/doc/html/rfc1122 > > = > > It's true that 127/8 is currently reserved, but that isn't enforced > > by FreeBSD using the mask on the interface. Such packets are prevente= d > > from forwarding by in_canforward(), which in turn uses IN_LOOPBACK(). > > The latter uses a compiled-in 8-bit mask. > I have a review up that "relaxes" the restrictions on this (127/8) > and other ranges. > https://reviews.freebsd.org/D19316 > > = > > > There is a push by some people to release 127.0.0.0/8 address space, > > > leaving only 127.0.0.0/16 as reserved for localhost. > > = > > > https://www.spinics.net/lists/netdev/msg598545.html > > = > > > https://github.com/schoen/unicast-extensions/blob/master/127.md > > = > > > https://github.com/schoen/unicast-extensions/ > > = > > > I make no comment on the feasability of doing this! > > = > > > However, that aside, aren't you just confusing the mask with routing= ? > > = > > The two masks (interface and route) are separate, but the routing mask > > is set from the interface mask for most interfaces (broadcast or NBMA, > > but not loopback or point-to-point). The interface mask is visible to > > user level, including routing daemons. But I think it would be wrong > > for a routing daemon to infer anything from the mask on a loopback > > route. But the reason for my question was to find out if there is > ^^^^^ I think you meant interface here? Yes, thanks. (Although it may be true of loopback routes too.) > > anything that uses the interface mask in this case, and thus whether > > a change in the default matters. > I actually do believe routing daemons pay very close attention to > the netmask on and interfaces. It is how CIDR routes to interfaces > are created and maintained by most of them. Even ancient gated > used this information. Yes, but do they use information for the loopback for routing? Certainly they don't advertise the loop back by default; it isn't reachable external= ly. > > = > > > I think the mask on any IP on a loopback interface should be /32 > > > (if you want to add a "127.0.0.0/8 -local" route even if done > > > automatically", then so be it) > > = > > Using /32 on loopback is not a bad idea. /etc/network.subr is wired > > to 127.0.0.1/8 currently. I don't think I'll change it in this pass > > though. > > = > > > Note, the default FreeBSD firewall rules already have: > > = > > > ${fwcmd} add 100 pass all from any to any via lo0 > > > ${fwcmd} add 200 deny all from any to 127.0.0.0/8 > > > ${fwcmd} add 300 deny ip from 127.0.0.0/8 to any > > = > > If you use the default rules... > The default rules should work with a fresh install that > is left with defaults in place. Due to loss of 127/8 > routes the firewall code is borked and we only do not > leak 127/8 packets because of other code in the kernel > that prevents them from leaking. A fresh install does not enable the firewall rules by default. We could change /etc/network.subr to add a reject route for the loopback "net". When BSD last had a 127/8 route, it was not a reject route, so didn't make sense. Mike From nobody Thu Nov 4 19:10: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 7A72E183C037 for ; Thu, 4 Nov 2021 19:10:45 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:300:2185:123::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4HlYBY35tzz3rkB for ; Thu, 4 Nov 2021 19:10:45 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [104.207.135.49]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 1A4JAdnH016856; Thu, 4 Nov 2021 19:10:39 GMT (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 1A4JAbY2016855; Thu, 4 Nov 2021 19:10:38 GMT (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202111041910.1A4JAbY2016855@donotpassgo.dyslexicfish.net> Date: Thu, 04 Nov 2021 19:10:37 +0000 Organization: Dyslexic Fish To: jamie@catflap.org, freebsd-rwg@gndrsh.dnsmgr.net Cc: shuriku@shurik.kiev.ua, freebsd-net@FreeBSD.org Subject: Re: netmask for loopback interfaces References: <202111041430.1A4EUPOe029661@gndrsh.dnsmgr.net> In-Reply-To: <202111041430.1A4EUPOe029661@gndrsh.dnsmgr.net> User-Agent: Heirloom mailx 12.4 7/29/08 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-Transfer-Encoding: 7bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [104.207.135.49]); Thu, 04 Nov 2021 19:10:39 +0000 (GMT) X-Rspamd-Queue-Id: 4HlYBY35tzz3rkB X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N "Rodney W. Grimes" wrote: > > Note, the default FreeBSD firewall rules already have: > > > > ${fwcmd} add 100 pass all from any to any via lo0 > > ${fwcmd} add 200 deny all from any to 127.0.0.0/8 > > ${fwcmd} add 300 deny ip from 127.0.0.0/8 to any > > Which no longer work correctly since the "to 127.0.0.0/8" > packets SHALL go out what ever interface the route table > tells them to (often the default route), AND NOT lo0. > > oot {1003}# route -n get 127.1.1.1 > route to: 127.1.1.1 > destination: 0.0.0.0 > mask: 0.0.0.0 > gateway: 192.168.32.8 > fib: 0 > interface: em0 Hi! I'm not sure what you mean. The current default rules will stop anything to 127.0.0.0/8 going anywhere other than via lo0 - which preserves "current expected behaviour" - I was pointing out that in reply to Oleksandr's comment: | /8 mask on loopback prevetnts using of 127.x.x.x network anywhere | outside of the localhost. This described in RFC 5735 [1] and 1122 [2] His argument was that putting an /8 on the localhost address would neatly stop 127/8 traffic going to the LAN - I was pointing out there are other ways to do this, i.e. routing, and the firewall. Of course, if FreeBSD relaxes to allow the use of 128/8 outside 128/16, then these rules will need to be changed.. From nobody Fri Nov 5 00:32:38 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 747D1180C468 for ; Fri, 5 Nov 2021 00:32:39 +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 4HlhKz2nGXz54QZ for ; Fri, 5 Nov 2021 00:32:39 +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 4024462A7 for ; Fri, 5 Nov 2021 00:32:39 +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 1A50Wdjo081635 for ; Fri, 5 Nov 2021 00:32:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A50WdwK081634 for net@FreeBSD.org; Fri, 5 Nov 2021 00:32:39 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: Fri, 05 Nov 2021 00:32:38 +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: 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? maintainer-feedback? mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: short_desc keywords assigned_to version cc flagtypes.name 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=3D259645 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|crash after updating to |crash in_cksumdata |FreeBSD 13.0 p5 |(sys/amd64/amd64/in_cksum.c | |:113) via in4_cksum | |(sys/netpfil/pf/in4_cksum.c | |:117) after FreeBSD 13.0 p5 | |update Keywords| |crash, needs-qa Assignee|bugs@FreeBSD.org |net@FreeBSD.org Version|13.0-STABLE |13.0-RELEASE CC| |kp@freebsd.org, | |mjg@FreeBSD.org, | |net@FreeBSD.org Flags| |maintainer-feedback?(mjg@Fr | |eeBSD.org), | |maintainer-feedback?(kp@fre | |ebsd.org), mfc-stable13?, | |mfc-stable12? Status|New |Open --- Comment #1 from Kubilay Kocak --- Thank you for your report. Could you include additional information, includ= ing: - /var/run/dmesg.boot output (as an attachment) - /etc/rc.conf network configuration (as an attachment) - pciconf -lv output (as an attachment) - firewall (pf) configuration (as an attachment, sanitized where necessary) --=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 Fri Nov 5 08:28: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 024DD182F057 for ; Fri, 5 Nov 2021 08:28:47 +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 4HltvL6YChz3trR for ; Fri, 5 Nov 2021 08:28:46 +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 BD61A146CB for ; Fri, 5 Nov 2021 08:28:46 +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 1A58SkSO037533 for ; Fri, 5 Nov 2021 08:28:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A58SkcX037532 for net@FreeBSD.org; Fri, 5 Nov 2021 08:28:46 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: Fri, 05 Nov 2021 08:28:46 +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: kp@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: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259645 Kristof Provost changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #2 from Kristof Provost --- This smells a lot like #254419. Possibly we need to mb_unmapped_to_ext() in pf_check_proto_cksum() as well. --=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 Fri Nov 5 15:08:37 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 130A8183BFC0 for ; Fri, 5 Nov 2021 15:08:38 +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 4Hm3mj6vr1z4dcv for ; Fri, 5 Nov 2021 15:08:37 +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 CF14F19BF1 for ; Fri, 5 Nov 2021 15:08:37 +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 1A5F8bZF056261 for ; Fri, 5 Nov 2021 15:08:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A5F8bWH056260 for net@FreeBSD.org; Fri, 5 Nov 2021 15:08:37 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: Fri, 05 Nov 2021 15:08:37 +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: emaste@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 #3 from Ed Maste --- > after FreeBSD 13.0 p5 update update from which version? --=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 Fri Nov 5 15:53: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 AB8771846F9B for ; Fri, 5 Nov 2021 15:53: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 4Hm4mD44FHz3DjN for ; Fri, 5 Nov 2021 15:53:16 +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 6C7A01A845 for ; Fri, 5 Nov 2021 15:53: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 1A5FrG9s082993 for ; Fri, 5 Nov 2021 15:53:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A5FrGk3082992 for net@FreeBSD.org; Fri, 5 Nov 2021 15:53: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 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: Fri, 05 Nov 2021 15:53:16 +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: doctor@doctor.nl2k.ab.ca 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 #4 from doctor@doctor.nl2k.ab.ca --- FreeBSD 13.0 p4 to 13.0 p5 --=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 Fri Nov 5 15:53:36 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 102381847313 for ; Fri, 5 Nov 2021 15:53:37 +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 4Hm4mc6T3Wz3F26 for ; Fri, 5 Nov 2021 15:53:36 +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 BD59C1AA07 for ; Fri, 5 Nov 2021 15:53:36 +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 1A5FraY7083069 for ; Fri, 5 Nov 2021 15:53:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A5Franf083068 for net@FreeBSD.org; Fri, 5 Nov 2021 15:53:36 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: Fri, 05 Nov 2021 15:53:36 +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: doctor@doctor.nl2k.ab.ca 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 #5 from doctor@doctor.nl2k.ab.ca --- IT did happen a second time --=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 Fri Nov 5 15:56:59 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 4B4DF1847D27 for ; Fri, 5 Nov 2021 15:57:00 +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 4Hm4rX1b2Gz3Fb1 for ; Fri, 5 Nov 2021 15:57:00 +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 13C1C1A847 for ; Fri, 5 Nov 2021 15:57:00 +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 1A5Fv0pn083894 for ; Fri, 5 Nov 2021 15:57:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A5Fv0Mj083893 for net@FreeBSD.org; Fri, 5 Nov 2021 15:57:00 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: Fri, 05 Nov 2021 15:56:59 +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: doctor@doctor.nl2k.ab.ca 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: attachments.created 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 #6 from doctor@doctor.nl2k.ab.ca --- Created attachment 229295 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229295&action= =3Dedit 2nd crash tesxt --=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 Fri Nov 5 16:03: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 4FD95184BC5B for ; Fri, 5 Nov 2021 16:03: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 4Hm50X0wDpz3JsF for ; Fri, 5 Nov 2021 16:03: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 F2B8D1A9CD for ; Fri, 5 Nov 2021 16:03: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 1A5G3t6H088399 for ; Fri, 5 Nov 2021 16:03:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A5G3tWv088398 for net@FreeBSD.org; Fri, 5 Nov 2021 16:03:55 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: Fri, 05 Nov 2021 16:03:55 +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: doctor@doctor.nl2k.ab.ca 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 #7 from doctor@doctor.nl2k.ab.ca --- Kubilay Kocak I am adding what you requested in a file called crash20211105 --=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 Fri Nov 5 16:04: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 7828E184C056 for ; Fri, 5 Nov 2021 16:04: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 4Hm51h0H3dz3KYP for ; Fri, 5 Nov 2021 16:04: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 DFD481A8C0 for ; Fri, 5 Nov 2021 16:04: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 1A5G4tgc088652 for ; Fri, 5 Nov 2021 16:04:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A5G4tIx088651 for net@FreeBSD.org; Fri, 5 Nov 2021 16:04:55 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: Fri, 05 Nov 2021 16:04: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: 13.0-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: doctor@doctor.nl2k.ab.ca 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: attachments.created 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 #8 from doctor@doctor.nl2k.ab.ca --- Created attachment 229296 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229296&action= =3Dedit file containing technical details upon request --=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 Fri Nov 5 19:00:07 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 35A1A1842B49 for ; Fri, 5 Nov 2021 19:00:09 +0000 (UTC) (envelope-from mike@mail.karels.net) Received: from mail.karels.net (mail.karels.net [216.160.39.52]) by mx1.freebsd.org (Postfix) with ESMTP id 4Hm8vr2Mbwz3m3G for ; Fri, 5 Nov 2021 19:00:08 +0000 (UTC) (envelope-from mike@mail.karels.net) Received: from mail.karels.net (localhost [127.0.0.1]) by mail.karels.net (8.16.1/8.16.1) with ESMTPS id 1A5J07l6083825 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Fri, 5 Nov 2021 14:00:07 -0500 (CDT) (envelope-from mike@mail.karels.net) Received: (from mike@localhost) by mail.karels.net (8.16.1/8.16.1/Submit) id 1A5J074J083824; Fri, 5 Nov 2021 14:00:07 -0500 (CDT) (envelope-from mike) Message-Id: <202111051900.1A5J074J083824@mail.karels.net> To: freebsd-net@freebsd.org From: Mike Karels Reply-to: mike@karels.net Subject: reviews for INET class A/B/C reduction: last call 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-ID: <83822.1636138807.1@mail.karels.net> Date: Fri, 05 Nov 2021 14:00:07 -0500 X-Rspamd-Queue-Id: 4Hm8vr2Mbwz3m3G X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of mike@mail.karels.net has no SPF policy when checking 216.160.39.52) smtp.mailfrom=mike@mail.karels.net X-Spamd-Result: default: False [0.30 / 15.00]; HAS_REPLYTO(0.00)[mike@karels.net]; ARC_NA(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; FREEFALL_USER(0.00)[mike]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DMARC_NA(0.00)[karels.net]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[mike@karels.net,mike@mail.karels.net]; RCVD_NO_TLS_LAST(0.10)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:216.160.36.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[mike@karels.net,mike@mail.karels.net]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N I hope to commit the INET changes I have in review soon; please review now if you are interested. I could still use reviewers for the ifconfig and res_init.c reviews. Both are fairly simple; res_init.c just deletes some old code that is ifdef'ed out. The links to the reviews: kernel https://reviews.freebsd.org/D32708 ifconfig https://reviews.freebsd.org/D32709 libc manpages https://reviews.freebsd.org/D32711 res_init.c https://reviews.freebsd.org/D32712 mountd https://reviews.freebsd.org/D32713 netstat https://reviews.freebsd.org/D32714 sockstat https://reviews.freebsd.org/D32715 systat https://reviews.freebsd.org/D32720 Thanks, Mike From nobody Fri Nov 5 21:51: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 B03B71834BD5 for ; Fri, 5 Nov 2021 21:51: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 4HmDjJ4WnHz4QqW for ; Fri, 5 Nov 2021 21:51:16 +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 7C8861F674 for ; Fri, 5 Nov 2021 21:51: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 1A5LpGbp077933 for ; Fri, 5 Nov 2021 21:51:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A5LpGH2077932 for net@FreeBSD.org; Fri, 5 Nov 2021 21:51: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 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: Fri, 05 Nov 2021 21:51:16 +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: 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: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259645 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gallatin@FreeBSD.org, | |jhb@FreeBSD.org --- Comment #9 from Mark Johnston --- (In reply to Kristof Provost from comment #2) This path is somewhat tricky to fix, it seems, since we'd have to modify a = few functions to return a new mbuf, and handle out-of-memory conditions. So maybe this (WIP) approach is better instead: https://reviews.freebsd.org/D32859 --=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 Sat Nov 6 22:03: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 7BEB5184BB9A; Sat, 6 Nov 2021 22:03:24 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (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 4Hmrwq4qshz4dBS; Sat, 6 Nov 2021 22:03:23 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mail-lj1-x22e.google.com with SMTP id h11so21495808ljk.1; Sat, 06 Nov 2021 15:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=p5NUgxd4hnjmq8MIVxPeX4i4UoUKk8PiAz51DOLhFNY=; b=EwTkj9/lKLuuJ5EtmVJXoZIZ1dNNjwvtHer57wdGN5oz2hNDt49zM9XU6T8hciKlkw axIcgX1r1ghT7UTNY+oMrm4V8s7qsuRMZuX448EqZWsY8tCBRfDV/aA+IWOMgXFSBdtv s5nitP8r6HPn+nrCc2phUvwUXi3SLe9J5KToJ0UFf9S6Klt6bjMnDO7cpqPYTn5Y4cF0 gFBiHduWbEKdyv3fVPYrAwaH5zqFi9mC/nga0mgt9OvHV9QLRxlBCpoDs0JFbt6C7+tZ G40Uo8dxi2B87K+Y2rbyAQYUvJYhQ9z4hw3UQFXDcpMgdprWJHcR/gIjduNm0aidaFK3 pjqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=p5NUgxd4hnjmq8MIVxPeX4i4UoUKk8PiAz51DOLhFNY=; b=kFLIkXMVzFeVWlfXBA8KYWLly/nUulnkBPPLCYOFY1WDbCJwgmgIS9EfHFwPU4uNY3 isamnSYg3RmmPwf033GCcovvf9ENsPKL20okHjaDDd6uFKrb8Ba5qskEIIxCGEf7Y7/n buDDma2L2X/O4TBH2ouQFIxBEOZdKUQOC2tYORCuS3U4RjcuzlCE9R6BvuWG/t1BF8HO ZH9560+e1GQ1SOfTgWwVSEsSalSFZ/XmqmLbUHY/6yIRAkAAb2AIv1Nac72T79hbPmVN HcyZVnN+AApEfzvMiXy/tLKTv5FdK+iNR/LGnlRNa1Lr7S0fUZzU4wGQB6K+KmaDAoa6 mJWQ== X-Gm-Message-State: AOAM530vLQS0LKa0MkzDqjHFdPTzlVtYlxhds4QzzhA8BDs+EILRVDPy PdXFvDWhoxoZvsJINxtTBdgKVVW1jGU= X-Google-Smtp-Source: ABdhPJwbrJ7i0l3kF/o8wvNC5/dssuHzP0BzQHjXp1YbQZxyPg6H7RXzndOSOm06E30/JjWDamXlYw== X-Received: by 2002:a05:651c:98b:: with SMTP id b11mr71787346ljq.200.1636236196410; Sat, 06 Nov 2021 15:03:16 -0700 (PDT) Received: from rimwks.local ([2001:470:1f15:3d8:264b:feff:fe8d:cea8]) by smtp.gmail.com with ESMTPSA id w17sm1269821lfu.251.2021.11.06.15.03.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Nov 2021 15:03:16 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Sun, 7 Nov 2021 01:03:11 +0300 To: freebsd-net@freebsd.org, freebsd-hackers@FreeBSD.org Cc: Rozhuk.IM@gmail.com Subject: Bug in MAC filter on IGB/if_vlan? Message-ID: <20211107010311.70eceebd@rimwks.local> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) 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-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Hmrwq4qshz4dBS X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="EwTkj9/l"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rozhukim@gmail.com designates 2a00:1450:4864:20::22e as permitted sender) smtp.mailfrom=rozhukim@gmail.com X-Spamd-Result: default: False [-0.99 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.991]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22e:from]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi! I have in rc.conf: ===================================================================================== vlans_igb0="vlan77 vlan86 vlan87" create_args_vlan87="vlan 87" create_args_vlan86="vlan 86" create_args_vlan77="vlan 77" ifconfig_vlan87="inet 185.44.68.92 netmask 255.255.252.0 mtu 1500 down up" ifconfig_vlan87_alias0="link 00:aa:fa:dd:44:55" ifconfig_vlan86="DHCP mtu 1500" ifconfig_vlan86_alias0="link 00:ff:fa:dd:44:55" ifconfig_vlan77="inet 192.168.0.254 netmask 255.255.255.0" ifconfig_vlan77_alias0="link 00:0f:43:48:67:fe" ifconfig_vlan77_ipv6="inet6 2001:470:2345:555::1/64 prefixlen 64 auto_linklocal" ifconfig_igb0="-lro -tso -vlanhwtso mtu 9000 down up" ===================================================================================== There is 4 different MAC addresses. System is unavailable after boot until: ifconfig igb0 promisc down up FreeBSD 13 build from fresh sources. Is this a bug or this is normal? From nobody Sun Nov 7 01:09:06 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 C31E3183CEAD for ; Sun, 7 Nov 2021 01:09:06 +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 4Hmx364flpz4f50 for ; Sun, 7 Nov 2021 01:09:06 +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 80CD414CF5 for ; Sun, 7 Nov 2021 01:09:06 +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 1A7196Se016696 for ; Sun, 7 Nov 2021 01:09:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A719616016695 for net@FreeBSD.org; Sun, 7 Nov 2021 01:09:06 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: Sun, 07 Nov 2021 01:09:06 +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: doctor@doctor.nl2k.ab.ca 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: attachments.created 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 #10 from doctor@doctor.nl2k.ab.ca --- Created attachment 229338 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229338&action= =3Dedit Yet another crash from this morning 3rd crash since updating to 3.0 p5 --=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 Sun Nov 7 07:51:30 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 9429718452D9; Sun, 7 Nov 2021 07:51:35 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hn5zV494Zz4hcn; Sun, 7 Nov 2021 07:51:34 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mail-lj1-x233.google.com with SMTP id t11so23097024ljh.6; Sun, 07 Nov 2021 00:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=bRnv5ofeALNBcZwXgRYJWQLLIBN3ngVABUdQAdt42eQ=; b=n0N/zHrEeUyGDkN7Apr+CFyXEncGaOiLOtE84otKHV+bMcu9LBsS/Dx8MnqxCX7br2 Qf430KcbNYLuaUs1dxtX4q6ByspmvcovQFDUAennj/CJmLjxU7kDbJu2QxchBmCbc0Jm qRV0H054CmhPKvlhg74o5LTrKQdTJIMJytp343b705XyuhM5bvf4TuYTX3ld7PL99POr IrtyPAUvDZoTyy6XrZ2gTicnRIAhV2TgqGrJIyeWW8bo9IIs1ouwYVI1KdGYbofAN7SB myWpkbdhVZZzkAjjXczWb8Dj2k9F27Q3UkxG3DeXiB/dhhMPnMo2lwe3jnzE+Mn5ZDhN byOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=bRnv5ofeALNBcZwXgRYJWQLLIBN3ngVABUdQAdt42eQ=; b=QLsugcRolWHtj/PmW6b03e9TjjxizuGEECwCdIMC330YEotVBJvtllTJjHapKYzpKF jjSdNKWuRfOXsGCo3skik6ZM+/aoTAm2dEg+F0CLzWEV5fBGqRbg3VFNp/6HzacWLqxo rNf1ckp/ydPv6ajBaRKgP/8CvhNu4FBBS5DAKVdNhzoFrabtVftzJFaNmoioMC+qtBGx 9gTxDWQT2A0TTMO8jWT/HEltsV3N25MRSV6unbKijHw9Y7S4XT9zk8hIPkWDFowcozls iBXMw7BOir9sc3M+G9C6Sgq/6TvhYB4CipyhubuKUGxZmnzFbJr9kYCZ+z4rrBuhD3+q SbUA== X-Gm-Message-State: AOAM5316HOuyEj1DDm7tDRHz7YcgYCPuRKDtWitxqEouPLqwC9D1Ksxh tRe7kUfsAxHOr9EsOzsilN53TSonFxE= X-Google-Smtp-Source: ABdhPJx8D9pZLZQUvMEgMLakmof6YMSvS7+1OOYRKPe3IV+ol+ZNzt7wtBPaOoEpVYzg/Cf8gT9k3Q== X-Received: by 2002:a2e:7216:: with SMTP id n22mr16939972ljc.452.1636271492576; Sun, 07 Nov 2021 00:51:32 -0700 (PDT) Received: from rimwks.local ([2001:470:1f15:3d8:264b:feff:fe8d:cea8]) by smtp.gmail.com with ESMTPSA id b39sm1235617ljf.52.2021.11.07.00.51.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 00:51:32 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Sun, 7 Nov 2021 10:51:30 +0300 To: freebsd-net@freebsd.org, freebsd-hackers@FreeBSD.org Cc: Rozhuk Ivan Subject: if_vlan allow to set incorrect mtu Message-ID: <20211107105130.2ccbb253@rimwks.local> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) 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-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Hn5zV494Zz4hcn X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="n0N/zHrE"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rozhukim@gmail.com designates 2a00:1450:4864:20::233 as permitted sender) smtp.mailfrom=rozhukim@gmail.com X-Spamd-Result: default: False [-1.99 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.99)[-0.993]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::233:from]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi! Why if_vlan allow to set same MTU size or bigger as on parrent nic? Setup: - workstation with MTU 9000 and IPv4 on h/w nic - server with MTU 9000 on h/w nic and IPv4 on vlan nic with MTU 9000 (set by defauil on iface creation) This setup have issue: - big packets from server->wks - OK - big packets from wks->server - FAIL. Server init sequence: 1. Create vlans 2. Set MTU lower than default on parent nic Result: vlan have bigger or same MTU as parrent nic, but parrent nic reports IFCAP_VLAN_MTU. Probably this is if_em driver issue or iflib. This is rc.conf, vlan77 - where I got MTU 9000 and fail to receive packets: ===================================================================================== vlans_igb0="vlan77 vlan86 vlan87" create_args_vlan87="vlan 87" create_args_vlan86="vlan 86" create_args_vlan77="vlan 77" ifconfig_vlan87="inet 15.44.77.2 netmask 255.255.252.0 mtu 1500 down up" ifconfig_vlan87_alias0="link 00:aa:fa:dd:44:55" ifconfig_vlan86="DHCP mtu 1500" ifconfig_vlan86_alias0="link 00:ff:fa:dd:44:55" ifconfig_vlan77="inet 192.168.0.254 netmask 255.255.255.0" ifconfig_vlan77_alias0="link 00:0f:43:48:67:fe" ifconfig_vlan77_ipv6="inet6 2001:470:2345:555::1/64 prefixlen 64 auto_linklocal" ifconfig_igb0="-lro -tso -vlanhwtso mtu 9000 down up" ===================================================================================== From nobody Sun Nov 7 09:20:26 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 3EBE2183DD82 for ; Sun, 7 Nov 2021 09:20:41 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from plan-b.pwste.edu.pl (plan-b.pwste.edu.pl [IPv6:2001:678:618::40]) (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 (2048 bits) client-digest SHA256) (Client CN "plan-b.pwste.edu.pl", Issuer "GEANT OV RSA CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hn7yH6c67z3jfF for ; Sun, 7 Nov 2021 09:20:39 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from [IPV6:2001:470:71:d47:1118:2417:5873:652f] ([IPv6:2001:470:71:d47:1118:2417:5873:652f]) (authenticated bits=0) by plan-b.pwste.edu.pl (8.17.1/8.17.1) with ESMTPSA id 1A79KTVw080591 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Sun, 7 Nov 2021 10:20:30 +0100 (CET) (envelope-from zarychtam@plan-b.pwste.edu.pl) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=plan-b.pwste.edu.pl; s=plan-b-mailer; t=1636276830; bh=jDUf/oqbvBxHK29QTwUug7SAzJUFlra6r/S9seNfuiY=; h=Date:To:References:From:Subject:In-Reply-To; b=kUl4AZhidMVimifRspSOQw9zqeTBsNqtzy9EOzp6RCGs3HghXvgQFI55VLKsK+agJ g8gavaG+SwI2wtLRX9BmAPDn5F2wMSJgzj0lsG7O4gnX3adMXTVXvLtiqvg89fY2jz Xcp5GylGgsiWi2Av77dpcI23rYJvMKjGBbh6k7ym9MTE0m1pVAKkC4b7x2UZ0+IjsG a2mIFrh/wwHqZ/ms9REWvtUhACyPk6DvnGcijzBdJSHuosl0gQWjHKUdGgod/SlMhB Yjgq+h6tKTm1di5pqguGVC8v7k4gzQUsr7/qtPzNPu6w+nMpyo3m10FWvOQBWeTlYH wl2s9ep890OKw== Message-ID: Date: Sun, 7 Nov 2021 10:20:26 +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.2.1 Content-Language: en-US To: freebsd-net@freebsd.org References: <20211107105130.2ccbb253@rimwks.local> From: Marek Zarychta Subject: Re: if_vlan allow to set incorrect mtu In-Reply-To: <20211107105130.2ccbb253@rimwks.local> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------0bGZK7rl1YjzPmT36u7Ep6nX" X-Rspamd-Queue-Id: 4Hn7yH6c67z3jfF X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=plan-b.pwste.edu.pl header.s=plan-b-mailer header.b=kUl4AZhi; dmarc=pass (policy=none) header.from=plan-b.pwste.edu.pl; spf=none (mx1.freebsd.org: domain of zarychtam@plan-b.pwste.edu.pl has no SPF policy when checking 2001:678:618::40) smtp.mailfrom=zarychtam@plan-b.pwste.edu.pl X-Spamd-Result: default: False [0.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[plan-b.pwste.edu.pl:s=plan-b-mailer]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(1.00)[0.998]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; HAS_ATTACHMENT(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; DKIM_TRACE(0.00)[plan-b.pwste.edu.pl:+]; MIME_BASE64_TEXT(0.10)[]; DMARC_POLICY_ALLOW(-0.50)[plan-b.pwste.edu.pl,none]; NEURAL_SPAM_LONG(1.00)[1.000]; SIGNED_PGP(-2.00)[]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; ASN(0.00)[asn:206006, ipnet:2001:678:618::/48, country:PL]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------0bGZK7rl1YjzPmT36u7Ep6nX Content-Type: multipart/mixed; boundary="------------CLWiInFblR8YPYP7rFCQfXiN"; protected-headers="v1" From: Marek Zarychta To: freebsd-net@freebsd.org Message-ID: Subject: Re: if_vlan allow to set incorrect mtu References: <20211107105130.2ccbb253@rimwks.local> In-Reply-To: <20211107105130.2ccbb253@rimwks.local> --------------CLWiInFblR8YPYP7rFCQfXiN Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 VyBkbml1IDcuMTEuMjAyMSBvwqAwODo1MSwgUm96aHVrIEl2YW4gcGlzemU6DQo+IEhpIQ0K PiANCj4gDQo+IFdoeSBpZl92bGFuIGFsbG93IHRvIHNldCBzYW1lIE1UVSBzaXplIG9yIGJp Z2dlciBhcyBvbiBwYXJyZW50IG5pYz8NCj4gDQo+IA0KPiBTZXR1cDoNCj4gLSB3b3Jrc3Rh dGlvbiB3aXRoIE1UVSA5MDAwIGFuZCBJUHY0IG9uIGgvdyBuaWMNCj4gLSBzZXJ2ZXIgd2l0 aCBNVFUgOTAwMCBvbiBoL3cgbmljIGFuZCBJUHY0IG9uIHZsYW4gbmljIHdpdGggTVRVIDkw MDAgKHNldCBieSBkZWZhdWlsIG9uIGlmYWNlIGNyZWF0aW9uKQ0KPiANCj4gVGhpcyBzZXR1 cCBoYXZlIGlzc3VlOg0KPiAtIGJpZyBwYWNrZXRzIGZyb20gc2VydmVyLT53a3MgLSBPSw0K PiAtIGJpZyBwYWNrZXRzIGZyb20gd2tzLT5zZXJ2ZXIgLSBGQUlMLg0KPiANCj4gU2VydmVy IGluaXQgc2VxdWVuY2U6DQo+IDEuIENyZWF0ZSB2bGFucw0KPiAyLiBTZXQgTVRVIGxvd2Vy IHRoYW4gZGVmYXVsdCBvbiBwYXJlbnQgbmljDQo+IA0KPiBSZXN1bHQ6IHZsYW4gaGF2ZSBi aWdnZXIgb3Igc2FtZSBNVFUgYXMgcGFycmVudCBuaWMsIGJ1dCBwYXJyZW50IG5pYyByZXBv cnRzIElGQ0FQX1ZMQU5fTVRVLg0KPiBQcm9iYWJseSB0aGlzIGlzIGlmX2VtIGRyaXZlciBp c3N1ZSBvciBpZmxpYi4NCj4gDQo+IA0KPiANCj4gVGhpcyBpcyByYy5jb25mLCB2bGFuNzcg LSB3aGVyZSBJIGdvdCBNVFUgOTAwMCBhbmQgZmFpbCB0byByZWNlaXZlIHBhY2tldHM6DQo+ ID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCj4gdmxhbnNfaWdiMD0idmxhbjc3 IHZsYW44NiB2bGFuODciDQo+IGNyZWF0ZV9hcmdzX3ZsYW44Nz0idmxhbiA4NyINCj4gY3Jl YXRlX2FyZ3Nfdmxhbjg2PSJ2bGFuIDg2Ig0KPiBjcmVhdGVfYXJnc192bGFuNzc9InZsYW4g NzciDQo+IGlmY29uZmlnX3ZsYW44Nz0iaW5ldCAxNS40NC43Ny4yIG5ldG1hc2sgMjU1LjI1 NS4yNTIuMCBtdHUgMTUwMCBkb3duIHVwIg0KPiBpZmNvbmZpZ192bGFuODdfYWxpYXMwPSJs aW5rIDAwOmFhOmZhOmRkOjQ0OjU1Ig0KPiBpZmNvbmZpZ192bGFuODY9IkRIQ1AgbXR1IDE1 MDAiDQo+IGlmY29uZmlnX3ZsYW44Nl9hbGlhczA9ImxpbmsgMDA6ZmY6ZmE6ZGQ6NDQ6NTUi DQo+IGlmY29uZmlnX3ZsYW43Nz0iaW5ldCAxOTIuMTY4LjAuMjU0IG5ldG1hc2sgMjU1LjI1 NS4yNTUuMCINCj4gaWZjb25maWdfdmxhbjc3X2FsaWFzMD0ibGluayAwMDowZjo0Mzo0ODo2 NzpmZSINCj4gaWZjb25maWdfdmxhbjc3X2lwdjY9ImluZXQ2IDIwMDE6NDcwOjIzNDU6NTU1 OjoxLzY0IHByZWZpeGxlbiA2NCBhdXRvX2xpbmtsb2NhbCINCj4gaWZjb25maWdfaWdiMD0i LWxybyAtdHNvIC12bGFuaHd0c28gbXR1IDkwMDAgZG93biB1cCINCj4gPT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PQ0KPiANCj4gDQo+IA0KDQpZZXMsIEkgY2FuIGNvbmZpcm0g dGhpcyBmb3IgdGhlIG1vc3QgcmVjZW50IDEzLjAtU1RBQkxFIGFuZCBsYWNwIGxhZ2coNCkg DQpvdmVyIGlnYig0KS4gVGhlIGlzc3VlIGlzIHBlcnNpc3RlbnQgc2luY2UgdXBncmFkZSB0 byAxMy4wLUJFVEEuIA0KMXsxLDJ9LVNUQUJMRSB3ZXJlIHVuYWZmZWN0ZWQuIFRvIHdvcmth cm91bmQgdGhpcyBJIHNldCBNVFUgODk5NiBvbiANCnZsYW4oNCkgY2hpbGQgaW50ZXJmYWNl cy4gSSBoYXZlIG5vdCByZXBvcnRlZCB0aGlzIHNpbmNlIHNvIGZhciAtIG5vIG9uZSANCndh cyBhYmxlIHRvIGNvbmZpcm0sIHNvIEkgc3VzcGVjdGVkIGJyb2tlbiBoYXJkd2FyZSBvciBp bmNvbXBhdGlibGUgDQpzd2l0Y2ggZmlybXdhcmUuDQoNCi0tIA0KTWFyZWsgWmFyeWNodGEN Cg== --------------CLWiInFblR8YPYP7rFCQfXiN-- --------------0bGZK7rl1YjzPmT36u7Ep6nX Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEnjwyTmqn2oNX6C8qHZW8vIFppoIFAmGHmloFAwAAAAAACgkQHZW8vIFppoIm Swf+PAY28976bakv2bLeVlSHXKUNCipBfuDznXS/wQT9PsyxXP+L1GIsCZIOfIJwzpNyYsD8E4Ow 8Kw8qbgdhzA+WJHch5zJfGavPVOKodIIFHt96aZLfG3qtXVkL/r0EMyxWflkSSQRadWrON6Dtv6S RlC282oMh+YLwAmdqelbEVdJukQcaYSG7jztoVFdAwXf10zqOpKk57BzMZ45ZFqjAZtYWcx8BvTg BZVBHyjEhN/aGC/Hoe2ujZfDDgSkvUMCVVyytZcMYiIPclzWLA6NnVdI7Gjn1bkJHxjva2JE3mmb RHRanD7776Npqzv5XsXfx93RE+EGIZoirlTpkwWj8w== =1Oi0 -----END PGP SIGNATURE----- --------------0bGZK7rl1YjzPmT36u7Ep6nX-- From nobody Sun Nov 7 17:22:17 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 CAE361838F4E for ; Sun, 7 Nov 2021 17:22: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 4HnLf15FZgz4m79 for ; Sun, 7 Nov 2021 17:22: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 9437322396 for ; Sun, 7 Nov 2021 17:22:17 +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 1A7HMHv4071806 for ; Sun, 7 Nov 2021 17:22:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A7HMHb9071805 for net@FreeBSD.org; Sun, 7 Nov 2021 17:22:17 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: Sun, 07 Nov 2021 17:22:17 +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: doctor@doctor.nl2k.ab.ca 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 #11 from doctor@doctor.nl2k.ab.ca --- This is getting ridiculous. I am getting crashes rather regulary. Should I turn pf until this is fixed? --=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 Sun Nov 7 20:17:54 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 E440818485C0 for ; Sun, 7 Nov 2021 20:17:54 +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 4HnQXf5vd0z4lgL for ; Sun, 7 Nov 2021 20:17:54 +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 AC4F3246C0 for ; Sun, 7 Nov 2021 20:17:54 +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 1A7KHs4Q071632 for ; Sun, 7 Nov 2021 20:17:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A7KHseg071631 for net@FreeBSD.org; Sun, 7 Nov 2021 20:17:54 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: Sun, 07 Nov 2021 20:17:54 +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: 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 #12 from Mark Johnston --- (In reply to doctor from comment #11) Could you please instead try setting # sysctl kern.ipc.mb_use_ext_pgs=3D0 and confirm whether or not the panics go away? I am working on a proper solution in the meantime. --=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 Sun Nov 7 21:00:36 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 8568F1840596 for ; Sun, 7 Nov 2021 21:00:42 +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 4HnRV14bXVz51P8 for ; Sun, 7 Nov 2021 21:00:41 +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 D3DCC24D79 for ; Sun, 7 Nov 2021 21:00:36 +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 1A7L0a2J094940 for ; Sun, 7 Nov 2021 21:00:36 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A7L0aAG094939 for net@FreeBSD.org; Sun, 7 Nov 2021 21:00:36 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202111072100.1A7L0aAG094939@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, 7 Nov 2021 21:00:36 +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="16363188368.b0ae5a172.93418" Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: Y --16363188368.b0ae5a172.93418 Date: Sun, 7 Nov 2021 21:00:36 +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. --16363188368.b0ae5a172.93418--