Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4407079imm; Tue, 11 Sep 2018 11:22:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaDiWRIn4TufVjrH/saJPvGL2nmde45LQy20VEzgctVCwtNXSSL+EY/DD+FLFXs++FbgzLP X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr28138682plu.211.1536690151354; Tue, 11 Sep 2018 11:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536690151; cv=none; d=google.com; s=arc-20160816; b=esfQ/U53b7BcUR1pnDawvS++PxtSkABS/vUpATtIwsdkpU5kUT5RPJTC5RBx+ks+ix 3FNEbxoUHmLYl906sTeqoL6qV6W0b6twoajrJrKck88WzV1AqEfinKit70pLKsjyWvAj 2qWBjRJCk5jYzKWO/VuA5f25kJrjjRVUZgiwnZ3W9VlCwwomHQCJ8XMhmP/3uSYtB7NV n4gsRhKU0flO3sD93AQ7nXx2LA7T0BqN0jPzXes2ZBYYDSQCJ7YntQX1Gq9J2lKGFKmT xDGaE/nDkDz0wRKFJ8euPI3mptPeoshkvxd+gDdAI1U6jV/Lgz5F78p8ofDr58l65eH3 jVHw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=L8PWVi64V+HXxYaawqOWuD8gu2wOwwGDM6U615liPUo=; b=aTNzqzPJuD3sZrUvzVD+W7jfmHALsefe2XiwngDYTfSd7do7dMvIhIi6swEi6uU4HF x/9UlydUSU77GNIBoq6w1VVya2+fiZWFX5bkGLG7SK/o0jSdXCfYyTRNehNwTAy/zLEL lnRdh641Ix7ltCZkznzgURK3aK4l8jkZx/1d/3vwL0rJqoOcxASklR2zkZP+wRY1CA3L xotvoB9uAqBRqYd4FhNKWKLNJeIegCdQ5WV5f7ZOQWiD04z7TnbFLSq8HIFTHZU0RrML 0Ixu8ErUI55ki7JcGEm8a4i0NPGomJJoL7/p5fX5GPO5jYESNaSiC0R68XN9c/FR84RA lx0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=M+kQ3ESa; 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 y123-v6si21327400pfc.302.2018.09.11.11.22.12; Tue, 11 Sep 2018 11:22:31 -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=@linux-foundation.org header.s=google header.b=M+kQ3ESa; 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 S1727988AbeIKXVR (ORCPT + 99 others); Tue, 11 Sep 2018 19:21:17 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:40160 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726818AbeIKXVQ (ORCPT ); Tue, 11 Sep 2018 19:21:16 -0400 Received: by mail-io0-f194.google.com with SMTP id l14-v6so4359489iob.7 for ; Tue, 11 Sep 2018 11:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=L8PWVi64V+HXxYaawqOWuD8gu2wOwwGDM6U615liPUo=; b=M+kQ3ESaIuAdQrMpX3rL9UE0/78JGJ1tyB3JU5WWNT29XHOJYX1HN7s73bUk3K9C/1 TkrBNXd1SVprZR2mTA7VnTJLcc705uVEUcVPfZeJN2P9ZhZigqBF3CmGORlwooXU1g4P 7Mtly+RdoIyDKrTV01WSO/tKQLEY5tVzvvtMU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=L8PWVi64V+HXxYaawqOWuD8gu2wOwwGDM6U615liPUo=; b=QHd3rUZwl5Wszb/qEk0W/93YCUsYdpIP3/+kbAmBNHAfp6sL1OW7i9Jc7VAHPmU6Kw E/9OoQX5QhNW4CTYMvLNiQjnFFKKVYmFrLrQ7AupO+UWxEIU1kDlRS7bAjLScixF2alx 3IKyyD6bfWcQGxHuhuWWvWYuO+CeimKWYpPI4VlQSQSVTafGn4/biGW4ymnwFNu8VU89 HgPYpaYDsyGd75kq5S8HoEd6cQVEJ8zyZA34jHztnDtsy7PurrnTBwZZ2i750ubE7Gpf 59cqEZIRWZOIL6czVtxYs3PO7Cv1Cz7ZMEqQPpVIau6TJDfSp4Kthn3AXxvSV/3Vcpm4 TVDA== X-Gm-Message-State: APzg51DH58OMb1HguX3TjM9YleDrgmN5y3GUieVuAO6GzG30I4IyrFNR fhXQ+PahmALpJV3RaMybq3NWFoRFdKOyFXtm+W8= X-Received: by 2002:a6b:f609:: with SMTP id n9-v6mr23952143ioh.259.1536690045391; Tue, 11 Sep 2018 11:20:45 -0700 (PDT) MIME-Version: 1.0 References: <20180830205527.dmemjwxfbwvkdzk2@suse.de> <20180831070722.wnulbbmillxkw7ke@suse.de> <20180911114927.gikd3uf3otxn2ekq@suse.de> In-Reply-To: <20180911114927.gikd3uf3otxn2ekq@suse.de> From: Linus Torvalds Date: Tue, 11 Sep 2018 08:20:33 -1000 Message-ID: Subject: Re: 32-bit PTI with THP = userspace corruption To: Joerg Roedel Cc: Thomas Gleixner , Meelis Roos , Linux Kernel Mailing List , linux-mm , Andrea Arcangeli 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 Tue, Sep 11, 2018 at 1:49 AM Joerg Roedel wrote: > > I had a look into the THP and the HugeTLBfs code, and that is not > really easy to fix there. As I can see it now, there are a few options > to fix that, but most of them are ugly: Just do (4): disable PTI with PAE. Then we can try to make people perhaps not use !PAE very much, and warn if you have PAE disabled on a machine that supports it. As you say, there shouldn't be much of a performance impact from PAE. There is a more noticeable performance impact from HIGHMEM, not from HIGHMEM_64G, iirc. Linus