Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1437835ybl; Wed, 28 Aug 2019 14:53:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxy/yyf/K4b5G1km0+69RLCZBDp1OwZD04ojduOyS4sMUeX7h+zET4LTQ7+Io3jO/X0HIu7 X-Received: by 2002:a17:902:8f90:: with SMTP id z16mr6521961plo.138.1567029239272; Wed, 28 Aug 2019 14:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567029239; cv=none; d=google.com; s=arc-20160816; b=zkm/WPxXj+U5RJwR+ByYgSsV8jBdARVdLB5UZ3hIDsZkrVjfXQYN1fzPnuhf09qKxc qrID6kH5gGWe6LHzfu8zWT8y8VLIsXso8iKvC5aNi2VdOXWUiLLTFfSlEy2+jkQTBCdE QTEu+F1uwQDCvgEaBu2IDUY13iukPz0KcwlN7YlDK0QSBfoFWMX8olAyLi4DD6BLLHJP JTViS/ByoHEHPU9pNQyqIE9bepzq6tRa+OvA3i16nGOleYbcacK1RM+wtzhAxV0z2roG baL7haDD764u8vsI+9ldgoKuXmcLXaWeDWy076p8bpNybiBfaGQxmVuKAOPw2VBcHsrf 6B3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=VAg0Ya3jie+yP7Y373OsvUYdFwQ5BtKwjoBbYDGfSiU=; b=jRWWhvlwwgYQS4dopAlKAI10r0pAjzwryjB/ZviFvja8vPu1vfDR5unyUtUfZW8x04 /s81UniyTuFj6nXSoRQaqhdJDtrcBkqTjsOm+jvVZIEMETEz1vFf0ZwD6AJMZum+X1Af 28DAFM2rD2AxpH/hQlUa9FFoyac50MbVJ6P366VIhODM2jSzq1QtYj9GkJQr2HPWbE+N WMXxRGKO50egabKPrHVNiv2lGT1n07IfeedoyoYyxbFztPgHrUYl1pLp5D9eodxLiT42 0e7iM51ifFmuR8ZxlBjZQTaO5hdFIeGdqL8KxcnubLzimidDQdkQcyXwHnUxrPwW9t40 +YZw== 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 c14si373483pfb.252.2019.08.28.14.53.43; Wed, 28 Aug 2019 14:53: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; 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 S1727002AbfH1Vwr (ORCPT + 99 others); Wed, 28 Aug 2019 17:52:47 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:48577 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726735AbfH1Vwr (ORCPT ); Wed, 28 Aug 2019 17:52:47 -0400 Received: from p5de0b6c5.dip0.t-ipconnect.de ([93.224.182.197] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1i35ru-0005BL-EX; Wed, 28 Aug 2019 23:52:42 +0200 Date: Wed, 28 Aug 2019 23:52:41 +0200 (CEST) From: Thomas Gleixner To: LKML cc: x86@kernel.org, Song Liu , Joerg Roedel , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Rik van Riel Subject: Re: [patch V2 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable() In-Reply-To: Message-ID: References: <20190828142445.454151604@linutronix.de> <20190828143123.971884723@linutronix.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Aug 2019, Thomas Gleixner wrote: > From: Song Liu > > pti_clone_pmds() assumes that the supplied address is either: > > - properly PUD/PMD aligned > or > - the address is actually mapped which means that independent Bah. I'm a moron. Forgot to fix the spell checker issues.