Print this page
OS-7125 Need mitigation of L1TF (CVE-2018-3646)
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>

*** 18,28 **** * * CDDL HEADER END */ /* * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2017 by Delphix. All rights reserved. */ #include <sys/types.h> #include <sys/systm.h> #include <sys/cmn_err.h> --- 18,28 ---- * * CDDL HEADER END */ /* * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. ! * Copyright 2018 Joyent, Inc. */ #include <sys/types.h> #include <sys/systm.h> #include <sys/cmn_err.h>
*** 568,579 **** ASSERT(t->t_lpl->lpl_ncpu > 0); /* Update CPU last ran on if it was this CPU */ if (t->t_cpu == cp && t->t_cpupart == oldpp && t->t_bound_cpu != cp) { ! t->t_cpu = disp_lowpri_cpu(ncp, ! t->t_lpl, t->t_pri, NULL); } t = t->t_forw; } while (t != p->p_tlist); /* --- 568,579 ---- ASSERT(t->t_lpl->lpl_ncpu > 0); /* Update CPU last ran on if it was this CPU */ if (t->t_cpu == cp && t->t_cpupart == oldpp && t->t_bound_cpu != cp) { ! t->t_cpu = disp_lowpri_cpu(ncp, t, ! t->t_pri); } t = t->t_forw; } while (t != p->p_tlist); /*
*** 621,632 **** ASSERT(t->t_lpl->lpl_ncpu > 0); /* Update CPU last ran on if it was this CPU */ if (t->t_cpu == cp && t->t_cpupart == oldpp && t->t_bound_cpu != cp) { ! t->t_cpu = disp_lowpri_cpu(ncp, t->t_lpl, ! t->t_pri, NULL); } t = t->t_next; } while (t != curthread); --- 621,632 ---- ASSERT(t->t_lpl->lpl_ncpu > 0); /* Update CPU last ran on if it was this CPU */ if (t->t_cpu == cp && t->t_cpupart == oldpp && t->t_bound_cpu != cp) { ! t->t_cpu = disp_lowpri_cpu(ncp, t, ! t->t_pri); } t = t->t_next; } while (t != curthread);