| Summary: | [Hyper-V]FreeBSD potential NULL pointer dereference in storage bounce buffer | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Hongjiang <honzhan> | ||||
| Component: | kern | Assignee: | freebsd-virtualization (Nobody) <virtualization> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Many People | CC: | gonzo, kyliel, royger, virtualization | ||||
| Priority: | --- | Keywords: | patch | ||||
| Version: | 10.2-STABLE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Hongjiang
2016-01-28 01:33:25 UTC
I've already told Wei that creating your own bounce buffer is a bad idea. Instead you should use the BUSDMA API and let it take care of the bouncing when necessary: https://reviews.freebsd.org/D1964 IIRC something was missing in BUSDMA so that the HyperV storage driver could use it, we should look into adding what's needed and then removing this custom bounce buffering. Please upload the patch to the review system. Roger. Yes, the final fix should be using BUSDMA. Temporarily we still used the customized bounce buffer. The code review for this patch: https://reviews.freebsd.org/D5097 Patch committed as base r295295 |