Page MenuHomeFreeBSD

LinuxKPI: fix sg_pcopy_from_buffer()
ClosedPublic

Authored by bz on Jun 7 2021, 3:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 18, 2:48 AM
Unknown Object (File)
Sat, Jan 11, 3:42 AM
Unknown Object (File)
Dec 4 2024, 8:07 PM
Unknown Object (File)
Dec 4 2024, 8:07 PM
Unknown Object (File)
Dec 4 2024, 8:07 PM
Unknown Object (File)
Dec 4 2024, 7:46 PM
Unknown Object (File)
Nov 28 2024, 9:52 PM
Unknown Object (File)
Nov 17 2024, 10:05 AM
Subscribers

Details

Summary

In sg_pcopy_from_buffer() is an error in that skip can underflow
and lead to bogus page arithmetics which may lead to memory corruption
or more likely panics. Once we found a s/g page to copy into there
is nothing to skip anymore so simply set skip to 0.

Sponsored by: The FreeBSD Foundation
MFC after: 5 days

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39770
Build 36659: arc lint + arc unit