|
@@ -1264,7 +1264,8 @@ static unsigned long xol_get_insn_slot(struct uprobe *uprobe)
|
|
|
return 0;
|
|
|
|
|
|
/* Initialize the slot */
|
|
|
- copy_to_page(area->page, xol_vaddr, uprobe->arch.insn, MAX_UINSN_BYTES);
|
|
|
+ copy_to_page(area->page, xol_vaddr,
|
|
|
+ uprobe->arch.ixol, sizeof(uprobe->arch.ixol));
|
|
|
/*
|
|
|
* We probably need flush_icache_user_range() but it needs vma.
|
|
|
* This should work on supported architectures too.
|