[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <448r1561-9570-7816-2705-0nso4919r3op@xreary.bet>
Date: Fri, 20 Jun 2025 15:35:13 +0200 (CEST)
From: Jiri Kosina <jikos@...nel.org>
To: Li Chen <me@...ux.beauty>
cc: Benjamin Tissoires <bentiss@...nel.org>, linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] HID: rate-limit hid_warn to prevent log flooding
On Fri, 20 Jun 2025, Li Chen wrote:
> From: Li Chen <chenl311@...natelecom.cn>
>
> 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@...natelecom.cn>
> ---
> Changelog:
>
> v2: Introduce hid_warn_ratelimited to rate-limit the specified log.
> v3: also ratelimit "reserved main item tag ..."
Applied, thanks.
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists