epoll: do not insert into poll queues until all sanity checks are done
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 10 Sep 2020 02:25:06 +0000 (22:25 -0400)
committerPDO SCM Team <hudsoncm@motorola.com>
Thu, 30 Dec 2021 08:42:08 +0000 (02:42 -0600)
commit2dd7d13d5c0516660b731167afe81e9be57b7b4e
tree717fcf1530b2a0f57fea52bfa9b642b702a42039
parentb35eef0c8f3516a34a1075c2deb8503bef72237f
epoll: do not insert into poll queues until all sanity checks are done

commit f8d4f44df056c5b504b0d49683fb7279218fd207 upstream.

Mot-CRs-fixed: (CR)
CVE-Fixed: CVE-2021-39634
Bug: 204450605

Change-Id: If2c466f2eecd8acdb152456d94a00210a4c0af74
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Gajjala Chakradhar <gajjalac@motorola.com>
Reviewed-on: https://gerrit.mot.com/2152183
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
fs/eventpoll.c