Re: [Xen-devel] vfree crash

2019-07-03 Thread Jan Beulich
On 03.07.2019 15:27, Andrew Cooper wrote: > On 01/07/2019 11:47, Jan Beulich wrote: >> On 01.07.2019 10:56, Andrew Cooper wrote: >>> On 01/07/2019 09:45, Petre Ovidiu PIRCALABU wrote: The problem lies with vfree because it creates a new list with the pages, unmaps the va pointer and then

Re: [Xen-devel] vfree crash

2019-07-03 Thread Andrew Cooper
On 01/07/2019 11:47, Jan Beulich wrote: > On 01.07.2019 10:56, Andrew Cooper wrote: >> On 01/07/2019 09:45, Petre Ovidiu PIRCALABU wrote: >>> The problem lies with vfree because it creates a new list with the >>> pages, unmaps the va pointer and then frees the pages. If I do these >>> steps manuall

Re: [Xen-devel] vfree crash

2019-07-01 Thread Jan Beulich
On 01.07.2019 10:56, Andrew Cooper wrote: > On 01/07/2019 09:45, Petre Ovidiu PIRCALABU wrote: >> The problem lies with vfree because it creates a new list with the >> pages, unmaps the va pointer and then frees the pages. If I do these >> steps manually (without adding them to a new list) it works

Re: [Xen-devel] vfree crash

2019-07-01 Thread Paul Durrant
> > > Behalf > > > > > Of Petre Ovidiu PIRCALABU > > > > > Sent: 28 June 2019 19:00 > > > > > To: xen-devel@lists.xenproject.org; Andrew Cooper < > > > > > andrew.coop...@citrix.com> > > > > > Cc: Alexand

Re: [Xen-devel] vfree crash

2019-07-01 Thread Petre Ovidiu PIRCALABU
Petre Ovidiu PIRCALABU > > > > Sent: 28 June 2019 19:00 > > > > To: xen-devel@lists.xenproject.org; Andrew Cooper < > > > > andrew.coop...@citrix.com> > > > > Cc: Alexandru Stefan ISAILA ; > > > > rcojoc...@bitdefender.com > > >

Re: [Xen-devel] vfree crash

2019-07-01 Thread Andrew Cooper
o: xen-devel@lists.xenproject.org; Andrew Cooper < >>> andrew.coop...@citrix.com> >>> Cc: Alexandru Stefan ISAILA ; >>> rcojoc...@bitdefender.com >>> Subject: [Xen-devel] vfree crash >>> >>> Hello, >>> >>> I need your help to pinpoint

Re: [Xen-devel] vfree crash

2019-07-01 Thread Paul Durrant
ew.coop...@citrix.com> > > > Cc: Alexandru Stefan ISAILA ; > > > rcojoc...@bitdefender.com > > > Subject: [Xen-devel] vfree crash > > > > > > Hello, > > > > > > I need your help to pinpoint the root cause of a problem. To my >

Re: [Xen-devel] vfree crash

2019-07-01 Thread Petre Ovidiu PIRCALABU
ix.com> > > Cc: Alexandru Stefan ISAILA ; > > rcojoc...@bitdefender.com > > Subject: [Xen-devel] vfree crash > > > > Hello, > > > > I need your help to pinpoint the root cause of a problem. To my > > understanding vfree should be used when allocati

Re: [Xen-devel] vfree crash

2019-07-01 Thread Paul Durrant
> -Original Message- > From: Xen-devel On Behalf Of Petre > Ovidiu PIRCALABU > Sent: 28 June 2019 19:00 > To: xen-devel@lists.xenproject.org; Andrew Cooper > Cc: Alexandru Stefan ISAILA ; > rcojoc...@bitdefender.com > Subject: [Xen-devel] vfree crash > >

[Xen-devel] vfree crash

2019-06-28 Thread Petre Ovidiu PIRCALABU
Hello, I need your help to pinpoint the root cause of a problem. To my understanding vfree should be used when allocating memory with vmalloc. But, I have the following scenario which results in a XEN crash: - allocate a number of frames using vmalloc (vzalloc) (e.g. using a domctl) and assign th