Received: by 10.213.65.68 with SMTP id h4csp16047imn; Tue, 27 Mar 2018 15:18:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/BVvsymq7AlIpCNa15dM79naiVE28pWMd+nhSyPrz8w1Lc9fHYqlW6vkidso9w/u/lhtZj X-Received: by 2002:a17:902:28c4:: with SMTP id f62-v6mr1065593plb.19.1522189089119; Tue, 27 Mar 2018 15:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522189089; cv=none; d=google.com; s=arc-20160816; b=w7k24qsswnB0I8kxrMTCUV9eKNZ36TizBlxVCKsclQqHPqJT5PdimyeEtJ+bCyGYlV dh6iDSTZxS1HDv7RhoBlf2kTHrX+exJ3EQG1BvDpLf8wfoPAj0cqBHPc/fl7qVnlc+QI WrioTDMNZAqprB3nz1w1JysLTR4BZEQhwYtiOcAszets9jtlUvR2A1twq78KU6oktIZZ XrH7IFd1zxR6f2WDtPTwFU6e5c/YTfRQxFH7j6/wduC83swe/3RbBuM2k2zz0yJAQT8q rv83n+coH214Qhw4oFibuy2eOiD0Aun2qUPsTGCjlpHlZT/LD3UEvJ3upWaSX3S87sGS ajLQ== 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-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=Qj2I7BshdUHsbFfEKXQ0bFfkdiDTRJGc48sJd/7D8gQ=; b=nVYxSlwb47JvHVUgyAH8Szw1fNj9GaFo5jPbnmiD8Wf7u4H4Q88n7I3NH1Q6PuVTw7 a77d1/AreWpi70tJ7VSMONFqpeW1pqdRZ3Ak65501OgaNrr4Fs95iHcmyY+Xtw2gs07A 8XzfMwGj6662IUZ0Lg7UP0XAzsrcE+a0IYyPu/82WUtnqIdAoJRWLCmUGUluH3jDacck GCjOFsN7OyDNFsgmfq95pkp9SNv5Ac3fhKSG3nJGhBOTStP4cATIN80Y1HSVKaGpf2O7 TLXZPt12RwoNS2H7fs/3Yfdf3+mXAnegJtlPIMUyZOIQln3i6Uve6oUSHLkJz5v93Gy8 eUIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=btEd/5pM; 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 i127si1474111pgc.568.2018.03.27.15.17.53; Tue, 27 Mar 2018 15:18:09 -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=fail header.i=@thunk.org header.s=ef5046eb header.b=btEd/5pM; 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 S1752282AbeC0WQx (ORCPT + 99 others); Tue, 27 Mar 2018 18:16:53 -0400 Received: from imap.thunk.org ([74.207.234.97]:35412 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751913AbeC0WQt (ORCPT ); Tue, 27 Mar 2018 18:16:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Qj2I7BshdUHsbFfEKXQ0bFfkdiDTRJGc48sJd/7D8gQ=; b=btEd/5pMdHT1reg7t3RBaUE+uy /Bdw3z7jY7XeWJoswHfXhWDplC89IpsQG/vDQ6v1dDJtSejjuTff8lZCXoolBOru0ZDECFa4i2Sel +sLj1kXCx8bmRRzTvzjDMJZe+nV+SxziLAYDIYo7YWW9gxNtak2ZhetNJJWJVDEUw5as=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1f0wtY-0006Ts-Cm; Tue, 27 Mar 2018 22:16:45 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 980CD7A0158; Tue, 27 Mar 2018 18:16:35 -0400 (EDT) Date: Tue, 27 Mar 2018 18:16:35 -0400 From: "Theodore Y. Ts'o" To: Ilya Smith 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 Subject: Re: [RFC PATCH v2 0/2] Randomization of address chosen by mmap. Message-ID: <20180327221635.GA3790@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Ilya Smith , 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 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0549F29C-12FC-4401-9E85-A430BC11DA78@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2018 at 04:51:08PM +0300, Ilya Smith wrote: > > /dev/[u]random is not sufficient? > > Using /dev/[u]random makes 3 syscalls - open, read, close. This is a performance > issue. 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. > > Well, I am pretty sure userspace can implement proper free ranges > > tracking… > > I think we need to know what libc developers will say on implementing ASLR in > user-mode. I am pretty sure they will say ‘nether’ or ‘some-day’. And problem > of ASLR will stay forever. Why can't you send patches to the libc developers? Regards, - Ted