diff options
| author | Li Chen <[email protected]> | 2025-06-20 12:02:31 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2025-06-20 13:34:36 +0000 |
| commit | 4051ead99888f101be92c7ce90d2de09aac6fd1c (patch) | |
| tree | 59a2d804ef25d93b1dfd6fb56af8504f91ffe14a /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | HID: replace scnprintf() with sysfs_emit() (diff) | |
| download | kernel-4051ead99888f101be92c7ce90d2de09aac6fd1c.tar.gz kernel-4051ead99888f101be92c7ce90d2de09aac6fd1c.zip | |
HID: rate-limit hid_warn to prevent log flooding
Syzkaller can create many uhid devices that trigger
repeated warnings like:
"hid-generic xxxx: unknown main item tag 0x0"
These messages can flood the system log, especially if a crash occurs
(e.g., with a slow UART console, leading to soft lockups). To mitigate
this, convert `hid_warn()` to use `dev_warn_ratelimited()`.
This helps reduce log noise and improves system stability under fuzzing
or faulty device scenarios.
Signed-off-by: Li Chen <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
