Print this page
11787 Kernel needs to be built with retpolines
11788 Kernel needs to generally use RSB stuffing
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: John Levon <john.levon@joyent.com>

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 /*
  * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2019 Joyent, Inc.
  */
 
 /*      Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T   */
 /*        All Rights Reserved                                   */

@@ -97,11 +98,12 @@
         movb    $255, TTR_VECTOR(%r12)
         movq    %r12, %rsi              /* pass traptrace record pointer */
 #endif
 
         movq    %rsp, %rdi              /* pass struct regs pointer */
-        call    *do_interrupt_common
+        movq    do_interrupt_common, %rax
+        INDIRECT_CALL_REG(rax)
 
         jmp     _sys_rtt_ints_disabled
         /*NOTREACHED*/
 
         SET_SIZE(cmnint)