[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 01/11] dirtylimit: Fix overflow when computing MB
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v2 01/11] dirtylimit: Fix overflow when computing MB |
Date: |
Sat, 03 Dec 2022 09:56:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
huangy81@chinatelecom.cn writes:
> From: Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
>
> overity points out a overflow problem when computing MB,
Coverity
> dirty_ring_size and TARGET_PAGE_SIZE are both 32 bits,
> multiplication will be done as a 32-bit operation, which
> could overflow. Simplify the formula.
>
> Meanwhile, fix spelling mistake of variable name.
>
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v2 01/11] dirtylimit: Fix overflow when computing MB,
Markus Armbruster <=