Page MenuHomeFreeBSD

Improve checksum computation via IPV6_CHECKSUM for received packets
ClosedPublic

Authored by tuexen on Apr 19 2019, 4:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 25, 11:15 PM
Unknown Object (File)
Sun, May 11, 7:14 AM
Unknown Object (File)
Mon, May 5, 12:21 PM
Unknown Object (File)
Apr 16 2025, 9:03 PM
Unknown Object (File)
Apr 14 2025, 9:13 AM
Unknown Object (File)
Mar 10 2025, 11:12 AM
Unknown Object (File)
Mar 6 2025, 2:20 PM
Unknown Object (File)
Mar 6 2025, 1:15 PM
Subscribers

Details

Summary

When computing the checksum for a received packet, ensure that you have enough bytes in the packet such that it contains the checksum. This fixes in particular syzbot, which was injecting an empty (plen = 0) packet, which resulted in a panic.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Again can you please mention "... in rip6_input() ..." in the commit message.

This revision is now accepted and ready to land.Apr 19 2019, 5:06 PM
This revision was automatically updated to reflect the committed changes.