Received: by 10.213.65.68 with SMTP id h4csp737820imn; Wed, 28 Mar 2018 11:49:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+EtLN4Wr58DhsZl8EuURiXIO2Iu3KoPtEiTuUFz6yFMnefwEePPJTj5ZKr+JXvUsVn63Lv X-Received: by 2002:a17:902:a709:: with SMTP id w9-v6mr5019640plq.378.1522262993375; Wed, 28 Mar 2018 11:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522262993; cv=none; d=google.com; s=arc-20160816; b=N6lFKmr47F/sBaVakS2H2KBOrjxjndFSnAAlm+zFxKczeWbUUzP+vkbot4ZpFwa7Od Db17ZTq0hU0urLOzUYr9WgJP6f65jZgAha/ThT6yU/fSfQGvqaQjprk9IQu42t717tBo tKFdc2cWHVog8aJnvUbXN1izOJXY4P4RhTNXWFW4+/D7Fyp4eSpS29jS9eo1nZoLguNd S2/UX6zu/WOjpk3PTOUaF074B7BrJBXBuMZ4XnJXegAH8NJ77vVyimsX8LTddnhfDPZY FRiGMbiowspY38ntFmh+y5YNX8RZ8TBFhsuDQiSEsNt1qNs52mzZJsbykzhVKa2OEASl 2JaA== 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=f+re0HW/85NsVu/LcchDagF2oAbLnTK285vXqWgR0wo=; b=KpzNFwmZKJ0NBhAEKpJn4r9o9qczAZO5OcRMpaEkqNxe+18UL2tNiF+cYDTXTfQ/fz Lp+hMHhv6ujTHtI712odcEr4/hEzpcj6g2XmoXqgfzrroN9e4Ke4dQEb+Ap1p6c90sp7 SJCifm9erVXLzC3s0aemZKty6MgK/OEyS5dQqjH43Lt28qT3ve+bT72R6NNR6emLq3CE FLa959UyH1tQ+h7MD30mvKCl3tYDgSvUK8AyHiIEe7WBDAg1YmFFfqXZ+a/fiDfMhr9q 4mwEpxh+5Fwth+bJ2qelA1AvMBdop4Ur6XzPVW8SoAd3++Spt+imwGNlOFjj2j/GPUUi Rs0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CD1wumWZ; 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 z2si2841665pgz.328.2018.03.28.11.49.38; Wed, 28 Mar 2018 11:49:53 -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=CD1wumWZ; 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 S1753306AbeC1Ssb (ORCPT + 99 others); Wed, 28 Mar 2018 14:48:31 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:39469 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752447AbeC1Ss1 (ORCPT ); Wed, 28 Mar 2018 14:48:27 -0400 Received: by mail-lf0-f67.google.com with SMTP id p142-v6so4934538lfd.6; Wed, 28 Mar 2018 11:48:25 -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=f+re0HW/85NsVu/LcchDagF2oAbLnTK285vXqWgR0wo=; b=CD1wumWZSUY5qmKZuBBdEik1FbB1ON9wPMkNWAGm+C+H0J4OsDvYI3Xa15REqf8gXq 0D4UvADPl6+TJ7K9OhzbxbY5jKPHXyzK9HBSCvwE2a5x3rsO2+1txf/+Eg1vvgalG++r 3kHiFLki6AevUnXf34z3UHgayXT4D/iV8PLy/Iqk/OpCu+sQaV7ZYj7RquWO4Yrd677i nJbq9TzpDi8f+foLTeoZPBJkXyJ3UIb32SyLiuDNuT4HjxMJ2almwXn2YGXcNrJ60xke F5Yu4qj162FQhuKICDEsgcbRqknXIvTAE9S+Boq9jnTFE8o+o3XKRQzLBktJF3d3LRa+ KoQw== 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=f+re0HW/85NsVu/LcchDagF2oAbLnTK285vXqWgR0wo=; b=J8MNML5++vj1OnyXGhDlqyVJhITjshOU8Qu0oaK+/htPJ1DY2bpW+4SKpoCGUUveWd RzQ9z3iwk8SWLz1gzAYQjL4WGgX9PQOSpCfCAoNMQre2+v0C28LBkR2D6MJMrdr3c8hH 8GHqgx4zJ7UORyV3uXwMbTmcGMC+tSzqz0PZSN5rv9C/Ccy+fXIGi859HqxYLPVKRwXN H/BQIDzaYAYNREd7cVilftl5W5Srhi7FmTi51q1llNMol9hmqgoBA+qXhP88SQSSpbYx fyMYzA+7WL7GiEeI07/EpxhO3XmgU5xpy263k3NmsJg+6rQldNSMaqFh+IhbKPZGLrTr PF7Q== X-Gm-Message-State: AElRT7EokOEx7E332QtS1eZAJmVFOXPhx80Hpe6tOsrwDDK+o9DKaDaF heiug2I2bUxjarHtw5bJdHQ= X-Received: by 10.46.129.7 with SMTP id d7mr3425773ljg.148.1522262904968; Wed, 28 Mar 2018 11:48:24 -0700 (PDT) Received: from [192.168.1.3] (broadband-188-255-70-164.moscow.rt.ru. [188.255.70.164]) by smtp.gmail.com with ESMTPSA id q28-v6sm804487lfq.63.2018.03.28.11.48.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Mar 2018 11:48:24 -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: <20180327221635.GA3790@thunk.org> Date: Wed, 28 Mar 2018 21:48:22 +0300 Cc: Michal Hocko , Matthew Wilcox , 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, 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, Hugh Dickins , kstewart@linuxfoundation.org, pombredanne@nexb.com, Andrew Morton , steve.capper@arm.com, punit.agrawal@arm.com, aneesh.kumar@linux.vnet.ibm.com, npiggin@gmail.com, Kees Cook , bhsharma@redhat.com, riel@redhat.com, nitin.m.gupta@oracle.com, "Kirill A. Shutemov" , Dan Williams , Jan Kara , ross.zwisler@linux.intel.com, Jerome Glisse , Andrea Arcangeli , Oleg Nesterov , linux-alpha@vger.kernel.org, LKML , linux-snps-arc@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 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1521736598-12812-1-git-send-email-blackzert@gmail.com> <20180323124806.GA5624@bombadil.infradead.org> <651E0DB6-4507-4DA1-AD46-9C26ED9792A8@gmail.com> <20180326084650.GC5652@dhcp22.suse.cz> <01A133F4-27DF-4AE2-80D6-B0368BF758CD@gmail.com> <20180327072432.GY5652@dhcp22.suse.cz> <0549F29C-12FC-4401-9E85-A430BC11DA78@gmail.com> <20180327221635.GA3790@thunk.org> To: "Theodore Y. Ts'o" 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 > On 28 Mar 2018, at 01:16, Theodore Y. Ts'o wrote: >=20 > On Tue, Mar 27, 2018 at 04:51:08PM +0300, Ilya Smith wrote: >>> /dev/[u]random is not sufficient? >>=20 >> Using /dev/[u]random makes 3 syscalls - open, read, close. This is a = performance >> issue. >=20 > You may want to take a look at the getrandom(2) system call, which is > the recommended way getting secure random numbers from the kernel. >=20 >>> Well, I am pretty sure userspace can implement proper free ranges >>> tracking=E2=80=A6 >>=20 >> I think we need to know what libc developers will say on implementing = ASLR in=20 >> user-mode. I am pretty sure they will say =E2=80=98nether=E2=80=99 or = =E2=80=98some-day=E2=80=99. And problem=20 >> of ASLR will stay forever. >=20 > Why can't you send patches to the libc developers? >=20 > Regards, >=20 > - Ted I still believe the issue is on kernel side, not in library. Best regards, Ilya