All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] HID: add malicious HID device detection driver
@ 2026-04-04 13:37 Zubeyr Almaho
  2026-04-04 13:37 ` [PATCH v2 1/1] " Zubeyr Almaho
  2026-04-05  5:31 ` [PATCH v2 0/1] " Greg KH
  0 siblings, 2 replies; 5+ messages in thread
From: Zubeyr Almaho @ 2026-04-04 13:37 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Zubeyr Almaho, Benjamin Tissoires, linux-input, linux-kernel,
	security

Hi Jiri, Benjamin,

This series introduces hid-omg-detect, a passive HID monitor that scores
potentially malicious keyboard-like USB devices (BadUSB / O.MG style)
using:

- keystroke timing entropy,
- plug-and-type latency,
- USB descriptor fingerprinting.

When the configurable threshold is crossed, the module emits a warning
with a userspace mitigation hint (usbguard).

The driver does not block, delay, or modify HID input events.

Changes since v1:
- Replaced global list + mutex with per-device drvdata.
- Removed logging inside spinlock-held regions.
- Moved VID/PID lookup to probe() to avoid hot-path overhead.
- Switched logging to hid_{info,warn,err} helpers.
- Capped timing sample counter at MAX_TIMING_SAMPLES.
- Renamed file to hid-omg-detect.c for kernel naming conventions.

Thanks,
Zubeyr Almaho

---
 drivers/hid/hid-omg-detect.c | 435 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 435 insertions(+)

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/1] HID: add malicious HID device detection driver
@ 2026-04-11 13:47 kernel test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2026-04-11 13:47 UTC (permalink / raw)
  To: oe-kbuild

:::::: 
:::::: Manual check reason: "high confidence checkpatch report"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20260404133746.80914-2-zybo1000@gmail.com>
References: <20260404133746.80914-2-zybo1000@gmail.com>
TO: Zubeyr Almaho <zybo1000@gmail.com>
TO: Jiri Kosina <jikos@kernel.org>

Hi Zubeyr,

kernel test robot noticed the following build warnings:

[auto build test WARNING on hid/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Zubeyr-Almaho/HID-add-malicious-HID-device-detection-driver/20260411-092245
base:   https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next
patch link:    https://lore.kernel.org/r/20260404133746.80914-2-zybo1000%40gmail.com
patch subject: [PATCH v2 1/1] HID: add malicious HID device detection driver
:::::: branch date: 12 hours ago
:::::: commit date: 12 hours ago
reproduce: (https://download.01.org/0day-ci/archive/20260411/202604111526.fJWjmgGl-lkp@intel.com/reproduce)

# many are suggestions rather than must-fix

WARNING:MINMAX: min() should probably be min_t(unsigned int, s->sample_count, MAX_TIMING_SAMPLES)
#135: FILE: drivers/hid/hid-omg-detect.c:107:
+	n = min(s->sample_count, (unsigned int)MAX_TIMING_SAMPLES);

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-04-11 13:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-04 13:37 [PATCH v2 0/1] HID: add malicious HID device detection driver Zubeyr Almaho
2026-04-04 13:37 ` [PATCH v2 1/1] " Zubeyr Almaho
2026-04-07  7:59   ` Benjamin Tissoires
2026-04-05  5:31 ` [PATCH v2 0/1] " Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2026-04-11 13:47 [PATCH v2 1/1] " kernel test robot

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.