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)
struct file *file = fget(fd);
struct tty_struct *real_tty;
if (!fd)
if (!file)
return -EBADF;
if (file->f_op->ioctl != tty_ioctl)
return -EINVAL;
......
......@@ -56,7 +56,7 @@
movq %r10,1*8(%rsp)
CFI_REL_OFFSET r10,1*8
movq %r11,(%rsp)
CFI_OFFSET r11
CFI_REL_OFFSET r11,0*8
.endif
.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