]> xenbits.xensource.com Git - people/julieng/freebsd.git/commit
arm/trap: Correctly update ftype from write access caused by a data abort
authorJulien Grall <julien.grall@linaro.org>
Fri, 6 Jun 2014 19:55:29 +0000 (20:55 +0100)
committerJulien Grall <julien.grall@linaro.org>
Sun, 12 Apr 2015 11:08:11 +0000 (12:08 +0100)
commita216b6afb9367d1d5f331845836f4f7848f8ed7c
tree99c56ceb94417b44650dbd6431c7c56384b19451
parente225fa6a2c6cf92fdd193ff4d6070908e297db90
arm/trap: Correctly update ftype from write access caused by a data abort

It's possible to mmap with only PROT_WRITE. This will result to a segfault
because the protection doesn't match the ftype.

See vm/vm_map.c vm_map_lookup
sys/arm/arm/trap.c