]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: storvsc: Ratelimit warning logs to prevent VM denial of service
authorEaswar Hariharan <eahariha@linux.microsoft.com>
Tue, 7 Jan 2025 17:28:40 +0000 (17:28 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 10 Jan 2025 21:23:28 +0000 (16:23 -0500)
commitd2138eab8cde61e0e6f62d0713e45202e8457d6d
treebbbe1a93fb265e5eb006bca36b27b125f9a88b32
parent37d061e1ace17a376eda34b10dde28b144296534
scsi: storvsc: Ratelimit warning logs to prevent VM denial of service

If there's a persistent error in the hypervisor, the SCSI warning for
failed I/O can flood the kernel log and max out CPU utilization,
preventing troubleshooting from the VM side. Ratelimit the warning so
it doesn't DoS the VM.

Closes: https://github.com/microsoft/WSL/issues/9173
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
Link: https://lore.kernel.org/r/20250107-eahariha-ratelimit-storvsc-v1-1-7fc193d1f2b0@linux.microsoft.com
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c