Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit eeb4ca79 authored by Guangming Cao's avatar Guangming Cao Committed by Congqin Wang
Browse files

[ALPS05390740] ION: fix handle ref overflow issue



[PATCH] staging: android: ion: check for kref overflow

--This patch is against 4.4. It does not apply to master due to a large
--rework of ion in 4.12 which removed the affected functions altogther.
--4c23cbff ("staging: android: ion: Remove import interface")

Userspace can cause the kref to handles to increment
arbitrarily high. Ensure it does not overflow.

Signed-off-by: default avatarDaniel Rosenberg <drosen@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

MTK-Commit-Id: 6196e0f8ef02b1d9a1fee7246dc2ce813abeb7c7

Change-Id: I48f744000aff109743ced3a3a40f8d259e169499
Signed-off-by: default avatarGuangming Cao <Guangming.Cao@mediatek.com>
CR-Id: ALPS05390740
Feature: ION
(cherry picked from commit 1d52b8d305de9b9ca1705636e9d31c9dd33ebfef)
parent 12c686a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment