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 43a58daffe7256f0948ce895fed9fae55dec98fc)

Details

Provenance
dchaginAuthored on Jun 10 2021, 11:23 AM
markjCommitted on Jun 29 2021, 8:01 PM
Parents
rGee56c5900ae3: libcasper: fix descriptors numbers
Branches
Unknown
Tags
Unknown