RE: [PATCH V2] x86/Hyper-V: Fix overflow issue in the fill_gva_list()

2019-09-02 Thread Michael Kelley
From: Tianyu Lan Sent: Monday, September 2, 2019 5:42 AM > > When the 'start' parameter is >= 0xFF00 on 32-bit > systems, or >= 0x'FF00 on 64-bit systems, > fill_gva_list gets into an infinite loop. With such inputs, > 'cur' overflows after adding HV_TLB_FLUSH_UNIT and always >

[PATCH V2] x86/Hyper-V: Fix overflow issue in the fill_gva_list()

2019-09-02 Thread lantianyu1986
From: Tianyu Lan When the 'start' parameter is >= 0xFF00 on 32-bit systems, or >= 0x'FF00 on 64-bit systems, fill_gva_list gets into an infinite loop. With such inputs, 'cur' overflows after adding HV_TLB_FLUSH_UNIT and always compares as less than end. Memory is filled with gu