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)
Feb 11 2024, 4:51 AM
Unknown Object (File)
Dec 20 2023, 2:52 AM
Unknown Object (File)
Dec 7 2023, 3:03 AM
Unknown Object (File)
Oct 28 2023, 1:05 AM
Unknown Object (File)
Oct 27 2023, 3:09 AM
Unknown Object (File)
Sep 18 2023, 8:59 AM
Unknown Object (File)
Jul 29 2023, 5:00 PM
Unknown Object (File)
Jul 9 2023, 11:57 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 23768

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.