Page MenuHomeFreeBSD

sysv_sem: fix the loop that compacts sem array on semaphores removal.
ClosedPublic

Authored by kib on Feb 15 2020, 11:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 11, 8:35 AM
Unknown Object (File)
Tue, Feb 25, 1:09 AM
Unknown Object (File)
Dec 11 2024, 5:27 PM
Unknown Object (File)
Nov 10 2024, 2:22 PM
Unknown Object (File)
Oct 5 2024, 9:05 PM
Unknown Object (File)
Oct 1 2024, 6:34 PM
Unknown Object (File)
Sep 18 2024, 12:54 PM
Unknown Object (File)
Sep 5 2024, 4:45 AM
Subscribers

Details

Summary

As written now, it copies random kernel memory from beyond the bounds of the array.

While there, use designated initialisers for seminfo, and add assert in sem_remove() that sema is sane. [These will be separate commits].

Reported and tested by: pho

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable