HomeFreeBSD

MFC 234501:
rS236318Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

MFC 234501:
The amr(4) firmware contains a rather dubious "feature" where it
assumes for small buffers (< 64k) that the OS driver is actually using
a buffer rounded up to the next power of 2. It also assumes that the
buffer is at least 4k in size. Furthermore, there is at least one
known instance of megarc sending a request with a 12k buffer where the
firmware writes out a 24k-ish reply.

To workaround the data corruption triggered by this "feature", ensure
that buffers for user commands use a minimum size of 32k, and that
buffers between 32k and 64k use a 64k buffer.

Details

Provenance
jhbAuthored on
Parents
rS236317: Add a rangelock implementation, intended to be used to range-locking
Branches
Unknown
Tags
Unknown

Event Timeline