HomeFreeBSD

dosfs support in libstand is broken since r298230

Description

dosfs support in libstand is broken since r298230

Apparently the libstand dosfs optimization is a bit too optimistic
and did introduce possible memory corruption.

This patch is backing out the bad part and since this results in
dosfs reading full blocks now, we can also remove extra offset argument
from dv_strategy callback.

The analysis of the issue and the backout patch is provided by Mikhail Kupchik.

PR: 214423
Submitted by: Mikhail Kupchik
Reported by: Mikhail Kupchik
Reviewed by: bapt, allanjude
Approved by: allanjude (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D8644

Details

Provenance
tsoomeAuthored on
Reviewer
bapt
Differential Revision
D8644: loader: dosfs can corrupt memory
Parents
rS310849: Fix two similar bugs in the populate vm_fault() code.
Branches
Unknown
Tags
Unknown