Page MenuHomeFreeBSD

Handle read-only mbufs in ether pad function
ClosedPublic

Authored by shurd on Dec 7 2017, 7:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 29, 12:05 PM
Unknown Object (File)
Wed, Apr 29, 12:02 PM
Unknown Object (File)
Fri, Apr 24, 1:25 PM
Unknown Object (File)
Sun, Apr 19, 5:16 PM
Unknown Object (File)
Fri, Apr 17, 10:06 PM
Unknown Object (File)
Wed, Apr 15, 9:24 AM
Unknown Object (File)
Apr 13 2026, 10:26 PM
Unknown Object (File)
Apr 13 2026, 9:15 AM
Subscribers

Details

Summary

If ethernet padding is enabled, and a read-only mbuf is passed,
it would modify the mbuf using m_append(). Instead, call m_dup() and
append to the new packet.

Test Plan

Validate with A0 hardware and patches discussed in D13269 and D13324.

Diff Detail

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