Page MenuHomeFreeBSD

physio: Don't store user addresses in bio_data
ClosedPublic

Authored by brooks on Oct 14 2020, 10:01 PM.
Tags
None
Referenced Files
F132453691: D26783.id.diff
Fri, Oct 17, 1:55 AM
F132453671: D26783.id78235.diff
Fri, Oct 17, 1:55 AM
F132453668: D26783.id78268.diff
Fri, Oct 17, 1:55 AM
F132409358: D26783.diff
Thu, Oct 16, 4:55 PM
Unknown Object (File)
Wed, Sep 24, 2:20 PM
Unknown Object (File)
Thu, Sep 18, 4:18 AM
Unknown Object (File)
Aug 15 2025, 3:06 AM
Unknown Object (File)
Jun 23 2025, 11:51 PM
Subscribers
None

Details

Summary

Only assign the address from the iovec to bio_data if it is a kernel
address. This is the single place where bio_data stored (however briefly)
a userspace pointer.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

brooks created this revision.

I needed this change in CheriBSD because we can't store user pointers in bio_data due to a type mismatch and we need to pass the pointer (rather than an address) to vm_fault_quick_hold_pages.

This revision is now accepted and ready to land.Oct 14 2020, 11:37 PM
This revision was automatically updated to reflect the committed changes.