Re: scif_insert_vma()

2019-03-20 Thread Jarkko Sakkinen
allbacks taking care > > of this. > > Hi Jarkko, > > scif_insert_vma(..) is called from scif_mmap(..) and scif_vma_open(..). > scif_mmap(..) checks for allocation failures but scif_vma_open(..) does > not on purpose. > > The vm_operations_struct open(..)/close(..) cal

Re: scif_insert_vma()

2019-03-17 Thread Sudeep Dutt
On Mon, 2019-03-11 at 08:45 +0200, Jarkko Sakkinen wrote: > Hi > > Just wondering what will happen if kzalloc() fails in scif_mmap.c. How > it is recovered? I don't see anything in the VMA callbacks taking care > of this. Hi Jarkko, scif_insert_vma(..) is called fr

scif_insert_vma()

2019-03-10 Thread Jarkko Sakkinen
Hi Just wondering what will happen if kzalloc() fails in scif_mmap.c. How it is recovered? I don't see anything in the VMA callbacks taking care of this. /Jarkko