[Bug 264257] [tcp] Panic: Fatal trap 12: page fault while in kernel mode (if_io_tqg_4) - m_copydata ... at /usr/src/sys/kern/uipc_mbuf.c:659

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 18 Sep 2022 13:14:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264257

--- Comment #88 from Dobri Dobrev <ddobrev85@gmail.com> ---
Comment on attachment 236664
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=236664
Fix offset computation

The patch doesn't match with tcp_output.c in 13-stable.

        } else {
            len = ((int32_t)ulmin(cwin,
                SEQ_SUB(p->end, p->rxmit)));
        }
        off = SEQ_SUB(p->rxmit, tp->snd_una);
        KASSERT(off >= 0,("%s: sack block to the left of una : %d",
            __func__, off));
        if (len > 0) {
            sack_rxmit = 1;
            sendalot = 1;
            TCPSTAT_INC(tcps_sack_rexmits);
            TCPSTAT_ADD(tcps_sack_rexmit_bytes,
                min(len, tcp_maxseg(tp)));
        }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.