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 <chenl311@chinatelecom.cn> Signed-off-by:
Jiri Kosina <jkosina@suse.com>
Loading
Please sign in to comment