| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
scsi: add LBA boundary check for all read/write commands Previously only READ_10/WRITE_10 had LBA boundary validation in ScsiRequest::new(), leaving READ_6/12/16, WRITE_6/12/16, and WRITE_VERIFY_10/12/16 vulnerable to out-of-bounds access. Extend the check to cover all NON_EMULATE_SCSI_OPS (except SYNCHRONIZE_CACHE which doesn't use LBA-based addressing) and extract it into ScsiCommand::check_lba_invalid() for clarity. Fixes: 88c2490f ("scsi-bus: check read/write buffer size to avoid out of range") Signed-off-by: liuxiangdong <liuxiangdong5@huawei.com> (cherry picked from commit 6b2c38cc1dfe9f27b831bc3f35215eb63c627bf2) | 5 天前 | |
devices: unified device realize function Move realize function to Device trait to unify realize function: 1. Each device has its own realize logic. Signed-off-by: liuxiangdong <liuxiangdong5@huawei.com> | 1 年前 | |
scsi: move scsi common logic to devices/ directory We have separated virtio-scsi-pci from scsi general logic. Move scsi common logic to devices/ directory for other devices which will use scsi command. Signed-off-by: liuxiangdong <liuxiangdong5@huawei.com> | 3 年前 |