summaryrefslogtreecommitdiff
path: root/kernel/pid.c
diff options
context:
space:
mode:
authorRodrigo Rivas Costa <rodrigorivascosta@gmail.com>2020-06-16 18:44:18 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-29 10:16:52 +0200
commit77e1ed91b139c5578bdb6f7ef2297f87c3d42558 (patch)
tree394e77b038d587d95968884a2bc21907c77e0ed8 /kernel/pid.c
parent7a72743c26580d6ff24082d66e65a6ffb49b7617 (diff)
HID: steam: fixes race in handling device list.
[ Upstream commit 2d3f53a80e4eed078669853a178ed96d88f74143 ] Using uhid and KASAN this driver crashed because it was getting several connection events where it only expected one. Then the device was added several times to the static device list and it got corrupted. This patch checks if the device is already in the list before adding it. Signed-off-by: Rodrigo Rivas Costa <rodrigorivascosta@gmail.com> Tested-by: Siarhei Vishniakou <svv@google.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/pid.c')
0 files changed, 0 insertions, 0 deletions