Skip to contentSkip to conversation

New: ip_compute_csum computes illegal zero checksum, should return ffff in such a case

Bug 215674 Stephen Hemminger 1 participant 1 message Mar 11, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

There are not of uses of ip_compute_csum.

Begin forwarded message:

Date: Fri, 11 Mar 2022 11:47:49 +0000
From: [email protected]
To: [email protected]
Subject: [Bug 215674] New: ip_compute_csum computes illegal zero checksum, should return ffff in such a case

https://bugzilla.kernel.org/show_bug.cgi?id=215674

            Bug ID: 215674
           Summary: ip_compute_csum computes illegal zero checksum, should
                    return ffff in such a case
           Product: Networking
           Version: 2.5
    Kernel Version: 4.14.268
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

A 0 checksum indicates the checksum is to not be validated, and an 0xffff checksum indicates a zero result.

If the sum is computed to be 0, it should be substituted for 0xffff, to indicate the actual zero checksum.

This bug went unnoticed for a long time, because in 2^-16 of computed checksums, the incorrect result merely foregoes checksum validation, which is likely to not trigger any noticeable errors.

Signature · 4 lines
You may reply to this email to add a comment.

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