aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/events/uprobes.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/events/uprobes.c')
-rw-r--r--kernel/events/uprobes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index 9db9cdf8ff34..fb961d5e205c 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -117,7 +117,7 @@ static loff_t vma_address(struct vm_area_struct *vma, loff_t offset)
117 loff_t vaddr; 117 loff_t vaddr;
118 118
119 vaddr = vma->vm_start + offset; 119 vaddr = vma->vm_start + offset;
120 vaddr -= vma->vm_pgoff << PAGE_SHIFT; 120 vaddr -= (loff_t)vma->vm_pgoff << PAGE_SHIFT;
121 121
122 return vaddr; 122 return vaddr;
123} 123}
@@ -1450,7 +1450,7 @@ static struct uprobe *find_active_uprobe(unsigned long bp_vaddr, int *is_swbp)
1450 1450
1451 inode = vma->vm_file->f_mapping->host; 1451 inode = vma->vm_file->f_mapping->host;
1452 offset = bp_vaddr - vma->vm_start; 1452 offset = bp_vaddr - vma->vm_start;
1453 offset += (vma->vm_pgoff << PAGE_SHIFT); 1453 offset += (loff_t)vma->vm_pgoff << PAGE_SHIFT;
1454 uprobe = find_uprobe(inode, offset); 1454 uprobe = find_uprobe(inode, offset);
1455 } 1455 }
1456 1456