CHROMIUM: img-rogue/1.13: fix use-after-free in handle framework

This change addresses a UAF race condition in the KM/Server module
handle framework where a resource could be destroyed while it is
in use in another concurrent operation executing in the Server. This
would lead to an exception and undefined platform behaviour.

BUG=b:217211551 b:224686498
TEST=none

Signed-off-by: Luigi Santivetti <luigi.santivetti@imagination.corp-partner.google.com>
Change-Id: I6807005fbe429679033492d6cf3a2809151f93a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3614757
Commit-Queue: Eizan Miyamoto <eizan@chromium.org>
Tested-by: Eizan Miyamoto <eizan@chromium.org>
Reviewed-by: Mani Milani <mani@chromium.org>
20 files changed