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 7a37d13b6cfa5235c88678f96ede6bfca74b28e8)

Details

Provenance
dchaginAuthored on Jun 10 2021, 11:23 AM
markjCommitted on Jun 29 2021, 8:06 PM
Parents
rG4647d115ff84: ipfw: Update the pfil mbuf pointer in ipfw_check_frame()
Branches
Unknown
Tags
Unknown