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
F158897126: D19968.id56387.diff
Sun, Jun 7, 11:28 AM
F158897124: D19968.id56387.diff
Sun, Jun 7, 11:28 AM
F158896745: D19968.id56387.diff
Sun, Jun 7, 11:22 AM
F158834212: D19968.id56387.diff
Sat, Jun 6, 2:26 PM
F158834029: D19968.id56387.diff
Sat, Jun 6, 2:22 PM
Unknown Object (File)
Fri, Jun 5, 7:16 PM
Unknown Object (File)
Fri, Jun 5, 7:12 PM
Unknown Object (File)
Wed, Jun 3, 10:16 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.