HomeFreeBSD

linux(4): Prevent integer overflow in futex_requeue.

Description

linux(4): Prevent integer overflow in futex_requeue.

To prevent a signed integer overflow in futex_requeue add a sanity check
to catch negative values of nrwake or nrrequeue.

Approved by: so
Security: EN-21:22.linux_futex

(cherry picked from commit 25b09d6f398ea8a260ee8e2e8209fd76c61e13ee)
(cherry picked from commit f80ee27f447abc7baeb413cc0a7b7c21f9d32f8b)

Details

Provenance
dchaginAuthored on Jun 10 2021, 11:23 AM
markjCommitted on Jun 29 2021, 7:59 PM
Parents
rGcf827dced101: libcasper: add missing unistd.h
Branches
Unknown
Tags
Unknown