Re: [PATCH 06/10] Input: xen-kbdfront - check info->ptr and info->kbd before dereferencing
From: Dmitry Torokhov
Date: Mon Nov 30 2026 - 01:05:06 EST
On Fri, Nov 27, 2026 at 08:10:00PM +0000, Lee Jones wrote:
> When XenStore disables either the pointer or keyboard device,
> xenkbd_probe() leaves info->ptr or info->kbd as NULL.
> xenkbd_handle_key_event() dereferences info->ptr->keybit and
> info->kbd->keybit before checking whether those pointers are valid,
> causing a NULL pointer dereference in interrupt context on key events.
>
> Check info->ptr and info->kbd before testing their keybit masks and
> remove the unreachable NULL check below.
>
> Fixes: 3ef8a2eeb6dc ("Input: xen-kbdfront - allow better run-time configuration")
> Closes: https://sashiko.dev/#/bug/linux-9e0f9c2c-45ab-4045-80b4-47629154e917
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
Applied, thank you.
--
Dmitry