Skip to content

Commit

Permalink
ata: Security fixes, improved API, refactoring
Browse files Browse the repository at this point in the history
- Change public API to be simpler, and similar to NVMe
- Remove secondary drives from API, they aren't going to be supported
- Fix ATA_REG_DATA buffer size checking resulting in heap corruptions under LLVM Fuzzer
- Put the device under lock, LLVM Fuzzer reliably abused it by resetting & operating ATA at the same time
- Limit PRDT size to 65536 to prevent malicious guests from hanging the IO thread in an infinite loop
- Fix misaligned reads in ata_process_prdt() found by UBSAN
- General refactoring, fix PVS warnings
  • Loading branch information
LekKit committed Dec 4, 2022
1 parent 4041c0b commit 43aeba3
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 194 deletions.

0 comments on commit 43aeba3

Please sign in to comment.