From: Davide Beatrici <me@davidebeatrici.dev>
To: Benjamin Tissoires <bentiss@kernel.org>
Cc: Terry Junge <linuxhid@cosmicgizmosystems.com>,
linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
jikos@kernel.org, benjamin.tissoires@redhat.com
Subject: Re: [PATCH] HID: validate report length and constants
Date: Fri, 12 Dec 2025 07:22:27 +0100 [thread overview]
Message-ID: <e2db2ad2b8bb21916a22695191e7763c@davidebeatrici.dev> (raw)
In-Reply-To: <iq4fdv5yak7xqiitlsmglsulsdzqaklsqdcv2rxswsduwqxfpy@lknyfow3yxwg>
> IMO, the simplest is the HID-BPF route, as it's a matter of going to
> the
> udev-hid-bpf project [1], add your program in the testing dir, and
> submit a merge request. This way your device will be fixed and I'll
> eventually take care of putting the HID-BPF program in
> drivers/hid/bpf/progs so it gets installed in all distributions.
I apologize for the delay, I had to figure out why OpenMandriva's kernel
was
not exposing the hid_bpf_ops structure.
Turns out CONFIG_HID_BPF had to be enabled and CONFIG_FUNCTION_TRACER
too.
Here's the merge request for udev-hid-bpf:
https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/212
> have a new kernel driver for this device which maps to .raw_event()
> and rejects reports of size 1.
I actually just realized my previous mouse, a Kysona M600, has a
specific
driver (hid-kysona) that seemingly handles battery status reports.
That may be the cause for it randomly stopping registering clicks and
scrolls
until it is moved (i.e. registers a movement).
But that's a story for another thread!
I wonder if we can put together a single universal driver for these
devices...
prev parent reply other threads:[~2025-12-12 6:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-02 5:36 [PATCH] HID: validate report length and constants Davide Beatrici
2025-12-02 8:22 ` Benjamin Tissoires
2025-12-02 19:41 ` Davide Beatrici
2025-12-02 21:40 ` Terry Junge
2025-12-02 21:54 ` Davide Beatrici
2025-12-04 9:53 ` Benjamin Tissoires
2025-12-04 19:48 ` Davide Beatrici
2025-12-04 23:43 ` Davide Beatrici
2025-12-08 8:54 ` Benjamin Tissoires
2025-12-12 6:22 ` Davide Beatrici [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e2db2ad2b8bb21916a22695191e7763c@davidebeatrici.dev \
--to=me@davidebeatrici.dev \
--cc=benjamin.tissoires@redhat.com \
--cc=bentiss@kernel.org \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxhid@cosmicgizmosystems.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.