]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/arm/kernel/traps.c
ARM kprobes: prevent some functions involved with kprobes from being probed
[linux-2.6-omap-h63xx.git] / arch / arm / kernel / traps.c
1 /*
2  *  linux/arch/arm/kernel/traps.c
3  *
4  *  Copyright (C) 1995-2002 Russell King
5  *  Fragments that appear the same as linux/arch/i386/kernel/traps.c (C) Linus Torvalds
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  *
11  *  'traps.c' handles hardware exceptions after we have saved some state in
12  *  'linux/arch/arm/lib/traps.S'.  Mostly a debugging aid, but will probably
13  *  kill the offending process.
14  */
15 #include <linux/module.h>
16 #include <linux/signal.h>
17 #include <linux/spinlock.h>
18 #include <linux/personality.h>
19 #include <linux/kallsyms.h>
20 #include <linux/delay.h>
21 #include <linux/init.h>
22
23 #include <asm/atomic.h>
24 #include <asm/cacheflush.h>
25 #include <asm/system.h>
26 #include <asm/uaccess.h>
27 #include <asm/unistd.h>
28 #include <asm/traps.h>
29 #include <asm/io.h>
30
31 #include "ptrace.h"
32 #include "signal.h"
33
34 static const char *handler[]= { "prefetch abort", "data abort", "address exception", "interrupt" };
35
36 #ifdef CONFIG_DEBUG_USER
37 unsigned int user_debug;
38
39 static int __init user_debug_setup(char *str)
40 {
41         get_option(&str, &user_debug);
42         return 1;
43 }
44 __setup("user_debug=", user_debug_setup);
45 #endif
46
47 static void dump_mem(const char *str, unsigned long bottom, unsigned long top);
48
49 void dump_backtrace_entry(unsigned long where, unsigned long from, unsigned long frame)
50 {
51 #ifdef CONFIG_KALLSYMS
52         printk("[<%08lx>] ", where);
53         print_symbol("(%s) ", where);
54         printk("from [<%08lx>] ", from);
55         print_symbol("(%s)\n", from);
56 #else
57         printk("Function entered at [<%08lx>] from [<%08lx>]\n", where, from);
58 #endif
59
60         if (in_exception_text(where))
61                 dump_mem("Exception stack", frame + 4, frame + 4 + sizeof(struct pt_regs));
62 }
63
64 /*
65  * Stack pointers should always be within the kernels view of
66  * physical memory.  If it is not there, then we can't dump
67  * out any information relating to the stack.
68  */
69 static int verify_stack(unsigned long sp)
70 {
71         if (sp < PAGE_OFFSET || (sp > (unsigned long)high_memory && high_memory != 0))
72                 return -EFAULT;
73
74         return 0;
75 }
76
77 /*
78  * Dump out the contents of some memory nicely...
79  */
80 static void dump_mem(const char *str, unsigned long bottom, unsigned long top)
81 {
82         unsigned long p = bottom & ~31;
83         mm_segment_t fs;
84         int i;
85
86         /*
87          * We need to switch to kernel mode so that we can use __get_user
88          * to safely read from kernel space.  Note that we now dump the
89          * code first, just in case the backtrace kills us.
90          */
91         fs = get_fs();
92         set_fs(KERNEL_DS);
93
94         printk("%s(0x%08lx to 0x%08lx)\n", str, bottom, top);
95
96         for (p = bottom & ~31; p < top;) {
97                 printk("%04lx: ", p & 0xffff);
98
99                 for (i = 0; i < 8; i++, p += 4) {
100                         unsigned int val;
101
102                         if (p < bottom || p >= top)
103                                 printk("         ");
104                         else {
105                                 __get_user(val, (unsigned long *)p);
106                                 printk("%08x ", val);
107                         }
108                 }
109                 printk ("\n");
110         }
111
112         set_fs(fs);
113 }
114
115 static void dump_instr(struct pt_regs *regs)
116 {
117         unsigned long addr = instruction_pointer(regs);
118         const int thumb = thumb_mode(regs);
119         const int width = thumb ? 4 : 8;
120         mm_segment_t fs;
121         int i;
122
123         /*
124          * We need to switch to kernel mode so that we can use __get_user
125          * to safely read from kernel space.  Note that we now dump the
126          * code first, just in case the backtrace kills us.
127          */
128         fs = get_fs();
129         set_fs(KERNEL_DS);
130
131         printk("Code: ");
132         for (i = -4; i < 1; i++) {
133                 unsigned int val, bad;
134
135                 if (thumb)
136                         bad = __get_user(val, &((u16 *)addr)[i]);
137                 else
138                         bad = __get_user(val, &((u32 *)addr)[i]);
139
140                 if (!bad)
141                         printk(i == 0 ? "(%0*x) " : "%0*x ", width, val);
142                 else {
143                         printk("bad PC value.");
144                         break;
145                 }
146         }
147         printk("\n");
148
149         set_fs(fs);
150 }
151
152 static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
153 {
154         unsigned int fp;
155         int ok = 1;
156
157         printk("Backtrace: ");
158         fp = regs->ARM_fp;
159         if (!fp) {
160                 printk("no frame pointer");
161                 ok = 0;
162         } else if (verify_stack(fp)) {
163                 printk("invalid frame pointer 0x%08x", fp);
164                 ok = 0;
165         } else if (fp < (unsigned long)end_of_stack(tsk))
166                 printk("frame pointer underflow");
167         printk("\n");
168
169         if (ok)
170                 c_backtrace(fp, processor_mode(regs));
171 }
172
173 void dump_stack(void)
174 {
175         __backtrace();
176 }
177
178 EXPORT_SYMBOL(dump_stack);
179
180 void show_stack(struct task_struct *tsk, unsigned long *sp)
181 {
182         unsigned long fp;
183
184         if (!tsk)
185                 tsk = current;
186
187         if (tsk != current)
188                 fp = thread_saved_fp(tsk);
189         else
190                 asm("mov %0, fp" : "=r" (fp) : : "cc");
191
192         c_backtrace(fp, 0x10);
193         barrier();
194 }
195
196 #ifdef CONFIG_PREEMPT
197 #define S_PREEMPT " PREEMPT"
198 #else
199 #define S_PREEMPT ""
200 #endif
201 #ifdef CONFIG_SMP
202 #define S_SMP " SMP"
203 #else
204 #define S_SMP ""
205 #endif
206
207 static void __die(const char *str, int err, struct thread_info *thread, struct pt_regs *regs)
208 {
209         struct task_struct *tsk = thread->task;
210         static int die_counter;
211
212         printk("Internal error: %s: %x [#%d]" S_PREEMPT S_SMP "\n",
213                str, err, ++die_counter);
214         print_modules();
215         __show_regs(regs);
216         printk("Process %s (pid: %d, stack limit = 0x%p)\n",
217                 tsk->comm, task_pid_nr(tsk), thread + 1);
218
219         if (!user_mode(regs) || in_interrupt()) {
220                 dump_mem("Stack: ", regs->ARM_sp,
221                          THREAD_SIZE + (unsigned long)task_stack_page(tsk));
222                 dump_backtrace(regs, tsk);
223                 dump_instr(regs);
224         }
225 }
226
227 DEFINE_SPINLOCK(die_lock);
228
229 /*
230  * This function is protected against re-entrancy.
231  */
232 NORET_TYPE void die(const char *str, struct pt_regs *regs, int err)
233 {
234         struct thread_info *thread = current_thread_info();
235
236         oops_enter();
237
238         console_verbose();
239         spin_lock_irq(&die_lock);
240         bust_spinlocks(1);
241         __die(str, err, thread, regs);
242         bust_spinlocks(0);
243         add_taint(TAINT_DIE);
244         spin_unlock_irq(&die_lock);
245
246         if (in_interrupt())
247                 panic("Fatal exception in interrupt");
248
249         if (panic_on_oops)
250                 panic("Fatal exception");
251
252         oops_exit();
253         do_exit(SIGSEGV);
254 }
255
256 void arm_notify_die(const char *str, struct pt_regs *regs,
257                 struct siginfo *info, unsigned long err, unsigned long trap)
258 {
259         if (user_mode(regs)) {
260                 current->thread.error_code = err;
261                 current->thread.trap_no = trap;
262
263                 force_sig_info(info->si_signo, info, current);
264         } else {
265                 die(str, regs, err);
266         }
267 }
268
269 static LIST_HEAD(undef_hook);
270 static DEFINE_SPINLOCK(undef_lock);
271
272 void register_undef_hook(struct undef_hook *hook)
273 {
274         unsigned long flags;
275
276         spin_lock_irqsave(&undef_lock, flags);
277         list_add(&hook->node, &undef_hook);
278         spin_unlock_irqrestore(&undef_lock, flags);
279 }
280
281 void unregister_undef_hook(struct undef_hook *hook)
282 {
283         unsigned long flags;
284
285         spin_lock_irqsave(&undef_lock, flags);
286         list_del(&hook->node);
287         spin_unlock_irqrestore(&undef_lock, flags);
288 }
289
290 asmlinkage void __exception do_undefinstr(struct pt_regs *regs)
291 {
292         unsigned int correction = thumb_mode(regs) ? 2 : 4;
293         unsigned int instr;
294         struct undef_hook *hook;
295         siginfo_t info;
296         void __user *pc;
297         unsigned long flags;
298
299         /*
300          * According to the ARM ARM, PC is 2 or 4 bytes ahead,
301          * depending whether we're in Thumb mode or not.
302          * Correct this offset.
303          */
304         regs->ARM_pc -= correction;
305
306         pc = (void __user *)instruction_pointer(regs);
307
308         if (processor_mode(regs) == SVC_MODE) {
309                 instr = *(u32 *) pc;
310         } else if (thumb_mode(regs)) {
311                 get_user(instr, (u16 __user *)pc);
312         } else {
313                 get_user(instr, (u32 __user *)pc);
314         }
315
316         spin_lock_irqsave(&undef_lock, flags);
317         list_for_each_entry(hook, &undef_hook, node) {
318                 if ((instr & hook->instr_mask) == hook->instr_val &&
319                     (regs->ARM_cpsr & hook->cpsr_mask) == hook->cpsr_val) {
320                         if (hook->fn(regs, instr) == 0) {
321                                 spin_unlock_irqrestore(&undef_lock, flags);
322                                 return;
323                         }
324                 }
325         }
326         spin_unlock_irqrestore(&undef_lock, flags);
327
328 #ifdef CONFIG_DEBUG_USER
329         if (user_debug & UDBG_UNDEFINED) {
330                 printk(KERN_INFO "%s (%d): undefined instruction: pc=%p\n",
331                         current->comm, task_pid_nr(current), pc);
332                 dump_instr(regs);
333         }
334 #endif
335
336         info.si_signo = SIGILL;
337         info.si_errno = 0;
338         info.si_code  = ILL_ILLOPC;
339         info.si_addr  = pc;
340
341         arm_notify_die("Oops - undefined instruction", regs, &info, 0, 6);
342 }
343
344 asmlinkage void do_unexp_fiq (struct pt_regs *regs)
345 {
346         printk("Hmm.  Unexpected FIQ received, but trying to continue\n");
347         printk("You may have a hardware problem...\n");
348 }
349
350 /*
351  * bad_mode handles the impossible case in the vectors.  If you see one of
352  * these, then it's extremely serious, and could mean you have buggy hardware.
353  * It never returns, and never tries to sync.  We hope that we can at least
354  * dump out some state information...
355  */
356 asmlinkage void bad_mode(struct pt_regs *regs, int reason)
357 {
358         console_verbose();
359
360         printk(KERN_CRIT "Bad mode in %s handler detected\n", handler[reason]);
361
362         die("Oops - bad mode", regs, 0);
363         local_irq_disable();
364         panic("bad mode");
365 }
366
367 static int bad_syscall(int n, struct pt_regs *regs)
368 {
369         struct thread_info *thread = current_thread_info();
370         siginfo_t info;
371
372         if (current->personality != PER_LINUX &&
373             current->personality != PER_LINUX_32BIT &&
374             thread->exec_domain->handler) {
375                 thread->exec_domain->handler(n, regs);
376                 return regs->ARM_r0;
377         }
378
379 #ifdef CONFIG_DEBUG_USER
380         if (user_debug & UDBG_SYSCALL) {
381                 printk(KERN_ERR "[%d] %s: obsolete system call %08x.\n",
382                         task_pid_nr(current), current->comm, n);
383                 dump_instr(regs);
384         }
385 #endif
386
387         info.si_signo = SIGILL;
388         info.si_errno = 0;
389         info.si_code  = ILL_ILLTRP;
390         info.si_addr  = (void __user *)instruction_pointer(regs) -
391                          (thumb_mode(regs) ? 2 : 4);
392
393         arm_notify_die("Oops - bad syscall", regs, &info, n, 0);
394
395         return regs->ARM_r0;
396 }
397
398 static inline void
399 do_cache_op(unsigned long start, unsigned long end, int flags)
400 {
401         struct vm_area_struct *vma;
402
403         if (end < start || flags)
404                 return;
405
406         vma = find_vma(current->active_mm, start);
407         if (vma && vma->vm_start < end) {
408                 if (start < vma->vm_start)
409                         start = vma->vm_start;
410                 if (end > vma->vm_end)
411                         end = vma->vm_end;
412
413                 flush_cache_user_range(vma, start, end);
414         }
415 }
416
417 /*
418  * Handle all unrecognised system calls.
419  *  0x9f0000 - 0x9fffff are some more esoteric system calls
420  */
421 #define NR(x) ((__ARM_NR_##x) - __ARM_NR_BASE)
422 asmlinkage int arm_syscall(int no, struct pt_regs *regs)
423 {
424         struct thread_info *thread = current_thread_info();
425         siginfo_t info;
426
427         if ((no >> 16) != (__ARM_NR_BASE>> 16))
428                 return bad_syscall(no, regs);
429
430         switch (no & 0xffff) {
431         case 0: /* branch through 0 */
432                 info.si_signo = SIGSEGV;
433                 info.si_errno = 0;
434                 info.si_code  = SEGV_MAPERR;
435                 info.si_addr  = NULL;
436
437                 arm_notify_die("branch through zero", regs, &info, 0, 0);
438                 return 0;
439
440         case NR(breakpoint): /* SWI BREAK_POINT */
441                 regs->ARM_pc -= thumb_mode(regs) ? 2 : 4;
442                 ptrace_break(current, regs);
443                 return regs->ARM_r0;
444
445         /*
446          * Flush a region from virtual address 'r0' to virtual address 'r1'
447          * _exclusive_.  There is no alignment requirement on either address;
448          * user space does not need to know the hardware cache layout.
449          *
450          * r2 contains flags.  It should ALWAYS be passed as ZERO until it
451          * is defined to be something else.  For now we ignore it, but may
452          * the fires of hell burn in your belly if you break this rule. ;)
453          *
454          * (at a later date, we may want to allow this call to not flush
455          * various aspects of the cache.  Passing '0' will guarantee that
456          * everything necessary gets flushed to maintain consistency in
457          * the specified region).
458          */
459         case NR(cacheflush):
460                 do_cache_op(regs->ARM_r0, regs->ARM_r1, regs->ARM_r2);
461                 return 0;
462
463         case NR(usr26):
464                 if (!(elf_hwcap & HWCAP_26BIT))
465                         break;
466                 regs->ARM_cpsr &= ~MODE32_BIT;
467                 return regs->ARM_r0;
468
469         case NR(usr32):
470                 if (!(elf_hwcap & HWCAP_26BIT))
471                         break;
472                 regs->ARM_cpsr |= MODE32_BIT;
473                 return regs->ARM_r0;
474
475         case NR(set_tls):
476                 thread->tp_value = regs->ARM_r0;
477 #if defined(CONFIG_HAS_TLS_REG)
478                 asm ("mcr p15, 0, %0, c13, c0, 3" : : "r" (regs->ARM_r0) );
479 #elif !defined(CONFIG_TLS_REG_EMUL)
480                 /*
481                  * User space must never try to access this directly.
482                  * Expect your app to break eventually if you do so.
483                  * The user helper at 0xffff0fe0 must be used instead.
484                  * (see entry-armv.S for details)
485                  */
486                 *((unsigned int *)0xffff0ff0) = regs->ARM_r0;
487 #endif
488                 return 0;
489
490 #ifdef CONFIG_NEEDS_SYSCALL_FOR_CMPXCHG
491         /*
492          * Atomically store r1 in *r2 if *r2 is equal to r0 for user space.
493          * Return zero in r0 if *MEM was changed or non-zero if no exchange
494          * happened.  Also set the user C flag accordingly.
495          * If access permissions have to be fixed up then non-zero is
496          * returned and the operation has to be re-attempted.
497          *
498          * *NOTE*: This is a ghost syscall private to the kernel.  Only the
499          * __kuser_cmpxchg code in entry-armv.S should be aware of its
500          * existence.  Don't ever use this from user code.
501          */
502         case 0xfff0:
503         for (;;) {
504                 extern void do_DataAbort(unsigned long addr, unsigned int fsr,
505                                          struct pt_regs *regs);
506                 unsigned long val;
507                 unsigned long addr = regs->ARM_r2;
508                 struct mm_struct *mm = current->mm;
509                 pgd_t *pgd; pmd_t *pmd; pte_t *pte;
510                 spinlock_t *ptl;
511
512                 regs->ARM_cpsr &= ~PSR_C_BIT;
513                 down_read(&mm->mmap_sem);
514                 pgd = pgd_offset(mm, addr);
515                 if (!pgd_present(*pgd))
516                         goto bad_access;
517                 pmd = pmd_offset(pgd, addr);
518                 if (!pmd_present(*pmd))
519                         goto bad_access;
520                 pte = pte_offset_map_lock(mm, pmd, addr, &ptl);
521                 if (!pte_present(*pte) || !pte_dirty(*pte)) {
522                         pte_unmap_unlock(pte, ptl);
523                         goto bad_access;
524                 }
525                 val = *(unsigned long *)addr;
526                 val -= regs->ARM_r0;
527                 if (val == 0) {
528                         *(unsigned long *)addr = regs->ARM_r1;
529                         regs->ARM_cpsr |= PSR_C_BIT;
530                 }
531                 pte_unmap_unlock(pte, ptl);
532                 up_read(&mm->mmap_sem);
533                 return val;
534
535                 bad_access:
536                 up_read(&mm->mmap_sem);
537                 /* simulate a write access fault */
538                 do_DataAbort(addr, 15 + (1 << 11), regs);
539         }
540 #endif
541
542         default:
543                 /* Calls 9f00xx..9f07ff are defined to return -ENOSYS
544                    if not implemented, rather than raising SIGILL.  This
545                    way the calling program can gracefully determine whether
546                    a feature is supported.  */
547                 if (no <= 0x7ff)
548                         return -ENOSYS;
549                 break;
550         }
551 #ifdef CONFIG_DEBUG_USER
552         /*
553          * experience shows that these seem to indicate that
554          * something catastrophic has happened
555          */
556         if (user_debug & UDBG_SYSCALL) {
557                 printk("[%d] %s: arm syscall %d\n",
558                        task_pid_nr(current), current->comm, no);
559                 dump_instr(regs);
560                 if (user_mode(regs)) {
561                         __show_regs(regs);
562                         c_backtrace(regs->ARM_fp, processor_mode(regs));
563                 }
564         }
565 #endif
566         info.si_signo = SIGILL;
567         info.si_errno = 0;
568         info.si_code  = ILL_ILLTRP;
569         info.si_addr  = (void __user *)instruction_pointer(regs) -
570                          (thumb_mode(regs) ? 2 : 4);
571
572         arm_notify_die("Oops - bad syscall(2)", regs, &info, no, 0);
573         return 0;
574 }
575
576 #ifdef CONFIG_TLS_REG_EMUL
577
578 /*
579  * We might be running on an ARMv6+ processor which should have the TLS
580  * register but for some reason we can't use it, or maybe an SMP system
581  * using a pre-ARMv6 processor (there are apparently a few prototypes like
582  * that in existence) and therefore access to that register must be
583  * emulated.
584  */
585
586 static int get_tp_trap(struct pt_regs *regs, unsigned int instr)
587 {
588         int reg = (instr >> 12) & 15;
589         if (reg == 15)
590                 return 1;
591         regs->uregs[reg] = current_thread_info()->tp_value;
592         regs->ARM_pc += 4;
593         return 0;
594 }
595
596 static struct undef_hook arm_mrc_hook = {
597         .instr_mask     = 0x0fff0fff,
598         .instr_val      = 0x0e1d0f70,
599         .cpsr_mask      = PSR_T_BIT,
600         .cpsr_val       = 0,
601         .fn             = get_tp_trap,
602 };
603
604 static int __init arm_mrc_hook_init(void)
605 {
606         register_undef_hook(&arm_mrc_hook);
607         return 0;
608 }
609
610 late_initcall(arm_mrc_hook_init);
611
612 #endif
613
614 void __bad_xchg(volatile void *ptr, int size)
615 {
616         printk("xchg: bad data size: pc 0x%p, ptr 0x%p, size %d\n",
617                 __builtin_return_address(0), ptr, size);
618         BUG();
619 }
620 EXPORT_SYMBOL(__bad_xchg);
621
622 /*
623  * A data abort trap was taken, but we did not handle the instruction.
624  * Try to abort the user program, or panic if it was the kernel.
625  */
626 asmlinkage void
627 baddataabort(int code, unsigned long instr, struct pt_regs *regs)
628 {
629         unsigned long addr = instruction_pointer(regs);
630         siginfo_t info;
631
632 #ifdef CONFIG_DEBUG_USER
633         if (user_debug & UDBG_BADABORT) {
634                 printk(KERN_ERR "[%d] %s: bad data abort: code %d instr 0x%08lx\n",
635                         task_pid_nr(current), current->comm, code, instr);
636                 dump_instr(regs);
637                 show_pte(current->mm, addr);
638         }
639 #endif
640
641         info.si_signo = SIGILL;
642         info.si_errno = 0;
643         info.si_code  = ILL_ILLOPC;
644         info.si_addr  = (void __user *)addr;
645
646         arm_notify_die("unknown data abort code", regs, &info, instr, 0);
647 }
648
649 void __attribute__((noreturn)) __bug(const char *file, int line)
650 {
651         printk(KERN_CRIT"kernel BUG at %s:%d!\n", file, line);
652         *(int *)0 = 0;
653
654         /* Avoid "noreturn function does return" */
655         for (;;);
656 }
657 EXPORT_SYMBOL(__bug);
658
659 void __readwrite_bug(const char *fn)
660 {
661         printk("%s called, but not implemented\n", fn);
662         BUG();
663 }
664 EXPORT_SYMBOL(__readwrite_bug);
665
666 void __pte_error(const char *file, int line, unsigned long val)
667 {
668         printk("%s:%d: bad pte %08lx.\n", file, line, val);
669 }
670
671 void __pmd_error(const char *file, int line, unsigned long val)
672 {
673         printk("%s:%d: bad pmd %08lx.\n", file, line, val);
674 }
675
676 void __pgd_error(const char *file, int line, unsigned long val)
677 {
678         printk("%s:%d: bad pgd %08lx.\n", file, line, val);
679 }
680
681 asmlinkage void __div0(void)
682 {
683         printk("Division by zero in kernel.\n");
684         dump_stack();
685 }
686 EXPORT_SYMBOL(__div0);
687
688 void abort(void)
689 {
690         BUG();
691
692         /* if that doesn't kill us, halt */
693         panic("Oops failed to kill thread");
694 }
695 EXPORT_SYMBOL(abort);
696
697 void __init trap_init(void)
698 {
699         unsigned long vectors = CONFIG_VECTORS_BASE;
700         extern char __stubs_start[], __stubs_end[];
701         extern char __vectors_start[], __vectors_end[];
702         extern char __kuser_helper_start[], __kuser_helper_end[];
703         int kuser_sz = __kuser_helper_end - __kuser_helper_start;
704
705         /*
706          * Copy the vectors, stubs and kuser helpers (in entry-armv.S)
707          * into the vector page, mapped at 0xffff0000, and ensure these
708          * are visible to the instruction stream.
709          */
710         memcpy((void *)vectors, __vectors_start, __vectors_end - __vectors_start);
711         memcpy((void *)vectors + 0x200, __stubs_start, __stubs_end - __stubs_start);
712         memcpy((void *)vectors + 0x1000 - kuser_sz, __kuser_helper_start, kuser_sz);
713
714         /*
715          * Copy signal return handlers into the vector page, and
716          * set sigreturn to be a pointer to these.
717          */
718         memcpy((void *)KERN_SIGRETURN_CODE, sigreturn_codes,
719                sizeof(sigreturn_codes));
720
721         flush_icache_range(vectors, vectors + PAGE_SIZE);
722         modify_domain(DOMAIN_USER, DOMAIN_CLIENT);
723 }