-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DAOS-16458 object: bitmap for EC skipped iods may be overflow
Unify the type of bitmap for EC skipped iods as "uint64_t" instead of originaly using "uint8_t *" as input parameter but assuming the allocated space is "uint64_t" and converting pointer case by case. In the old implementation, some caller of obj_get_iods_offs() such as CPD RPC handler, may allocate "uint8_t" and use it as "skips" parameter. That may cause overflow and overwrite other's "skips" bitmap, as to the subsequent user, such as obj_bulk_transfer() may be misguided by related wrong bitmap and access some invalid DRAM (such as out of boundary of the remote_bulks). It also fixes a bug inside obj_bulk_transfer() that force cast any input RPC as UPDATE/FETCH. Signed-off-by: Fan Yong <[email protected]>
- Loading branch information
Showing
3 changed files
with
49 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters