]> 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)
committerDmitry Chagin <dchagin@FreeBSD.org>
Thu, 10 Jun 2021 11:23:11 +0000 (14:23 +0300)
commit25b09d6f398ea8a260ee8e2e8209fd76c61e13ee
tree3e7c713584d7ca065bd184ce1017a5a4fb24bf7d
parentee64d982049544b1e8a77acc01fd230c906fb305
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.

MFC after: 2 weeks
sys/compat/linux/linux_futex.c