From owner-freebsd-hackers@freebsd.org Wed Jul 10 10:16:29 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4DF815D1E8E for ; Wed, 10 Jul 2019 10:16:29 +0000 (UTC) (envelope-from damian@damianek.be) Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3DC80845B2 for ; Wed, 10 Jul 2019 10:16:28 +0000 (UTC) (envelope-from damian@damianek.be) Received: by mail-io1-xd34.google.com with SMTP id i10so3429189iol.13 for ; Wed, 10 Jul 2019 03:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=damianek-be.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=h15zdIDQ0BZGFFpRP03EJfxNhKANu2h7gH+4fzg9qhk=; b=jTtBnH+g+iBwdr+Wckj+ZkzCOspcUyRb3P7tSaQWIhPcxDsAcDz+FTSJj/5y8sj9OK k1VRXCeByEmJcyVZPh0pYhiA3fXrSlcwlQkoIqcBQC+WvOEgUiX3IM4a06atzfePJmmd 2yisDJ09HbIHJ6EHh4u9ivAwQyraI5ti14SnC+YD8d9B9WNzwTjytciVmFsnbPZJakNd Ojay33FCokoYTGEcdN2pFdcYVTLN9nTAqsGpfpS0YXfjfwqZ+nWGx+H2238gJe5bjQOP sy3qM07wcsUMM8TR/rik4kaifO3Fz06fxmKwvV1fpYW3bDJ8T8wHjF4t85M/gt2RDmFG 5caw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=h15zdIDQ0BZGFFpRP03EJfxNhKANu2h7gH+4fzg9qhk=; b=e+vuMQa7zMFssda4GdpkxieWxyXagMwrw8ToFFasXGgAeoVAZN372AjnqT9oqDoNo4 hd/y4noXHSU5tFavvT+VfzJpJwI/NYo0KStbgAHwsmpdgIcap8KCAWhmueq3xiHgEStu mdE7M5MlKtw7xUS0Ui8RNZm0154ZPFIY/3vYBdVVKcjKgkRhuAdZzJl6aOHq6fIwhIBO QEBbGalE6Em0/jjofKmF5JikBZXqs20e9BGJpxKUVILFwM+uiihj2y/icVQ+aBA2AI7x 5tAIqcO1Pvxh853j3UqFDHmTI3OX8hKOFh24UCVJtCfO8CvwW4CZyH7URDG0hH16cAfX S1Dw== X-Gm-Message-State: APjAAAV4N9xM6QetWXKeIAJY8cuSqZeylWpr22a9OAthfVBzFjZQC3IP YZ/FK7MB24oqBBfajRAyui23mdXHSudjTvOK5zLz6OU5XRQ= X-Google-Smtp-Source: APXvYqyPSN6nivbnyYYG331g7S/j7xaW4GR8Ph/Nw0TI7Ak+NLy8JYKVV6h8YRvmSHI6Be7mNQAlz5rgQZQ0niyDxoU= X-Received: by 2002:a6b:90c1:: with SMTP id s184mr29990513iod.244.1562753786642; Wed, 10 Jul 2019 03:16:26 -0700 (PDT) MIME-Version: 1.0 References: <20190710095247.GC47193@kib.kiev.ua> In-Reply-To: <20190710095247.GC47193@kib.kiev.ua> From: "damian@damianek.be" Date: Wed, 10 Jul 2019 12:15:51 +0200 Message-ID: Subject: Re: FreeBSD mds mitigation. To: freebsd-hackers@freebsd.org X-Rspamd-Queue-Id: 3DC80845B2 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.986,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jul 2019 10:16:29 -0000 =C5=9Br., 10 lip 2019 o 11:52 Konstantin Belousov napisa=C5=82(a): > On Wed, Jul 10, 2019 at 09:06:31AM +0200, damian@damianek.be wrote: > > Hello > > > > FreeBSD 11.2-RELEASE-p11 > > CPU: Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz (2594.05-MHz K8-class CP= U) > > > > sysctl hw.mds_disable was set to 3 (Automatic VERW or Software > selection), > > HT disabled in BIOS, and i install manually latest CPU microcode from > > https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/ > > > > I wonder why hw.mds_disable_state shows > > hw.mds_disable_state: software Broadwell > > instead VERW? > > > > sysctl hw.mds_disable=3D1 causes hw.mds_disable_state: VERW > > > > These automatic selection works correctly? > No idea. > > How did you installed the microcode ? Was it loaded ? > Show the dmesg output after the 'cpucontrol -e /dev/cpuctl0'. > I install microcode in /usr/local/share/cpucontrol, load at boot. cpucontrol output: CPU: Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz (2594.05-MHz K8-class CPU) Origin=3D"GenuineIntel" Id=3D0x306f2 Family=3D0x6 Model=3D0x3f Steppi= ng=3D2 Features=3D0xbfebfbff Features2=3D0x7ffefbff AMD Features=3D0x2c100800 AMD Features2=3D0x21 Structured Extended Features=3D0x37ab Structured Extended Features3=3D0x9c000400 XSAVE Features=3D0x1 VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr TSC: P-state invariant, performance statistics --=20 damian@damianek.be