OpenBSD cvs log

created 2022-10-05T09:47:12Z
begin 2022-09-28T00:00:00Z
end 2022-09-29T00:00:00Z
path src/sys
commits 1

date 2022-09-28T13:21:13Z
author mbuhl
files src/sys/kern/sysv_sem.c log diff annotate
message Fix memory corruptions with sysv semaphores due to sleeps in copyin,
copyout and malloc. During a sleep another thread could delete the
semaphore (and possibly allocate another one at the same location
with different permissions) which would lead to an invalid access
after wake up. Therefore check the semaphore pointer, the sequence,
the permissions and some values in seminfo after each sleep.
OK bluhm@
Reported-by: [email protected]