Page MenuHomeFreeBSD

LinuxKPI: fix sg_pcopy_from_buffer()
AcceptedPublic

Authored by bz on Mon, Jun 7, 3:16 PM.

Details

Reviewers
hselasky
Group Reviewers
linuxkpi
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 OK
Unit
No Unit Test Coverage
Build Status
Buildable 39770
Build 36659: arc lint + arc unit