Skip to content
Commit 99e42503 authored by Juergen Gross's avatar Juergen Gross Committed by Sasha Levin
Browse files

xen/evtchn: avoid WARN() when unbinding an event channel



[ Upstream commit 51c23bd6 ]

When unbinding a user event channel, the related handler might be
called a last time in case the kernel was built with
CONFIG_DEBUG_SHIRQ. This might cause a WARN() in the handler.

Avoid that by adding an "unbinding" flag to struct user_event which
will short circuit the handler.

Fixes: 9e90e58c ("xen: evtchn: Allow shared registration of IRQ handers")
Reported-by: default avatarDemi Marie Obenour <demi@invisiblethingslab.com>
Tested-by: default avatarDemi Marie Obenour <demi@invisiblethingslab.com>
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
Reviewed-by: default avatarOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Link: https://lore.kernel.org/r/20240313071409.25913-2-jgross@suse.com


Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f0f52af4
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