Fix core file writing when a file map into memory has later been truncated
authorkurt <kurt@openbsd.org>
Wed, 17 Jan 2024 22:22:25 +0000 (22:22 +0000)
committerkurt <kurt@openbsd.org>
Wed, 17 Jan 2024 22:22:25 +0000 (22:22 +0000)
commite7a40e26f00ddfe6d952478f6c86a040ecf230b2
treeeb2a76578eddc05bbda84b747c6aa2bdbb4a3e16
parent3f6663fc831f9fc3ec3712ab7b186572384297ad
Fix core file writing when a file map into memory has later been truncated
to be smaller than the mapping. Record which memory segments are backed by
vnodes while walking the uvm map and later suppress EFAULT errors caused
by the underlying file being truncated. okay miod@
sys/kern/exec_elf.c
sys/kern/kern_sig.c
sys/sys/core.h
sys/sys/exec_elf.h
sys/uvm/uvm_extern.h
sys/uvm/uvm_unix.c