]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux(4): Prevent integer overflow in futex_requeue.
authorDmitry Chagin <dchagin@FreeBSD.org>
Thu, 10 Jun 2021 11:23:11 +0000 (14:23 +0300)
committerMark Johnston <markj@FreeBSD.org>
Tue, 29 Jun 2021 18:48:09 +0000 (14:48 -0400)
commit43a58daffe7256f0948ce895fed9fae55dec98fc
treec97d6b2a409de84168327b9064217dc81119b363
parent766da930f994bc0fe27cc9235f0594a6c4e0a88f
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.

(cherry picked from commit 25b09d6f398ea8a260ee8e2e8209fd76c61e13ee)
sys/compat/linux/linux_futex.c