Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp507136imm; Sat, 8 Sep 2018 03:26:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ/+0/qlR6HH+puiDwBXmPdIE6yNxQqF1+lAZR5yGNcODflhS4qA/EDxf1T7Mjj5D5Z6d4q X-Received: by 2002:a62:fd06:: with SMTP id p6-v6mr13227451pfh.167.1536402383411; Sat, 08 Sep 2018 03:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536402383; cv=none; d=google.com; s=arc-20160816; b=vuYCFp7xtIj9k9pDILbrKWt8OWG9ZAq1x4KK3SqswQIMvjyw/Ix9AoLjTa8e8ZWM/9 ZGx1FXZZVhvv4HfzDddC+F0RNJ0FQY/gIRU5U/+NdA7k7I5axH3sQt15iutVjb7qLVNQ BNvwz2DzCcWePahYsPg10OhbbfM5+sShrwzGSndnv4MqaqvS+Hcl3/kTfF4K/2q+KC18 8ewnJYCDwCONPeyHLxYFDqIkiHojfjrPPMqFpx2ENWWfoCTzz5fFL0BI2m3vwS/EFSJr IDCIK/ia0JUKMPXDqXu6R7G9q3PCHpqCyABDXenTJ23KEVrhsAEFZ2eIsJpgR7EZ0L3u sHvQ== 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=91YBuhEu261elp1NdVsrpia2pFhZ0smT+PvEoss2hbo=; b=NlpQR8nqIK/JM1z3DeUCc8zU9FPQLcmJT9+7tQr4ILltifMNAgVfdzYQdAw3Ysmb6C vVPRyuGYMrQXDfCrEL911TznlsOUnyDtwUgjWIdhEBb2qrW7eCuGOFqR9m4IQr+xYuXV saSBvnQLO+desjK0zNLkagjrR3xyunZvlkJ9ij95CdFBfa5Epi1AvThrmxdYUlw650ae FjNgf3lHFhT5HsvyOw4o9GttzFFYESqSIQCZDIkn4IlFLXvhxvuhOx+y0Pa1R+uq8ewZ hu4AJitZByuVjPpwvjEndrr9sZfLG1uC1/QuuK83pH2bHWbErR24tO5yppQrg0Siopxu THuQ== 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 o34-v6si10977263pgm.502.2018.09.08.03.26.07; Sat, 08 Sep 2018 03:26:23 -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 S1726778AbeIHPJa (ORCPT + 99 others); Sat, 8 Sep 2018 11:09:30 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:37472 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726472AbeIHPJa (ORCPT ); Sat, 8 Sep 2018 11:09:30 -0400 Received: from p4fea45ac.dip0.t-ipconnect.de ([79.234.69.172] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fyaPS-0006Jc-QO; Sat, 08 Sep 2018 12:24:10 +0200 Date: Sat, 8 Sep 2018 12:24:10 +0200 (CEST) From: Thomas Gleixner To: Joerg Roedel cc: Meelis Roos , Linux Kernel list , linux-mm@kvack.org Subject: Re: 32-bit PTI with THP = userspace corruption In-Reply-To: <20180831070722.wnulbbmillxkw7ke@suse.de> Message-ID: References: <20180830205527.dmemjwxfbwvkdzk2@suse.de> <20180831070722.wnulbbmillxkw7ke@suse.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 Fri, 31 Aug 2018, Joerg Roedel wrote: > On Fri, Aug 31, 2018 at 07:12:44AM +0300, Meelis Roos wrote: > > > Thanks for the report! I'll try to reproduce the problem tomorrow and > > > investigate it. Can you please check if any of the kernel configurations > > > that show the bug has CONFIG_X86_PAE set? If not, can you please test > > > if enabling this option still triggers the problem? > > > > Will check, but out of my memery there were 2 G3 HP Proliants that did > > not fit into the pattern (problem did not appear). I have more than 4G > > RAM in those and HIGHMEM_4G there, maybe that's it? > > Yeah, I thought a bit about it, and for legacy paging the PMD paging > level is the root-level where we do the mirroring between kernel and > user page-table for PTI. This means we also need to collect A/D bits > from both entries, which we don't do yet. > > But that all means it shouldn't happen with CONFIG_X86_PAE=y. > > I'll try to reproduce and work on a fix. Any progress on this? Thanks, tglx