Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4194425ybi; Tue, 18 Jun 2019 13:34:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxb6TwZ//lUGQmw9bwPxaSwog67gJOvsX4BZA/g3Wx7F3vvhJxmc7RG3IaSa32ti69U7zrp X-Received: by 2002:aa7:8157:: with SMTP id d23mr122125627pfn.92.1560890098814; Tue, 18 Jun 2019 13:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560890098; cv=none; d=google.com; s=arc-20160816; b=pM2dKw21yh6b1M3HmhUHIkESGR8vncl6xa8kLbbirWBKGip59etIZxlR92gyTnoSGr EQ/DLlv//ZjOVnXeA/YlZxE8ehG5Yn06T1proAtDlPqYYpM2H/oNtW0x/0JdQd5oDA3h p5w9jUno8RMRt3Z9e6XrTW5kGWliZH3kZblkRwz75ZGqgDIhDMH2Gy/2u9WHUP89x31n mUBcLmJl9s6qF+bp4TDNQhFupmT062Fm7CGCX3iw8STvliDpS9IOt3DosNJK+eP8Dy7G womrfNe4sx5eVYJxwuHHjXjQ+I3wZyaw4cM9CQKVUiDbyVN/ymbCqbqgrjEldMdAfujr uPkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3Me18gZ4G0D32oI7Ykod1+DIQFZ1PZOVqgmun10TTO4=; b=K+UeLnCL+aeKC51vRNonR6W9Gcc428EHwg5y6TTiDAKSvVbhKMA80p3tzWUKUxkw4C Jxvfb0z4LCgLedx6wPqw4YF/SDyRV17KSbtP5phdulhTkYSrL75IATXO/6oWf7Y/b3XG x2JHT8Uq6SdOhqN3G3SKOOYAiYURr1JeRr3SLbA3psxvymSgrc5wrIl5ZulvIy1hnKGa nQ4kCak4rqQuMixiuSxRX4+YQzssC2hlQYgVojJNPCXO/Uqqyt2M692ProF+2h1UTGcv eM8FhAA2zwSB0iOfc6ttHwCnrsTNULiSAMIEWMFhJ+0bbd4pVgrMtKMyMhB4/+kdkuOS 051A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=h8ccuIFH; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si3282823pjs.98.2019.06.18.13.34.44; Tue, 18 Jun 2019 13:34:58 -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=@alien8.de header.s=dkim header.b=h8ccuIFH; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730674AbfFRUeZ (ORCPT + 99 others); Tue, 18 Jun 2019 16:34:25 -0400 Received: from mail.skyhub.de ([5.9.137.197]:49168 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730176AbfFRUeZ (ORCPT ); Tue, 18 Jun 2019 16:34:25 -0400 Received: from zn.tnic (p200300EC2F07D6009033472370AB0B0E.dip0.t-ipconnect.de [IPv6:2003:ec:2f07:d600:9033:4723:70ab:b0e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 01E671EC08BF; Tue, 18 Jun 2019 22:34:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1560890064; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=3Me18gZ4G0D32oI7Ykod1+DIQFZ1PZOVqgmun10TTO4=; b=h8ccuIFHDMdBvsVgdC3shdMPiM/G+BF2nYA51jFJrWXa3KRnbVTm+wmNvSNraqFXzXoyXJ DDpsOrrFvWWHmb1rCIx7/T98nKWT40nqBPI6Zlv1xDmJPkyPfAbpP8TGXRd03yCFWrjeez 2bdRNSJ4uraw8Zs5HBVKxBUc9M4nooQ= Date: Tue, 18 Jun 2019 22:34:16 +0200 From: Borislav Petkov To: Thomas Gleixner Cc: LKML , x86@kernel.org Subject: Re: [PATCH] x86/microcode: Fix the microcode load on CPU hotplug for real Message-ID: <20190618203348.GA16699@zn.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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 10:31:40PM +0200, 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 > Cc: stable@vger.kernel.org > --- > arch/x86/kernel/cpu/microcode/core.c | 15 ++++++++++----- > 1 file changed, 10 insertions(+), 5 deletions(-) Acked-by: Borislav Petkov Thanks for fixing that! -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.