View | Details | Raw Unified | Return to bug 84078
Collapse All | Expand All

(-)linux/arch/x86_64/kernel/ptrace.c (-2 / +2 lines)
Lines 380-386 asmlinkage long sys_ptrace(long request, Link Here
380
			break;
380
			break;
381
381
382
		switch (addr) { 
382
		switch (addr) { 
383
		case 0 ... sizeof(struct user_regs_struct):
383
		case 0 ... sizeof(struct user_regs_struct) - sizeof(long):
384
			tmp = getreg(child, addr);
384
			tmp = getreg(child, addr);
385
			break;
385
			break;
386
		case offsetof(struct user, u_debugreg[0]):
386
		case offsetof(struct user, u_debugreg[0]):
Lines 425-431 asmlinkage long sys_ptrace(long request, Link Here
425
			break;
425
			break;
426
426
427
		switch (addr) { 
427
		switch (addr) { 
428
		case 0 ... sizeof(struct user_regs_struct): 
428
		case 0 ... sizeof(struct user_regs_struct) - sizeof(long):
429
			ret = putreg(child, addr, data);
429
			ret = putreg(child, addr, data);
430
			break;
430
			break;
431
		/* Disallows to set a breakpoint into the vsyscall */
431
		/* Disallows to set a breakpoint into the vsyscall */

Return to bug 84078