x86/entry/64: Fix entry_SYSCALL_64_after_hwframe() IRQ tracing

When I added entry_SYSCALL_64_after_hwframe(), I left TRACE_IRQS_OFF
before it. This means that users of entry_SYSCALL_64_after_hwframe()
were responsible for invoking TRACE_IRQS_OFF, and the one and only
user (Xen, added in the same commit) got it wrong.

I think this would manifest as a warning if a Xen PV guest with
CONFIG_DEBUG_LOCKDEP=y were used with context tracking. (The
context tracking bit is to cause lockdep to get invoked before we
turn IRQs back on.) I haven't tested that for real yet because I
can't get a kernel configured like that to boot at all on Xen PV.

Move TRACE_IRQS_OFF below the label.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Borislav Petkov <bpetkov@suse.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Fixes: 8a9949bc71a7 ("x86/xen/64: Rearrange the SYSCALL entries")
Link: http://lkml.kernel.org/r/9150aac013b7b95d62c2336751d5b6e91d2722aa.1511325444.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by Andy Lutomirski and committed by Ingo Molnar 548c3050 7b659ee3

+2 -2
+2 -2
arch/x86/entry/entry_64.S
··· 148 148 movq %rsp, PER_CPU_VAR(rsp_scratch) 149 149 movq PER_CPU_VAR(cpu_current_top_of_stack), %rsp 150 150 151 - TRACE_IRQS_OFF 152 - 153 151 /* Construct struct pt_regs on stack */ 154 152 pushq $__USER_DS /* pt_regs->ss */ 155 153 pushq PER_CPU_VAR(rsp_scratch) /* pt_regs->sp */ ··· 167 169 pushq %r11 /* pt_regs->r11 */ 168 170 sub $(6*8), %rsp /* pt_regs->bp, bx, r12-15 not saved */ 169 171 UNWIND_HINT_REGS extra=0 172 + 173 + TRACE_IRQS_OFF 170 174 171 175 /* 172 176 * If we need to do entry work or if we guess we'll need to do