Received: by 10.223.185.111 with SMTP id b44csp1412067wrg; Sat, 10 Mar 2018 05:27:40 -0800 (PST) X-Google-Smtp-Source: AG47ELshhI1t9rNg9KryuPhJB7phzMveQFJK9bnHn6uOKXdsN2bL+jowuldkGGTSbG0VKgwuvruA X-Received: by 2002:a17:902:26:: with SMTP id 35-v6mr2170600pla.42.1520688460562; Sat, 10 Mar 2018 05:27:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520688460; cv=none; d=google.com; s=arc-20160816; b=HqDML7CQWqt3hn6lCFrV2jmvCKPJiugj6Qjh2gY2IPKA7KzPQqdx5DAGJjEqQ9IXVX DaUZ0DQmGk3vzHYahYtHlBg4p/acBl9Sf8Jbhdny4i1kjfBGSQ+cxS/qQ3qj2qgqFwJs IeXInZo6/wKY2Xqld5FgjdmF6E0vJ0n10KSs3lBHXx8Y2ghNwPRqzBoLKpKJojQwN8Nh qEPOaS6uRhxd5OyVNWzgpgdfuHklzsk2pvoLQ8EdaqjoSKY14jEmqPWC77ctF08dn+I8 agbPzMGqxuRQH4u9UcMWgXAspcnpT7iGS1X4UA/fUfuZiprhdyR0b0Q+LlpH6znvlXYs B+jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=+fhsxj8ycZzzYZl7QHkIij+8vZZXTKR8Sg6rdNTT8Ys=; b=dkLHUbm17QvoSrQg/OhpVPWUdl9bpoaBP+gS66KS27QHNvp5ZxLk7PZQvXX0+Vq7U3 XdEuaRiXk6LAvit8Wlkg0T+UdF7KaN8UC/3QV49Z8y5yb/XaI1LPU583k2HsZGhm1b/V cC4h6L3SHCS+22uulHaB0kGmwSw6i85/7EQxeTK554oEb8qdNvA91x83qcCl+DeeoapM 04Vi1IIjIhyo2ZqRnlJOXnLgQ7S+EMFfGVn8SwES4fXTuitJZ+JhnG5JIli6/gUC9j8u WNjb8TPo5Nao0zWzLMD+k6H1OWyvg4pEVSZPehARf92qAFHlVDo50GyQznNryc3mZIyF Bc7w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x63si2695361pfi.173.2018.03.10.05.27.25; Sat, 10 Mar 2018 05:27:40 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932958AbeCJN0g (ORCPT + 99 others); Sat, 10 Mar 2018 08:26:36 -0500 Received: from vps-vb.mhejs.net ([37.28.154.113]:51410 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932759AbeCJN0f (ORCPT ); Sat, 10 Mar 2018 08:26:35 -0500 Received: by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1eueW8-0001nR-7s; Sat, 10 Mar 2018 14:26:32 +0100 Subject: Re: [PATCH] x86/microcode/AMD: check microcode file sanity before loading it To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org References: <34e9d679-2eca-90cf-9a95-3864f0be060e@maciej.szmigiero.name> <20180310091838.GA8261@pd.tnic> <2cfade76-7d3d-38be-8da6-5927a043a91b@maciej.szmigiero.name> <20180310131202.GB8261@pd.tnic> From: "Maciej S. Szmigiero" Message-ID: Date: Sat, 10 Mar 2018 14:26:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180310131202.GB8261@pd.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10.03.2018 14:12, Borislav Petkov wrote: > On Sat, Mar 10, 2018 at 01:26:00PM +0100, Maciej S. Szmigiero wrote: >> Without them, it is easy to crash the driver when just playing with >> microcode files > > You're not supposed to play with the microcode files. If you do and > something breaks, you get to keep the pieces. > > If the official microcode files have a problem, then I'm all ears. > Anything else contrived which doesn't actually happen unless someone > manipulates them is not an issue the microcode loader should protect > against. > So, shall we remove data consistency checks of various root-only syscalls then? :) Maciej