Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35857
b: refs/heads/master
c: dd2994f
h: refs/heads/master
i:
  35855: 78ff09c
v: v3
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Sep 26, 2006
1 parent fcdfa54 commit a1bc862
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 131cfd7bd54767ec8959e013f83839442a54d546
refs/heads/master: dd2994f619752fb731f21c89ad16536dd6673948
10 changes: 5 additions & 5 deletions trunk/arch/x86_64/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void bust_spinlocks(int yes)
static noinline int is_prefetch(struct pt_regs *regs, unsigned long addr,
unsigned long error_code)
{
unsigned char *instr;
unsigned char __user *instr;
int scan_more = 1;
int prefetch = 0;
unsigned char *max_instr;
Expand All @@ -111,7 +111,7 @@ static noinline int is_prefetch(struct pt_regs *regs, unsigned long addr,
if (error_code & PF_INSTR)
return 0;

instr = (unsigned char *)convert_rip_to_linear(current, regs);
instr = (unsigned char __user *)convert_rip_to_linear(current, regs);
max_instr = instr + 15;

if (user_mode(regs) && instr >= (unsigned char *)TASK_SIZE)
Expand All @@ -122,7 +122,7 @@ static noinline int is_prefetch(struct pt_regs *regs, unsigned long addr,
unsigned char instr_hi;
unsigned char instr_lo;

if (__get_user(opcode, instr))
if (__get_user(opcode, (char __user *)instr))
break;

instr_hi = opcode & 0xf0;
Expand Down Expand Up @@ -160,7 +160,7 @@ static noinline int is_prefetch(struct pt_regs *regs, unsigned long addr,
case 0x00:
/* Prefetch instruction is 0x0F0D or 0x0F18 */
scan_more = 0;
if (__get_user(opcode, instr))
if (__get_user(opcode, (char __user *)instr))
break;
prefetch = (instr_lo == 0xF) &&
(opcode == 0x0D || opcode == 0x18);
Expand All @@ -176,7 +176,7 @@ static noinline int is_prefetch(struct pt_regs *regs, unsigned long addr,
static int bad_address(void *p)
{
unsigned long dummy;
return __get_user(dummy, (unsigned long *)p);
return __get_user(dummy, (unsigned long __user *)p);
}

void dump_pagetable(unsigned long address)
Expand Down

0 comments on commit a1bc862

Please sign in to comment.