Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp300834imm; Fri, 31 Aug 2018 00:26:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYuDF6RxYc5YAy7LEyFL3o2iLYF8fjgMHLA5g8DIemecDcZPW/dR5FxKE7ghgSepSlGHSJ/ X-Received: by 2002:a65:41c6:: with SMTP id b6-v6mr13193907pgq.174.1535700408577; Fri, 31 Aug 2018 00:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535700408; cv=none; d=google.com; s=arc-20160816; b=gcfQ9mumgeQDNGjiS1mA8JE03+6V589R8uu/I3p3NuUICgfCRCJQIlYdaXedPfQBIh xhNEa+1ZimeftHS6LHmWHcgJ4ppan6OnRiDEJxEUBSbqbnFjKQf9QaCZ+jKf7qDo2Mej Vkt1XmK3MdydjoHMAjzvBqyKvugqKT01rySIWM6nsAmNzuR7GvugT4BV+A9jWfBISktx 5Hg/4guHKsAOg+dHhSOwOqZWhDZVXZefGPbDG/2ZjlldB8tTt+/MsciayOMxfpJWJ/B3 cLkyhqXh/ZXWf5a46k/SAX9jcGCkL5vwBIvTuizcL9Eq1iLuz9D+G6CnbodE82NeH70s Mp3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=KbW7sDHr45b/gFuA6JXSy6GCyZiSzQHML0E6vmx/Bs8=; b=tDVzI9HbKFp5Zf4sUrWX+WYRHtsB4yEEDZSmaIaTF/Buk5i2MUPk7zQtyyB5hErLzC tj5cIV/YvZ5VafD7v7L/rALARD4OpFSfoKJa8ETVskRPdB6KQ3bTttchwpFuzmxhpU7b PhWR+XF2S88dgeULxGVMMCNN5KjkH3b2h9OaMGhtS9M058XVv8dO8fOUdTGpuYpNJEgc ZcSJAjrKoBn/lHq4x5QQGlUuixAQQM8EBCIv9+aMe/4ylUUbBa+BcPHjlQAQa2n411Ta 6hhRc+FUQb3ee4sVZJrgbIkzr73sJC4pvBWUU5BJHpTcHbhF9Lj87HZDQg5EVfdti6x2 WiUw== 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 28-v6si8743255pgn.498.2018.08.31.00.26.19; Fri, 31 Aug 2018 00:26:48 -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 S1727282AbeHaLNZ (ORCPT + 99 others); Fri, 31 Aug 2018 07:13:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:55404 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727177AbeHaLNZ (ORCPT ); Fri, 31 Aug 2018 07:13:25 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0CF9DADBC; Fri, 31 Aug 2018 07:07:23 +0000 (UTC) Date: Fri, 31 Aug 2018 09:07:22 +0200 From: Joerg Roedel To: Meelis Roos Cc: Linux Kernel list , linux-mm@kvack.org, Thomas Gleixner Subject: Re: 32-bit PTI with THP = userspace corruption Message-ID: <20180831070722.wnulbbmillxkw7ke@suse.de> References: <20180830205527.dmemjwxfbwvkdzk2@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Joerg