Skip to content

Commit

Permalink
purecap-kernel: Use vm_pointer_t for shm_mmap
Browse files Browse the repository at this point in the history
  • Loading branch information
qwattash committed Jan 27, 2021
1 parent c24c44e commit a713983
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sys/kern/uipc_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ shm_mmap_large(struct shmfd *shmfd, vm_map_t map, vm_pointer_t *addr,
}

int
shm_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr,
shm_mmap(struct file *fp, vm_map_t map, vm_pointer_t *addr,
vm_offset_t max_addr, vm_size_t objsize,
vm_prot_t prot, vm_prot_t cap_maxprot, int flags,
vm_ooffset_t foff, struct thread *td)
Expand Down Expand Up @@ -1728,7 +1728,8 @@ int
shm_map(struct file *fp, size_t size, off_t offset, void **memp)
{
struct shmfd *shmfd;
vm_offset_t kva, ofs;
vm_pointer_t kva;
vm_offset_t ofs;
vm_object_t obj;
int rv;

Expand Down Expand Up @@ -2025,10 +2026,13 @@ sys_shm_open2(struct thread *td, struct shm_open2_args *uap)
}
// CHERI CHANGES START
// {
// "updated": 20191022,
// "updated": 20200706,
// "target_type": "kernel",
// "changes": [
// "user_capabilities"
// ],
// "changes_purecap": [
// "pointer_as_integer"
// ]
// }
// CHERI CHANGES END

0 comments on commit a713983

Please sign in to comment.