Page MenuHomeFreeBSD

very large dma mappings can cause integer overflow
ClosedPublic

Authored by tychon on Jun 3 2019, 5:10 PM.

Details

Summary

Some integer overflow issues can occur with (very) large DMA mappings. In dmar_bus_dmamap_load_phys() this causes the miscomputation of a physical address. In _bus_dmamap_addseg() it causes a segment to appear truncated.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

tychon created this revision.Jun 3 2019, 5:10 PM
kib accepted this revision.Jun 3 2019, 5:57 PM
This revision is now accepted and ready to land.Jun 3 2019, 5:57 PM
This revision was automatically updated to reflect the committed changes.