Received: by 10.223.176.46 with SMTP id f43csp3336608wra; Mon, 22 Jan 2018 12:20:57 -0800 (PST) X-Google-Smtp-Source: AH8x224sy9xx2aWsDQXKlPUV79nmMGJgGMCZ0jQXLH3IP0YqaSO3Vzm6mD16O15saR9fIkkB2psd X-Received: by 10.36.253.204 with SMTP id m195mr63935ith.66.1516652457085; Mon, 22 Jan 2018 12:20:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516652457; cv=none; d=google.com; s=arc-20160816; b=RnnZ7t0dsrcQ1CUgGIld+bNeyGg+SJP+tUKbFGdse88qO4t0wJGCkQq/PK9EE9ZO31 2A3gL9KuYsuXJQm0+fahwqIoyxcfgJmjRonKIqoBx4fpsUe7YkUQ0ubzhKstnWlgNdvL Z6zHB+kisOrF7UiyCqdpxCCo5+MaedLjZ7o76ydJ7nhYkGWL9/mlKi0162PQISO7hk5i jf2byJCFKxmPXNUH43SHoqqflL9h06PBmYJ4xvuEmnEcBoLRX8z4k+fQf1bORHYMrD69 hzqr4OJLzMxaYR/EI6tnb0z3e6MxwNlp46J2AA47WUkngHeDLgz7vF2kAH5knH6To5N+ 30FQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=yQLpyDWhLWyq+GcXWb3KapwqtjEkCWcau05LAPzbSY8=; b=lNqIudYa7q5paO4EzXWoEAr0SxIMBqscU+HzCKLU0XvuZSW1h+pBKFxY0/rhzDtCFo r+kRQCmKjP6iqhxgOAdGTPQ6+kooY6ryoIzrwdS920zkf4U4puC4Hbi69TIh00TOQ5Iz x0WOwvkNCp2e528FnG9amHEEvwaizoK7tU/lWsgbaGaBhNq70ytuvX6LA3jlO0aX44f2 ok8nKlZYuedcD0DEf1KLOJuCY9PGtv248YC50rSTjceYY8gPtApaH8Yyu/o9cUzbnzXP PTz0CogiTaUEubAu3NzGTxiKWx15Wj12WYOc+/Q/5sTny6ZbuTHsVjFZBx7VBsSdZMdn h3bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MKJgFJsv; 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 l75si6833763itl.101.2018.01.22.12.20.44; Mon, 22 Jan 2018 12:20:57 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MKJgFJsv; 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 S1751765AbeAVUOI (ORCPT + 99 others); Mon, 22 Jan 2018 15:14:08 -0500 Received: from mail-io0-f170.google.com ([209.85.223.170]:37718 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751228AbeAVUOF (ORCPT ); Mon, 22 Jan 2018 15:14:05 -0500 Received: by mail-io0-f170.google.com with SMTP id f89so10775032ioj.4 for ; Mon, 22 Jan 2018 12:14:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=yQLpyDWhLWyq+GcXWb3KapwqtjEkCWcau05LAPzbSY8=; b=MKJgFJsvaViwacv5Bt7bZDe8D+SzbPCFfncH5o4ab9S0D7CZsIPYO4mx/fC5694YSt Kz3BYASzdz0peaL35zxMyAaXLk76cZwf5MBiKeBxBh/U6JKNuHBhfJ8kftoRtk9dyMk3 CxKgASW2KxQhNUKt2/kbGa21iIKmI1htvzlQHEOCQJYBj0SsXFMYDUhcUiALFk7ku60/ ufBjZJWywrFPL/kmSZ5ttQzR5CkQQofWew695R2uG+plDgkBIldf4s9h6V7TVuqt5km/ iiQ2L0vEWd0ZScNcevBGDbndQFOS90LRHMh3GmsmXb1PQRtAbkmhwkY4IeJCbiciT3qZ q0sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=yQLpyDWhLWyq+GcXWb3KapwqtjEkCWcau05LAPzbSY8=; b=Jmsfr9Ha1iLxK/zjhMD4pRYxaxB170snYDSRq88/0xFGyMdvo2UX1cAFgMHgUcrS7B UU6ATQxSVDv1WWw18RDEIqRKib1yAQdLC9sCY1pboCyg79DGnU9O4RArpS9tE8i/g8cK D/SArTv7Pk9d0+7uTy4p4CMvX+9eTskk/5zMUcyQElu2mP6eeNBGEot7owTdw/m2rIZb joEENQNCJvkm5IuAXdq+LUZZEZ5gt8abcjkX+yd8QaDCevQ4A/4QKmpTvAV840GCrAl1 YZY1Ly6dpTnDiiobrXZzFIAejPGw5opglYt6PGwaOvIaeijaLONWxe2UCuMZakUcCwpL VtpA== X-Gm-Message-State: AKwxytfUqCKNRhir3yozfAQzfJUtJBcNefdpdmWxSsYxuXRqw/vz9RqH 6Te0NMGQVbAxhDALZkxRn84eHqasZ+AzacKkyJc= X-Received: by 10.107.137.104 with SMTP id l101mr80605iod.179.1516652044664; Mon, 22 Jan 2018 12:14:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.59.196 with HTTP; Mon, 22 Jan 2018 12:14:03 -0800 (PST) In-Reply-To: <143DE376-A8A4-4A91-B4FF-E258D578242D@zytor.com> References: <1516120619-1159-1-git-send-email-joro@8bytes.org> <5D89F55C-902A-4464-A64E-7157FF55FAD0@gmail.com> <886C924D-668F-4007-98CA-555DB6279E4F@gmail.com> <9CF1DD34-7C66-4F11-856D-B5E896988E16@gmail.com> <143DE376-A8A4-4A91-B4FF-E258D578242D@zytor.com> From: Linus Torvalds Date: Mon, 22 Jan 2018 12:14:03 -0800 X-Google-Sender-Auth: MOBSCOCcw7ddaSx1mBn3DSNhhCk Message-ID: Subject: Re: [RFC PATCH 00/16] PTI support for x86-32 To: Peter Anvin Cc: Nadav Amit , Joerg Roedel , Thomas Gleixner , Ingo Molnar , "the arch/x86 maintainers" , LKML , "open list:MEMORY MANAGEMENT" , Andy Lutomirski , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , "Liguori, Anthony" , Daniel Gruss , Hugh Dickins , Kees Cook , Andrea Arcangeli , Waiman Long , Joerg Roedel 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 Sun, Jan 21, 2018 at 6:20 PM, wrote: > > No idea about Intel, but at least on Transmeta CPUs the limit check was asynchronous with the access. Yes, but TMTA had a really odd uarch and didn't check segment limits natively. When you do it in hardware. the limit check is actually fairly natural to do early rather than late (since it acts on the linear address _before_ base add and TLB lookup). So it's not like it can't be done late, but there are reasons why a traditional microarchitecture might always end up doing the limit check early and so segmentation might be a good defense against meltdown on 32-bit Intel. Linus