Page MenuHomeFreeBSD

very large dma mappings can cause integer overflow
ClosedPublic

Authored by tychon on Jun 3 2019, 5:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 25, 12:38 AM
Unknown Object (File)
Mon, Jan 20, 6:36 PM
Unknown Object (File)
Wed, Jan 15, 9:39 AM
Unknown Object (File)
Wed, Jan 1, 9:19 PM
Unknown Object (File)
Tue, Dec 31, 7:47 AM
Unknown Object (File)
Dec 7 2024, 12:39 PM
Unknown Object (File)
Nov 25 2024, 12:51 PM
Unknown Object (File)
Oct 27 2024, 9:41 PM
Subscribers

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

Lint
Lint Skipped
Unit
Tests Skipped