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)
Dec 23 2023, 12:39 AM
Unknown Object (File)
Dec 12 2023, 5:37 PM
Unknown Object (File)
Dec 12 2023, 7:10 AM
Unknown Object (File)
Nov 30 2023, 7:06 AM
Unknown Object (File)
Nov 10 2023, 8:27 AM
Unknown Object (File)
Nov 10 2023, 8:19 AM
Unknown Object (File)
Nov 7 2023, 7:34 AM
Unknown Object (File)
Nov 6 2023, 7:16 PM
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