diff options
author | LemonBoy | 2020-04-17 17:34:54 +0200 |
---|---|---|
committer | Laurent Vivier | 2020-11-11 11:01:08 +0100 |
commit | c7811022ebfcaae64e06383ff734f3b3651bf892 (patch) | |
tree | 223144ac5f8d4fc8cac3b114f55b10d7d5505165 /hw/acpi/generic_event_device.c | |
parent | linux-user: Correct definition of stack_t (diff) | |
download | qemu-c7811022ebfcaae64e06383ff734f3b3651bf892.tar.gz qemu-c7811022ebfcaae64e06383ff734f3b3651bf892.tar.xz qemu-c7811022ebfcaae64e06383ff734f3b3651bf892.zip |
linux-user: Prevent crash in epoll_ctl
From 894bb5172705e46a3a04c93b4962c0f0cafee814 Mon Sep 17 00:00:00 2001
From: Giuseppe Musacchio <thatlemon@gmail.com>
Date: Fri, 17 Apr 2020 17:25:07 +0200
Subject: [PATCH] linux-user: Prevent crash in epoll_ctl
The `event` parameter is ignored by the kernel if `op` is EPOLL_CTL_DEL,
do the same and avoid returning EFAULT if garbage is passed instead of a
valid pointer.
Signed-off-by: Giuseppe Musacchio <thatlemon@gmail.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <a244fa67-dace-abdb-995a-3198bd80fee8@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/acpi/generic_event_device.c')
0 files changed, 0 insertions, 0 deletions