Re: [PATCH] x86 : Ensure X86_FLAGS_NT is cleared on syscall entry

From: Andy Lutomirski
Date: Mon Sep 29 2014 - 13:30:44 EST


On 09/25/2014 04:00 PM, Chuck Ebbert wrote:
> #include <stdio.h>
> #include <unistd.h>
>
> int main()
> {
> asm volatile("pushfq \n\t" \
> "pop %rax \n\t" \
> "or $0x4000,%rax \n\t" \
> "push %rax \n\t" \
> "popfq \n\t");

You're missing clobbers here. But fixing that has no effect.

> sleep(1);
>
> return 0;
> }

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/