Received: by 10.213.65.68 with SMTP id h4csp122747imn; Fri, 30 Mar 2018 02:10:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx48zLSTZpTu2PCNnbiQR8Whk52c4LcZ+iChdOwbBy8UN0N3SXsT2rt+o4UYym1J7RSx5AtKc X-Received: by 2002:a17:902:684d:: with SMTP id f13-v6mr11942277pln.230.1522401049223; Fri, 30 Mar 2018 02:10:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522401049; cv=none; d=google.com; s=arc-20160816; b=JbOqpfSDITHLkNpgH3is9stOyCRj+nrDvliXYsZCCLrruWNbtlq6xIz7ddAmaliD1q WJWJzplHmn5m0p6CFcBydxMK3hmeUU4GyxQOfj69iZBckNEqvHEQHsURTf/o0pkt8cne NQ6/pF0M78M6LTsFSHyVKvL0NQfzI1jMntw2B9icTsw/dnMtg9R8j9wUg0heqTUyJeee E06QavT3hB7IdxcFEE0Cl7S0J9R5kRsGBKyP0771y6dXHqG+zqgXZggw7DNGJCyL8qOp yg4htBQrD0FJHgHTog7afwwd+nGEVEa0I47MXT9iFVoNjfLpgWkyIMve/2zAhckfzwj5 nfBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=ZTjxoqKaoobJFUevSLgPJQU741b1iW8H0MvOHx0z9s8=; b=LZgQf26vWWj0eVKnJ9I81iQodCGF9azWXXk2WW9oIW6Y0s8hdJtg6k+qeFcPEVlfU1 avDthstttkLHcb7YeftQkW0zPKySWR9mlYFxTKXv4Caarq+7dYMd5fzMXpDk4lBUwncz M2+LU8M5E8aXjKWlBobynBdInQt1NNiwOOcd3Xmf99qwiG9sCuk4z+Gk4edN8V8+Iqm2 nEcgIl6emN00kAO7IcClYN2WspgJE9yYAg8H9JT5SHHnKlfXs+wWuocc66BglzBwDIUS HMPUa0wPDqdTbU9zS1w/aPNT7iiVkOFRXrgd3X1iYp5tBjweO+s5OTrcNrYWjcoFQv7E LY7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RouoAPah; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5-v6si8130371plm.443.2018.03.30.02.10.35; Fri, 30 Mar 2018 02:10:49 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RouoAPah; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751434AbeC3JIL (ORCPT + 99 others); Fri, 30 Mar 2018 05:08:11 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:46166 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751230AbeC3JIE (ORCPT ); Fri, 30 Mar 2018 05:08:04 -0400 Received: by mail-lf0-f65.google.com with SMTP id j68-v6so11753188lfg.13; Fri, 30 Mar 2018 02:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ZTjxoqKaoobJFUevSLgPJQU741b1iW8H0MvOHx0z9s8=; b=RouoAPahIBeHWmIgnH+8/cn6AMZFJbZqrK40ZUVYzW79JDPzZE8r5ASWUNWmrwduLD 8f3shx1rqIvJjr0jRdyDRmGnKNyvMEC0a5YCVSM/NCLq5b0xvwFWnNt1pRQUr5hsByYi xFtAKpsQZ1g1tu0/giU7BNmHi4ujjdm/+NVAbpbkcN9w2p8xRMD9DyxZynXNAC92a5pM N864y0bNKHpK5NT3AJ2ToR0BksDVFur6bU7r6BRX0jkeT08EVsrQVtnfbBkcgmVziYks aN45ncRS6DPb0rwCzGp5TJWCA0WgpNitY6WmXPnb6XKnwFIencXwlyj+9q35Cb55NJIC d3Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ZTjxoqKaoobJFUevSLgPJQU741b1iW8H0MvOHx0z9s8=; b=gTMDrREV/+VmsXC6vRFTa/SK7wxsycOvKbuWS61q33+3kn5wlzVRWdAgZFIVXO3JDs hDsvxpaAqSoUXPYyOJykNIvbwG28b/t5IWa1Pc86cYRWtXdpWAvTLdU+NwpIeK6altdo pn/w3Ll2bPBMB8M1me0JwOrOQWne6gFnn0TJkKq2zpUpJxOd8UGK3EYeN0vZJBJrsBbU dKH0TCiTfAYYq4edIDxeZTihLLYnaSnAWphpY51he8oAlsIZvnUYJ0GTB8+BZT6XOp18 CGu3jpwQk0EcaehqD1ftSpiJyyjzA1cwjb5GRZ9Q0w4X7zwbnyOkPCRRe1SpZWTfjUWC HQQw== X-Gm-Message-State: AElRT7HWHGRIqudcbCSkXMC8cu2mjn3ld//9FHxLwi776hSYcZ6IoFL1 Fc4uX8U6PF1/7S/IA+rdxls= X-Received: by 10.46.57.19 with SMTP id g19mr7397119lja.127.1522400881844; Fri, 30 Mar 2018 02:08:01 -0700 (PDT) Received: from [10.0.36.208] ([31.44.93.2]) by smtp.gmail.com with ESMTPSA id q18sm1396174ljg.35.2018.03.30.02.07.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Mar 2018 02:08:00 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [RFC PATCH v2 0/2] Randomization of address chosen by mmap. From: Ilya Smith In-Reply-To: <20180330075508.GA21798@amd> Date: Fri, 30 Mar 2018 12:07:58 +0300 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, Helge Deller , 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, Michal Hocko , 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 Content-Transfer-Encoding: quoted-printable Message-Id: <95EECC28-7349-4FB4-88BF-26E4CF087A0B@gmail.com> References: <1521736598-12812-1-git-send-email-blackzert@gmail.com> <20180330075508.GA21798@amd> To: Pavel Machek X-Mailer: Apple Mail (2.3445.5.20) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi > On 30 Mar 2018, at 10:55, Pavel Machek wrote: >=20 > Hi! >=20 >> 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. >=20 > How will this interact with people debugging their application, and > getting different behaviours based on memory layout? >=20 > strace, strace again, get different results? >=20 Honestly I=E2=80=99m confused about your question. If the only one way = for debugging=20 application is to use predictable mmap behaviour, then something went = wrong in=20 this live and we should stop using computers at all. Thanks, Ilya