Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4084435ybi; Tue, 11 Jun 2019 00:24:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLLs3uY3DirY+mdZCc9uTB1CZSbnjXXeAnNyL0Vxn+qZExJkISiBhWw8u0X5t/RWAGMpDy X-Received: by 2002:a17:902:e6:: with SMTP id a93mr32090848pla.175.1560237886213; Tue, 11 Jun 2019 00:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560237886; cv=none; d=google.com; s=arc-20160816; b=OQYSWDZpIzmcMlLgsLd66Muvg0vy66I07fl9uQpqEVHe1MJe5QcQ6Xg857TzgNR4x8 812KmM16n8xAhR8uv6HcgwSFkyha153UFEHo2sO7fJZJWikyLdqCi5bol021wwfMZrD+ HXiOg1wsbHWj/OqIVgO6wmqbJapRnCqagc9N7n7FxTONoX4PdmFKPFPPdQMi863Davgg u1SYwFIlni00X/uGCUzRF+lzHpp/WATh7TAyaXcMZeIdo7OvOqesHq73Pu194dtm2xpr f843++RU1l7llP1I2iCViS+F/Jt4twXlbispx9mtjP7c5fOeacIP2Ia99i7omOURzE8c Jv+g== 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:message-id :in-reply-to:date:references:subject:cc:to:from; bh=Chqn/2tQLJnYU0wO6ILZVGDh9Ia2h1s7kcE6+jvBc1E=; b=vbYIVg5mnlTqo5Nw5CJaxvKGXG1AoXSs8GBwqFYGnI7150l5Wch3TpCSfGImpPaM0P FDNpAfe0eANMdEhrah/2poeLMbWsPnHMX8k26d+/l8SqqbXrMxHBkaD62HzMnREtN+4N UxDEBqsRupR3YPCO80nwCwsKisCi++Vcy2ZqksivrfF8LdeAECpYLBcW+xP1lmjqpW/S fO88cnH5rcUDzG/u8Noc2vfILiOfW0cFyUGjFm5gPRQHD6K2iW6fao1YzYZ8OK8vUR4O b7pKD8tpfJnuxwWD0oZ6m51LK3j2xd7dQKT/w6hE9PYGDBPpxg6uq98NI61OAq5H3+Cy vWng== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k2si1370420pls.196.2019.06.11.00.24.30; Tue, 11 Jun 2019 00:24:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404319AbfFKHY1 (ORCPT + 99 others); Tue, 11 Jun 2019 03:24:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39522 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404260AbfFKHY0 (ORCPT ); Tue, 11 Jun 2019 03:24:26 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 425D6C18B2F3; Tue, 11 Jun 2019 07:24:20 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-118.ams2.redhat.com [10.36.116.118]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4F4B05D721; Tue, 11 Jun 2019 07:24:04 +0000 (UTC) From: Florian Weimer To: Dave Hansen Cc: Yu-cheng Yu , Andy Lutomirski , Peter Zijlstra , x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin Subject: Re: [PATCH v7 03/14] x86/cet/ibt: Add IBT legacy code bitmap setup function References: <20190606200926.4029-1-yu-cheng.yu@intel.com> <20190606200926.4029-4-yu-cheng.yu@intel.com> <20190607080832.GT3419@hirez.programming.kicks-ass.net> <20190607174336.GM3436@hirez.programming.kicks-ass.net> <34E0D316-552A-401C-ABAA-5584B5BC98C5@amacapital.net> <7e0b97bf1fbe6ff20653a8e4e147c6285cc5552d.camel@intel.com> <25281DB3-FCE4-40C2-BADB-B3B05C5F8DD3@amacapital.net> <3f19582d-78b1-5849-ffd0-53e8ca747c0d@intel.com> <5aa98999b1343f34828414b74261201886ec4591.camel@intel.com> <0665416d-9999-b394-df17-f2a5e1408130@intel.com> <5c8727dde9653402eea97bfdd030c479d1e8dd99.camel@intel.com> <328275c9b43c06809c9937c83d25126a6e3efcbd.camel@intel.com> <92e56b28-0cd4-e3f4-867b-639d9b98b86c@intel.com> Date: Tue, 11 Jun 2019 09:24:03 +0200 In-Reply-To: <92e56b28-0cd4-e3f4-867b-639d9b98b86c@intel.com> (Dave Hansen's message of "Mon, 10 Jun 2019 15:02:45 -0700") Message-ID: <8736kgd1po.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 11 Jun 2019 07:24:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Dave Hansen: > My assumption has always been that these large, potentially sparse > hardware tables *must* be mmap()'d with MAP_NORESERVE specified. That > should keep them from being problematic with respect to overcommit. MAP_NORESERVE pages still count towards the commit limit. The flag only disables checks at allocation time, for this particular allocation. (At least this was the behavior the last time I looked into this, I believe.) Not sure if this makes a difference here. Thanks, Florian