linux-alpha.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <1521736598-12812-3-git-send-email-blackzert@gmail.com>]
  • * Re: [RFC PATCH v2 0/2] Randomization of address chosen by mmap.
           [not found] <1521736598-12812-1-git-send-email-blackzert@gmail.com>
           [not found] ` <1521736598-12812-2-git-send-email-blackzert@gmail.com>
           [not found] ` <1521736598-12812-3-git-send-email-blackzert@gmail.com>
    @ 2018-03-22 20:57 ` Andrew Morton
      2018-03-23 17:25   ` Ilya Smith
      2018-03-23 12:48 ` Matthew Wilcox
      2018-03-30  7:55 ` Pavel Machek
      4 siblings, 1 reply; 35+ messages in thread
    From: Andrew Morton @ 2018-03-22 20:57 UTC (permalink / raw)
      To: Ilya Smith
      Cc: rth, ink, mattst88, vgupta, linux, tony.luck, fenghua.yu, jhogan,
    	ralf, jejb, deller, benh, paulus, mpe, schwidefsky,
    	heiko.carstens, ysato, dalias, davem, tglx, mingo, hpa, x86, nyc,
    	viro, arnd, gregkh, deepa.kernel, mhocko, hughd, kstewart,
    	pombredanne, steve.capper, punit.agrawal, paul.burton,
    	aneesh.kumar, npiggin
    
    On Thu, 22 Mar 2018 19:36:36 +0300 Ilya Smith <blackzert@gmail.com> wrote:
    
    > 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.
    
    Perhaps some more effort on the problem description would help.  *Are*
    people predicting layouts at present?  What problems does this cause? 
    How are they doing this and are there other approaches to solving the
    problem?
    
    Mainly: what value does this patchset have to our users?  This reader
    is unable to determine that from the information which you have
    provided.  Full details, please.
    
    
    ^ permalink raw reply	[flat|nested] 35+ messages in thread
  • * Re: [RFC PATCH v2 0/2] Randomization of address chosen by mmap.
           [not found] <1521736598-12812-1-git-send-email-blackzert@gmail.com>
                       ` (2 preceding siblings ...)
      2018-03-22 20:57 ` [RFC PATCH v2 0/2] Randomization of address chosen by mmap Andrew Morton
    @ 2018-03-23 12:48 ` Matthew Wilcox
      2018-03-23 17:55   ` Ilya Smith
      2018-03-23 18:00   ` Rich Felker
      2018-03-30  7:55 ` Pavel Machek
      4 siblings, 2 replies; 35+ messages in thread
    From: Matthew Wilcox @ 2018-03-23 12:48 UTC (permalink / raw)
      To: Ilya Smith
      Cc: kstewart, linux-mips, dalias, jack, linux-sh, benh, bhsharma,
    	heiko.carstens, jejb, linux-mm, mhocko, paulus, deepa.kernel, hpa,
    	sparclinux, linux-ia64, dan.j.williams, aarcange, linux-s390,
    	ysato, mpe, deller, x86, hughd, linux, nitin.m.gupta, linux-alpha,
    	mingo, jhogan, mattst88, linux-snps-arc, fenghua.yu, riel,
    	punit.agrawal, keescook, arnd, pombredanne, npiggin, jglisse, ink
    
    On Thu, Mar 22, 2018 at 07:36:36PM +0300, Ilya Smith wrote:
    > 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.
    
    Why should this be done in the kernel rather than libc?  libc is perfectly
    capable of specifying random numbers in the first argument of mmap.
    
    ^ permalink raw reply	[flat|nested] 35+ messages in thread
  • * Re: [RFC PATCH v2 0/2] Randomization of address chosen by mmap.
           [not found] <1521736598-12812-1-git-send-email-blackzert@gmail.com>
                       ` (3 preceding siblings ...)
      2018-03-23 12:48 ` Matthew Wilcox
    @ 2018-03-30  7:55 ` Pavel Machek
      2018-03-30  9:07   ` Ilya Smith
      2018-03-30 13:33   ` Rich Felker
      4 siblings, 2 replies; 35+ messages in thread
    From: Pavel Machek @ 2018-03-30  7:55 UTC (permalink / raw)
      To: Ilya Smith
      Cc: rth, ink, mattst88, vgupta, linux, tony.luck, fenghua.yu, jhogan,
    	ralf, jejb, deller, benh, paulus, mpe, schwidefsky,
    	heiko.carstens, ysato, dalias, davem, tglx, mingo, hpa, x86, nyc,
    	viro, arnd, gregkh, deepa.kernel, mhocko, hughd, kstewart,
    	pombredanne, akpm, steve.capper, punit.agrawal, paul.burton,
    	aneesh.kumar
    
    [-- Attachment #1: Type: text/plain, Size: 657 bytes --]
    
    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
    -- 
    (english) http://www.livejournal.com/~pavelmachek
    (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
    
    [-- Attachment #2: Digital signature --]
    [-- Type: application/pgp-signature, Size: 181 bytes --]
    
    ^ permalink raw reply	[flat|nested] 35+ messages in thread

  • end of thread, other threads:[~2018-04-03  0:11 UTC | newest]
    
    Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <1521736598-12812-1-git-send-email-blackzert@gmail.com>
         [not found] ` <1521736598-12812-2-git-send-email-blackzert@gmail.com>
    2018-03-22 20:53   ` [RFC PATCH v2 1/2] Randomization of address chosen by mmap Andrew Morton
    2018-03-23 17:43     ` Ilya Smith
         [not found] ` <1521736598-12812-3-git-send-email-blackzert@gmail.com>
    2018-03-22 20:54   ` [RFC PATCH v2 2/2] Architecture defined limit on memory region random shift Andrew Morton
    2018-03-23 17:48     ` Ilya Smith
    2018-03-23 17:49     ` Ilya Smith
    2018-03-22 20:57 ` [RFC PATCH v2 0/2] Randomization of address chosen by mmap Andrew Morton
    2018-03-23 17:25   ` Ilya Smith
    2018-03-23 12:48 ` Matthew Wilcox
    2018-03-23 17:55   ` Ilya Smith
    2018-03-26  8:46     ` Michal Hocko
    2018-03-26 19:45       ` Ilya Smith
    2018-03-27  7:24         ` Michal Hocko
    2018-03-27 13:51           ` Ilya Smith
    2018-03-27 14:38             ` Michal Hocko
    2018-03-28 18:47               ` Ilya Smith
    2018-03-27 22:16             ` Theodore Y. Ts'o
    2018-03-28 18:48               ` Ilya Smith
    2018-03-27 22:53             ` Kees Cook
    2018-03-27 23:49               ` Matthew Wilcox
    2018-03-27 23:57                 ` Kees Cook
    2018-03-28  0:00                 ` Rich Felker
    2018-03-28 21:07                   ` Luck, Tony
    2018-04-03  0:11                     ` Ilya Smith
    2018-03-28 21:07                 ` Ilya Smith
    2018-03-23 18:00   ` Rich Felker
    2018-03-23 19:06     ` Matthew Wilcox
    2018-03-23 19:16       ` Rich Felker
    2018-03-23 19:29         ` Matthew Wilcox
    2018-03-23 19:35           ` Rich Felker
    2018-03-28  4:50       ` Rob Landley
    2018-03-30  7:55 ` Pavel Machek
    2018-03-30  9:07   ` Ilya Smith
    2018-03-30  9:57     ` Pavel Machek
    2018-03-30 11:10       ` Ilya Smith
    2018-03-30 13:33   ` Rich Felker
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).