Re: [PATCH 6.12.y] scsi: storvsc: Ratelimit warning logs to prevent VM denial of service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/27/2025 9:35 PM, Greg KH wrote:
> On Mon, Jan 27, 2025 at 06:29:54PM +0000, Easwar Hariharan wrote:
>> commit d2138eab8cde61e0e6f62d0713e45202e8457d6d upstream
>>
>> 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@xxxxxxxxxxxxxxxxxxx>
>> Link: https://lore.kernel.org/r/20250107-eahariha-ratelimit-storvsc-v1-1-7fc193d1f2b0@xxxxxxxxxxxxxxxxxxx
>> Reviewed-by: Michael Kelley <mhklinux@xxxxxxxxxxx>
>> Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
>> Signed-off-by: Easwar Hariharan <eahariha@xxxxxxxxxxxxxxxxxxx>
>> ---
>>  drivers/scsi/storvsc_drv.c | 8 +++++++-
>>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> What about 6.13.y?
> 

Yes, needs a backport to that too, another miss on my part. :(

Would you rather I send it after rc1 is tagged, or now for completeness?

- Easwar (he/him)






[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux