Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1054509ybd; Wed, 26 Jun 2019 10:22:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+i6gnbQOSlp6BKnCmJboe0sL/921ZZVJE9g0ZisxaQUrGsyvOGDzbGKz1BV4R0vqQsj5w X-Received: by 2002:a65:648e:: with SMTP id e14mr4052903pgv.317.1561569779738; Wed, 26 Jun 2019 10:22:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561569779; cv=none; d=google.com; s=arc-20160816; b=yHQ6ksbE4uSW7GNfOgNE7elLf6Z9v5SNePFGBu5mr27pLDeHmhCDZmzT/uhMz0RZbr vu/dwPeSW/2t9MmrcmNoROSX4wC1tpSyVfF7uZs+rtspKOAbcZ1EAYtU1kNYw7y1fmX0 YfdXNxPWZf4g05rhqfQbaxYfiGcbCFT/gG4xFEMfj18HPhpcCQN+LIIyFy4e9mVMGLIr d0EXX4teiowmPTmTQM9EUWrl6FzxTuGsA3ygiY4dTP0477lkIhd4Y1cNbg7Rzpy8h07e fSVQfozNJhNRnRc0t/38aRN46sUQYFbuYaFGc6SAbZWYYc5Y2XGyN4wLfzapg70btOri VJiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FqE4LHsGkKEVxaQZwsQWP1LvUupRRHYnoysI8iQOlig=; b=I7IlNrg3lmdIDxM6ycbtnKXceTQx3EIIXJNQ+3HsL+ZpD5y3UcNDwO1tzodBK7rPTf kPpeIGsszoz0gWoZGDF3HhwxiFdqfDGVAcvx79mjyQxrwIvHaw4XEXydiEnmKU+sRE+K G1ICo9jel4cBmtVJhc2gEa30fK8rT/ryHw5tKSwhnid1XD9L7PxXsxtkdlv0oysLdToT rnoPxOLDkaeGr/RzraBkNOsy3ERGk1NpsTo+L0wmHKz5+VS1yFF1EbMfryiIONojBBlN WIFik/nRmsb5QBFOzLI3/NxRKIEQ7Z157nQUENd/fN3VhcM4GTqJRkhe8xPZgWPCQP7Z avuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EeSbNL2D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s34si2470802pjc.2.2019.06.26.10.22.43; Wed, 26 Jun 2019 10:22:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EeSbNL2D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726601AbfFZRUy (ORCPT + 99 others); Wed, 26 Jun 2019 13:20:54 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:42882 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726179AbfFZRUy (ORCPT ); Wed, 26 Jun 2019 13:20:54 -0400 Received: by mail-lj1-f193.google.com with SMTP id t28so3013933lje.9 for ; Wed, 26 Jun 2019 10:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FqE4LHsGkKEVxaQZwsQWP1LvUupRRHYnoysI8iQOlig=; b=EeSbNL2DHmNMRBZwdUCCw378VR05rGZdqNvvcrBIvHDQPcN2pzDeu2Nk9yCwOoEb5b VV9KnumlSW+U8yuBbCA/xY86wYLSTndcPLQPSlL346PbE4EjaCqMCAxFfc/PoAZlP7YO m9wj/3uVrEw1yfN5hB77xWeBJfGLGpUO4XUsI= 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:cc; bh=FqE4LHsGkKEVxaQZwsQWP1LvUupRRHYnoysI8iQOlig=; b=ZMvGt8U1XWXIlcAfhsxhqtdwK6OeiEz1WQqhf3B88NBJ0I/KUHRfDBgpJ/ewUBOAlz 9qRcU16dbgy8Hwu3Y7Oj01UfiwEN+VVZXF2MhiKMUrq4osdxUvjJpQ2Tp9JWXS8UFn+8 HkSH2HLf/cJYpXWtt9KrruQiTP298Hu02r5M7wWUZ+Tap9Mn952L3el0eBc6zGcp+S9k 1SJASu+OcwgVzThlQlrWmaW9JjUeFI3tjLDsGP3tP956XkoPvYOA9J+JsrfLhecAf6fS e+JnctXmRGmDSHPm75Q6Biap5VETNp1zhvUq/JeP5366N1o8AFR+gHuSJW3C4FlMvK3i VBhA== X-Gm-Message-State: APjAAAWskw1Z39XFOFZU4XGs1zq1wGEPHwALHJ54PAtHxMgB/n/Kh+73 f3iXXx3CQ5Uf4O5rd5fPkkvMIy6uvdA= X-Received: by 2002:a2e:6d02:: with SMTP id i2mr3622915ljc.124.1561569651910; Wed, 26 Jun 2019 10:20:51 -0700 (PDT) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id k4sm2928126ljg.59.2019.06.26.10.20.49 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2019 10:20:49 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id a21so3027599ljh.7 for ; Wed, 26 Jun 2019 10:20:49 -0700 (PDT) X-Received: by 2002:a2e:970d:: with SMTP id r13mr3653860lji.126.1561569648710; Wed, 26 Jun 2019 10:20:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Evan Green Date: Wed, 26 Jun 2019 10:20:12 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] x86/microcode: Fix the microcode load on CPU hotplug for real To: Thomas Gleixner Cc: LKML , x86@kernel.org, Borislav Petkov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 18, 2019 at 1:31 PM Thomas Gleixner wrote: > > A recent change moved the microcode loader hotplug callback into the early > startup phase, which is running with interrupts disabled. It missed that > the callbacks invoke sysfs functions which might sleep causing nice 'might > sleep' splats with proper debugging enabled. > > Split the callbacks and only load the microcode in the early startup phase > and move the sysfs handling back into the later threaded and preemptible > bringup phase where it was before. > > Fixes: 78f4e932f776 ("x86/microcode, cpuhotplug: Add a microcode loader CPU hotplug callback") > Signed-off-by: Thomas Gleixner I ran into the bug fixed by this. For 4.19: Tested-by: Evan Green