Page MenuHomeFreeBSD

bhyve: validate the NVMe LBA start and count
ClosedPublic

Authored by chuck on May 18 2020, 6:30 PM.
Tags
None
Referenced Files
F81669734: D24895.id.diff
Fri, Apr 19, 5:22 PM
Unknown Object (File)
Fri, Mar 29, 2:13 PM
Unknown Object (File)
Fri, Mar 29, 7:51 AM
Unknown Object (File)
Jan 12 2024, 6:38 PM
Unknown Object (File)
Dec 23 2023, 5:23 AM
Unknown Object (File)
Sep 1 2023, 12:27 PM
Unknown Object (File)
Sep 1 2023, 12:26 PM
Unknown Object (File)
Sep 1 2023, 12:23 PM
Subscribers

Details

Summary

Add checks that the combination of Starting LBA and Number of Logical
Blocks in a command will not exceed the range of the underlying storage.

Note that because NVMe specifices the Starting LBA as a uint64_t, care
must be taken when converting it and the block count to avoid an integer
overflow.

Fixes UNH Tests 2.2.3, 2.3.2, and 2.4.2

Test Plan

Run UNH IOL INTERACT tests

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 31157

Event Timeline

chuck requested review of this revision.May 18 2020, 6:30 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jun 29 2020, 12:32 AM
This revision was automatically updated to reflect the committed changes.