Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36216
b: refs/heads/master
c: 1e2af92
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Sep 27, 2006
1 parent 50b8e89 commit 9e309bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 1b79e5513d52e8533a08af35a3595dad80c74d1f
refs/heads/master: 1e2af92e089d4c845248844a3e7ee06ce889af46
7 changes: 4 additions & 3 deletions trunk/arch/i386/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <linux/kprobes.h>
#include <linux/kexec.h>
#include <linux/unwind.h>
#include <linux/uaccess.h>

#ifdef CONFIG_EISA
#include <linux/ioport.h>
Expand All @@ -40,7 +41,6 @@

#include <asm/processor.h>
#include <asm/system.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/atomic.h>
#include <asm/debugreg.h>
Expand Down Expand Up @@ -409,7 +409,7 @@ static void handle_BUG(struct pt_regs *regs)

if (eip < PAGE_OFFSET)
return;
if (__get_user(ud2, (unsigned short __user *)eip))
if (probe_kernel_address((unsigned short __user *)eip, ud2))
return;
if (ud2 != 0x0b0f)
return;
Expand All @@ -422,7 +422,8 @@ static void handle_BUG(struct pt_regs *regs)
char *file;
char c;

if (__get_user(line, (unsigned short __user *)(eip + 2)))
if (probe_kernel_address((unsigned short __user *)(eip + 2),
line))
break;
if (__get_user(file, (char * __user *)(eip + 4)) ||
(unsigned long)file < PAGE_OFFSET || __get_user(c, file))
Expand Down

0 comments on commit 9e309bc

Please sign in to comment.