summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorstefan <stefan@openbsd.org>2016-07-09 17:13:05 +0000
committerstefan <stefan@openbsd.org>2016-07-09 17:13:05 +0000
commit4ca6b4a313a964b84e78dbcca59a65adae0757a1 (patch)
tree4ac68e5830726e962972253754ca548562f7bff4 /sys/kern/tty.c
parentInitialize the mii_oui field such that fec(4) can look at it. (diff)
downloadwireguard-openbsd-4ca6b4a313a964b84e78dbcca59a65adae0757a1.tar.xz
wireguard-openbsd-4ca6b4a313a964b84e78dbcca59a65adae0757a1.zip
Fix bugs introduced with the amap rework
- The number of slots must be initialized in the chunk of a small amap, otherwise unmapping() part of a mmap()'d range would delay freeing of vm_anons for small amaps - If the first chunk of a bucket is freed, check if the next chunk in the list has to become the new first chunk - Use a separate loop for each type of traversal (small amap, by bucket by list) in amap_wiperange(). This makes the code easier to follow and also fixes a bug where too many chunks were wiped out when traversing by list However, the last two bugs should happen only when turning a previously private mapping into a shared one, then forking, and then having both processes unmap a part of the mapping. snap and ports build tested by krw@, review by kettenis@
Diffstat (limited to 'sys/kern/tty.c')
0 files changed, 0 insertions, 0 deletions