Print this page
10924 Need mitigation of L1TF (CVE-2018-3646)
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Peter Tribble <peter.tribble@gmail.com>

*** 18,27 **** --- 18,29 ---- * * CDDL HEADER END */ /* * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. + * + * Copyright 2018 Joyent, Inc. * Copyright (c) 2017 by Delphix. All rights reserved. */ #include <sys/types.h> #include <sys/systm.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); /* --- 570,581 ---- 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); --- 623,634 ---- 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);