[Bug 295667] stand/libsa: IP fragment reassembly broken

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 28 May 2026 14:30:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295667

            Bug ID: 295667
           Summary: stand/libsa: IP fragment reassembly broken
           Product: Base System
           Version: 14.4-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: cejkar@fit.vutbr.cz

Created attachment 271293
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=271293&action=edit
stand/libsa/ip.c diff

There is a problem with IP fragment reassembly in stand/libsa/ip.c in
ip_reasm_add(). Packets received in order are incorrectly inserted at the head
of the list instead of the end. Patch shows mainly what is the problem and how
to fix it, but I think that it would be better to rewrite the entire loop.

I found this while trying to increase nfs.read_size over 1344 bytes in
loader.conf, when loader.efi loads kernel during PXE boot.

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