Received: by 10.213.65.68 with SMTP id h4csp72680imn; Fri, 30 Mar 2018 00:56:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/trkTg4jY1+zj1G6Y3oCSsdwuOYWqaIDJ5cAKouuTs5kowRhhCIRjaF12vS9S9kFM2KpQN X-Received: by 2002:a17:902:102c:: with SMTP id b41-v6mr12054157pla.39.1522396595935; Fri, 30 Mar 2018 00:56:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522396595; cv=none; d=google.com; s=arc-20160816; b=QyGBR8P+lD69CALOSBeHncD71QWY7uqwXvYOCLuMw0EuvNhB2MIeUF2siVSK+we3Ps FOHrpfWYoRyrm4B6B0QPygt4tEGrdkzD4Z4A4eFY4B2OwP/5Fj9QSZJno6QVRLHFRzLQ RCDYmGCQN9/VEYoInFI4x4F9Fnj6aR/GkiVHK1siRmIgmKtJqHBmaUhSCiIBb5oX8clh ZeGNFVFEXxyW+gXv2jYYtv4R+2zXZWD+O+8ecJ1adJHwx/OAOIBTFgjsU1d4ymH1oxQP pa7i3FlgK8uVHzt9vD9Oud5snMRky84gs0WgzV5yO1CUlqkj85UkMwrIPgq6y5Am46Xq dzOg== 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=SqOVL9tkEgTMNeif65Vhv/sS0Gnorhk+pC/m2oy00nA=; b=rvjBR4oWF8tCNbRMQTUKevnUNmeJE4te9BX0RokI+dVWTGiGZ5svuNfdXKyWOF3q9L eDRxuud7qno0mFKbtU3hiLowXvhtHZQbw5VhUnnIQ3lGyewa4K9xBGFS34RwG4yLWQ4W DOpAVxs23+5gKfIvB0Ln8XMX/NE0ZfyvwTthiEVWNhdS2Ueyq1cES0i587+V3bqS0xhh ct4QGxmkbQ4o/9ZIHfCNBwC6aTAw5HTDQ0MGa3k/TAgFqMr+YTLrqdxxqY0AI/vEru+r 1ogsmI8p37TeU3yHTAjNtAhJdsp4HCjxpa+bLp+MTn1VtMC3XmIlrHBfVmJq7/QW39fN 86oA== 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 g6-v6si4156828plp.605.2018.03.30.00.56.21; Fri, 30 Mar 2018 00:56:35 -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 S1751163AbeC3HzP (ORCPT + 99 others); Fri, 30 Mar 2018 03:55:15 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:36365 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750741AbeC3HzM (ORCPT ); Fri, 30 Mar 2018 03:55:12 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id C15738037F; Fri, 30 Mar 2018 09:55:08 +0200 (CEST) Date: Fri, 30 Mar 2018 09:55:08 +0200 From: Pavel Machek To: Ilya Smith Cc: rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com, vgupta@synopsys.com, linux@armlinux.org.uk, tony.luck@intel.com, fenghua.yu@intel.com, jhogan@kernel.org, ralf@linux-mips.org, jejb@parisc-linux.org, deller@gmx.de, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, ysato@users.sourceforge.jp, dalias@libc.org, davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, nyc@holomorphy.com, viro@zeniv.linux.org.uk, arnd@arndb.de, gregkh@linuxfoundation.org, deepa.kernel@gmail.com, mhocko@suse.com, hughd@google.com, kstewart@linuxfoundation.org, pombredanne@nexb.com, akpm@linux-foundation.org, steve.capper@arm.com, punit.agrawal@arm.com, paul.burton@mips.com, aneesh.kumar@linux.vnet.ibm.com, npiggin@gmail.com, keescook@chromium.org, bhsharma@redhat.com, riel@redhat.com, nitin.m.gupta@oracle.com, kirill.shutemov@linux.intel.com, dan.j.williams@intel.com, jack@suse.cz, ross.zwisler@linux.intel.com, jglisse@redhat.com, willy@infradead.org, aarcange@redhat.com, oleg@redhat.com, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-metag@vger.kernel.org, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH v2 0/2] Randomization of address chosen by mmap. Message-ID: <20180330075508.GA21798@amd> References: <1521736598-12812-1-git-send-email-blackzert@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <1521736598-12812-1-git-send-email-blackzert@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Current implementation doesn't randomize address returned by mmap. > All the entropy ends with choosing mmap_base_addr at the process > creation. After that mmap build very predictable layout of address > space. It allows to bypass ASLR in many cases. This patch make > randomization of address on any mmap call. How will this interact with people debugging their application, and getting different behaviours based on memory layout? strace, strace again, get different results? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --9amGYk9869ThD9tj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlq97VwACgkQMOfwapXb+vI6UQCdF4AyQJZJhtFyHLBBqwpvR1q8 v88AnRJDGP+1mNMTwfSngE35HzilPhGr =dXPW -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--