Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2129406imm; Tue, 2 Oct 2018 21:56:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV60K8Oy4X4f1NshbHfIVOiuPNgaAKWY9Ub6buJ/xdkznuzxqrkzoQr2Vh+z+ISLR9jqYEQea X-Received: by 2002:a63:d00b:: with SMTP id z11-v6mr17224757pgf.317.1538542573333; Tue, 02 Oct 2018 21:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538542573; cv=none; d=google.com; s=arc-20160816; b=GikEDNLIWV1KmCVWsfZpOcehGyZZxjeEO6G0cV+OEoM/BeEjEgyv7k8W54HHCXxq6G Zn0lyOrmQAmYmqJ7+m0VGFihADI/Hv+OShD4b58zkudqbb6X6HKuRDrHqjMlFxTNrG0A eo5mkV06YiwiqRTIE3j2NK8IJcZgdTeuY6AEmpjkfPweLY1DPs+JrsbaRjYtz64Y0xY5 J42DyQkKnLDr/qkNUgqt4JGYozgiZUoZzYUZhCeqStg8XDdWCdYRk6WA4B0z14+lSMMQ 0V2MbvXgnjZg3YiPxLHmhuH5C0oqdMVeYwl9P12f1FEPtYOr2lyoI67lKUuK03MvXaiM sMrQ== 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; bh=6b++FvYsrTPz7uhKlYUrskYJix735RNp2hLaAfuJ9Ek=; b=h4Wg0xY1D9HBtBWh1aaRb6YULNKku8AUNd7YPEA8tFUbj1F7ixNFy9yL++kHbZ45oP hAIDqyRirm1Es8NK1YRvw3nSTv93FAnO4L8S2Tadyes4M4S8FMDEkeUWh5Df75oVnbw2 Epd83Z5ga1lj6SOo4X0DAqZU1Fsya3L0EMNkjbs2q6a8bNJz9WBaM9oaCfoNFeTOBK2z 6YVhVkDjBqGyub7jYIGC/pppH7HiiVvXLPT7/+VT/GjL9/HVc0iR7kArGNTkbTSrD3uk EV1TwhVAI1b1TYX9gHhWjWqolzlw/z2EM81q98PT4ouOghZhTXRoniUmKEtpUPc59Q8u IRBw== 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 30-v6si275383pla.282.2018.10.02.21.55.58; Tue, 02 Oct 2018 21:56:13 -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 S1726726AbeJCLmg (ORCPT + 99 others); Wed, 3 Oct 2018 07:42:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48952 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726533AbeJCLmg (ORCPT ); Wed, 3 Oct 2018 07:42:36 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AA6513082128; Wed, 3 Oct 2018 04:55:52 +0000 (UTC) Received: from asgard.redhat.com (ovpn-200-17.brq.redhat.com [10.40.200.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 59B885D76A; Wed, 3 Oct 2018 04:55:42 +0000 (UTC) Date: Wed, 3 Oct 2018 06:56:11 +0200 From: Eugene Syromiatnikov To: Yu-cheng Yu Cc: 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 , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue Subject: Re: [RFC PATCH v4 24/27] mm/mmap: Create a guard area between VMAs Message-ID: <20181003045611.GB22724@asgard.redhat.com> References: <20180921150351.20898-1-yu-cheng.yu@intel.com> <20180921150351.20898-25-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180921150351.20898-25-yu-cheng.yu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Wed, 03 Oct 2018 04:55:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 21, 2018 at 08:03:48AM -0700, Yu-cheng Yu wrote: > Create a guard area between VMAs, to detect memory corruption. Do I understand correctly that with this patch a user space program no longer be able to place two mappings back to back? If it is so, it will likely break a lot of things; for example, it's a common ring buffer implementations technique, to map buffer memory twice back to back in order to avoid special handling of items wrapping its end.