Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3565938pxj; Tue, 11 May 2021 07:18:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8aLzafw+VTe9pcz0bCcfs6jybHNuHUxKv7y84ShJg/xc30uPBqn4BtuYaSq8x7572mBhU X-Received: by 2002:a17:906:2ad2:: with SMTP id m18mr32115615eje.44.1620742708132; Tue, 11 May 2021 07:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620742708; cv=none; d=google.com; s=arc-20160816; b=odfwhQy7bybNFqPVGvhnxaULyYU6MqCioreKLHD6IszuUHzfffMH8kvBCBCEbNB+pI wHiAPgzGJXdQXvx5GEXz1fyRYyoWt2UdZf0GxvrirOJqdhPiUuWq/qWg59WZ9TvDzJq+ nTE35NWvge7Ln8BWn5cg7k5gz+YaPVKcbieu45/q9zT5SWFrcuu/JRRtu7EB79QjB77d UgEzo+mqXESu7axXg0gV5P6oD+lSl0+ay4zC29j4yMdSP9ZMKqE9DRrWInERY87VGM/R yvaO8VMJSqb8xrjXqk4N/6ASrtAEJOT8t/doQvI12ujTzG2IL8zD3S3eZ+2EU8OB4r0l tuow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=nE/xF6QQ6jy94Wje4Pn+qtr6n9UALuR/dYQUtBqieqc=; b=Sk4lMrzYeyDn7iezi6so3Cjv74CbEqwPlf8HFP/htSCirQBGkM4/wF84DR19lFPdut Q6O6VunKUFwD+XsIqa2pbTgNB6lc78HvY9qWvZn9YB/xgZkSx53biGECBIEc700A2VrX Uw0Z4ivwVNZJUOkMZdsB/nqZAYgUEJmtxdZ0s1i/0BeLsGcDv6ZkrZn0Zfce/HzRTuHy 9C7Y+uRl4gdq6jOdCPN5QwL+pDcEmRT6EOHDJTuJG8F90QsTq34qJohqxOp8V/nFJbP/ HfTUh2hJjHz1qiInwsEqeamnpiL21Jhjp1I8O3DT61Sr8yQnbOB7YSqtVfrgWul6vhvR 9Utg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=JmA4cUiv; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="6Uk50/dh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx9si16734874ejb.434.2021.05.11.07.18.02; Tue, 11 May 2021 07:18:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=JmA4cUiv; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="6Uk50/dh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231517AbhEKOQC (ORCPT + 99 others); Tue, 11 May 2021 10:16:02 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:44332 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231740AbhEKOP4 (ORCPT ); Tue, 11 May 2021 10:15:56 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1620742488; 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: in-reply-to:in-reply-to:references:references; bh=nE/xF6QQ6jy94Wje4Pn+qtr6n9UALuR/dYQUtBqieqc=; b=JmA4cUivwLl2pXz6tgkRIMdw+s0eK1DrJM77NK1wELBhpUwvy+4PpFU1Arx5sdJnBbUEdL hWiKDwJLUlAs+fNV5hSnnd8amECGXvyFSnpisE2pV1r2Bk6v/cEeqfRZhV/2eNm9f91CD1 4NXHPmWeffxbh+ng4TwE291xCTivpZqRUL1o2a6jTcjXsxfwGAk+Bwe6bRYfuIAfdQuHPd 9MtELQL416tbFdpH5ow664QrPBxo35jLXq1HgIGHPzIq7llyRNC5QAF/9h5IYAqPoFlxcX FVNQ4UgdXCmzOjwc/8x2XwUsyKGMgjbLQEtpTarCebhLXgDADFpin9uweZV/nQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1620742488; 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: in-reply-to:in-reply-to:references:references; bh=nE/xF6QQ6jy94Wje4Pn+qtr6n9UALuR/dYQUtBqieqc=; b=6Uk50/dhz52RlccDbVG6qKDjQCsUFpeDVQAcRulQqoaeLAJ9JqfBw59FVqKKBbN4zr/uMg ZMPDK6tuLuP8UfAw== To: "H. Peter Anvin" , Ingo Molnar , Borislav Petkov , Andy Lutomirski Cc: Steve Wahl , Mike Travis , Dimitri Sivanich , Russ Anderson , Linux Kernel Mailing List , "H. Peter Anvin \(Intel\)" Subject: Re: [PATCH 3/6] x86/idt: remove address argument to idt_invalidate() In-Reply-To: <20210511005531.1065536-4-hpa@zytor.com> References: <20210511005531.1065536-1-hpa@zytor.com> <20210511005531.1065536-4-hpa@zytor.com> Date: Tue, 11 May 2021 16:14:47 +0200 Message-ID: <87o8dhfjc8.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10 2021 at 17:55, H. Peter Anvin wrote: > diff --git a/arch/x86/kernel/machine_kexec_32.c b/arch/x86/kernel/machine_kexec_32.c > index 64b00b0d7fe8..6ba90f47d8c3 100644 > --- a/arch/x86/kernel/machine_kexec_32.c > +++ b/arch/x86/kernel/machine_kexec_32.c > @@ -232,8 +232,8 @@ void machine_kexec(struct kimage *image) > * The gdt & idt are now invalid. > * If you want to load them you must set up your own idt & gdt. > */ > - idt_invalidate(phys_to_virt(0)); > - set_gdt(phys_to_virt(0), 0); > + idt_invalidate(); > + set_gdt(0, 0); (NULL, 0) first argument it a pointer...