HomeFreeBSD

busdma: Protect ARM busdma bounce page counters using the bounce page lock.

Description

busdma: Protect ARM busdma bounce page counters using the bounce page lock.

In bus_dmamap_unload() on ARM, the counters for free_bpages and reserved_bpages
appear to be vulnerable to unprotected read-modify-write operations that result
in accounting that looks like a page leak.

This was noticed on a 2GB quad core i.MX6 system that has more than one device
attached via FTDI based USB serial connection.

Submitted by: John Hein <jcfyecrayz@liamekaens.com>
Differential Revision: https://reviews.freebsd.org/D35553
PR: 264836
MFC after: 3 days
Sponsored by: NVIDIA Networking

Details

Provenance
hselaskyAuthored on Jun 23 2022, 9:31 AM
Differential Revision
D35553: protect arm busdma bounce page counters with bounce page lock
Parents
rG61c74fb66f1b: rb_tree: optimize tree rotation
Branches
Unknown
Tags
Unknown