Commit 3111cd4c authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] Two more x86-64 fixes

 - Fix CONFIG_DEBUG_INFO build again
 - Fix user exploitable oops in ia32 ioctl emulation
parent 9a45400e
...@@ -27,7 +27,7 @@ static int tiocgdev(unsigned fd, unsigned cmd, unsigned int *ptr) ...@@ -27,7 +27,7 @@ static int tiocgdev(unsigned fd, unsigned cmd, unsigned int *ptr)
struct file *file = fget(fd); struct file *file = fget(fd);
struct tty_struct *real_tty; struct tty_struct *real_tty;
if (!fd) if (!file)
return -EBADF; return -EBADF;
if (file->f_op->ioctl != tty_ioctl) if (file->f_op->ioctl != tty_ioctl)
return -EINVAL; return -EINVAL;
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
movq %r10,1*8(%rsp) movq %r10,1*8(%rsp)
CFI_REL_OFFSET r10,1*8 CFI_REL_OFFSET r10,1*8
movq %r11,(%rsp) movq %r11,(%rsp)
CFI_OFFSET r11 CFI_REL_OFFSET r11,0*8
.endif .endif
.endm .endm
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment