|
@@ -211,7 +211,6 @@ static int write_opcode(struct arch_uprobe *auprobe, struct mm_struct *mm,
|
|
struct vm_area_struct *vma;
|
|
struct vm_area_struct *vma;
|
|
struct uprobe *uprobe;
|
|
struct uprobe *uprobe;
|
|
unsigned long pgoff;
|
|
unsigned long pgoff;
|
|
- loff_t addr;
|
|
|
|
int ret;
|
|
int ret;
|
|
retry:
|
|
retry:
|
|
/* Read the page with vaddr into memory */
|
|
/* Read the page with vaddr into memory */
|
|
@@ -235,10 +234,6 @@ retry:
|
|
if (mapping != vma->vm_file->f_mapping)
|
|
if (mapping != vma->vm_file->f_mapping)
|
|
goto put_out;
|
|
goto put_out;
|
|
|
|
|
|
- addr = vma_address(vma, uprobe->offset);
|
|
|
|
- if (vaddr != (unsigned long)addr)
|
|
|
|
- goto put_out;
|
|
|
|
-
|
|
|
|
ret = -ENOMEM;
|
|
ret = -ENOMEM;
|
|
new_page = alloc_page_vma(GFP_HIGHUSER_MOVABLE, vma, vaddr);
|
|
new_page = alloc_page_vma(GFP_HIGHUSER_MOVABLE, vma, vaddr);
|
|
if (!new_page)
|
|
if (!new_page)
|