Re: [PATCH] block: prevent division by zero in blk_rq_stat_sum()

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

 



On Tue, 05 Mar 2024 16:45:09 +0300, Roman Smirnov wrote:
> The expression dst->nr_samples + src->nr_samples may
> have zero value on overflow. It is necessary to add
> a check to avoid division by zero.
> 
> Found by Linux Verification Center (linuxtesting.org) with Svace.
> 
> 
> [...]

Applied, thanks!

[1/1] block: prevent division by zero in blk_rq_stat_sum()
      commit: 93f52fbeaf4b676b21acfe42a5152620e6770d02

Best regards,
-- 
Jens Axboe







[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux