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

2019-09-02 Thread Tianyu Lan
On Sat, Aug 31, 2019 at 1:41 AM Michael Kelley wrote: > > From: lantianyu1...@gmail.com Sent: Thursday, August 29, 2019 11:16 PM > > > > From: Tianyu Lan > > > > fill_gva_list() populates gva list and adds offset > > HV_TLB_FLUSH_UNIT(0x100) to variable "cur" > > in the each loop. When diff

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

2019-08-30 Thread Michael Kelley
From: lantianyu1...@gmail.com Sent: Thursday, August 29, 2019 11:16 PM > > From: Tianyu Lan > > fill_gva_list() populates gva list and adds offset > HV_TLB_FLUSH_UNIT(0x100) to variable "cur" > in the each loop. When diff between "end" and "cur" is > less than HV_TLB_FLUSH_UNIT, the gva ent

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

2019-08-29 Thread lantianyu1986
From: Tianyu Lan fill_gva_list() populates gva list and adds offset HV_TLB_FLUSH_UNIT(0x100) to variable "cur" in the each loop. When diff between "end" and "cur" is less than HV_TLB_FLUSH_UNIT, the gva entry should be the last one and the loop should be end. If cur is equal or greater than