lkml.org 
[lkml]   [2020]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v2] mm: hugetlb: fix type of delta parameter and related local variables in gather_surplus_pages()
    From
    Date
    On 11/19/20 5:48 AM, Liu Xiang wrote:
    > On 64-bit machine, delta variable in hugetlb_acct_memory() may be larger
    > than 0xffffffff, but gather_surplus_pages() can only use the low 32-bit
    > value now. So we need to fix type of delta parameter and related local
    > variables in gather_surplus_pages().
    >
    > Reported-by: Ma Chenggong <ma.chenggong@zlingsmart.com>
    > Signed-off-by: Liu Xiang <liu.xiang@zlingsmart.com>
    > Signed-off-by: Pan Jiagen <pan.jiagen@zlingsmart.com>
    >
    > ---
    > Changes in v2:
    > as suggested by Mike, apply the same fix to the related local
    > variables in gather_surplus_pages().
    > ---
    > ---
    > mm/hugetlb.c | 7 ++++---
    > 1 file changed, 4 insertions(+), 3 deletions(-)

    Thank you,

    Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>

    --
    Mike Kravetz

    \
     
     \ /
      Last update: 2020-11-19 19:36    [W:4.726 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site