]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r366911:
authorBrooks Davis <brooks@FreeBSD.org>
Thu, 29 Oct 2020 18:29:22 +0000 (18:29 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Thu, 29 Oct 2020 18:29:22 +0000 (18:29 +0000)
commit11e200402fbcd99936321ac6a031607a063b5360
tree2ea193252183ccbd7928d9880d1d1ed5fa4846c3
parentd0880b36497d4b167af414953d4351e481ba99b3
MFC r366911:

vmapbuf: don't smuggle address or length in buf

Instead, add arguments to vmapbuf.  Since this argument is
always a pointer use a type of void * and cast to vm_offset_t in
vmapbuf.  (In CheriBSD we've altered vm_fault_quick_hold_pages to
take a pointer and check its bounds.)

In no other situtation does b_data contain a user pointer and vmapbuf
replaces b_data with the actual mapping.

Suggested by: jhb
Reviewed by: imp, jhb
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D26784
sys/cam/cam_periph.c
sys/dev/nvme/nvme_ctrlr.c
sys/kern/vfs_bio.c
sys/sys/buf.h
sys/ufs/ffs/ffs_rawread.c