This is part of the series started by D68484.
Besides learning about propagating the ptr_provenance path, I also marked places
where it could be interesting to do, but where it might not always be safe to do.
Note: this is a stable point and tests should run fine with the patches applied up to this point.