Re: [REGRESSION] disabling and re-enabling magic sysrq fails after kernel 6.11

From: Christian Heusel
Date: Sun Oct 27 2024 - 10:07:11 EST


On 24/10/26 07:15PM, Ned T. Crigler wrote:
> Hi,

Hey Ned,

> It looks like starting with kernel 6.11, disabling and re-enabling
> magic
> sysrq fails with these errors in dmesg:
>
> kernel: input: input_handler_check_methods: only one event processing
> method can be defined (sysrq)
> kernel: sysrq: Failed to register input handler, error -22
>
> after doing:
>
> # echo 0 > /proc/sys/kernel/sysrq
> # echo 438 > /proc/sys/kernel/sysrq
> # echo 0 > /proc/sys/kernel/sysrq
> # echo 438 > /proc/sys/kernel/sysrq
> # echo 0 > /proc/sys/kernel/sysrq
> # echo 438 > /proc/sys/kernel/sysrq

I have found that this issue is also present in the latest mainline
release and bisected it to the following commit:

d469647bafd9 ("Input: simplify event handling logic")

The additional authors / maintainers have been added to the recipients
lists.

I hope I didn't overlook any pending fixes.

> --
> Ned T. Crigler

Cheers,
Chris

Attachment: signature.asc
Description: PGP signature