lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 18 Oct 2023 14:36:13 -0600
From: "Theo de Raadt" <deraadt@...nbsd.org>
To: Jeff Xu <jeffxu@...gle.com>
cc: Matthew Wilcox <willy@...radead.org>,
    Linus Torvalds <torvalds@...ux-foundation.org>, jeffxu@...omium.org,
    akpm@...ux-foundation.org, keescook@...omium.org,
    sroettger@...gle.com, jorgelo@...omium.org, groeck@...omium.org,
    linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org,
    linux-mm@...ck.org, jannh@...gle.com, surenb@...gle.com,
    alex.sierra@....com, apopple@...dia.com, aneesh.kumar@...ux.ibm.com,
    axelrasmussen@...gle.com, ben@...adent.org.uk,
    catalin.marinas@....com, david@...hat.com, dwmw@...zon.co.uk,
    ying.huang@...el.com, hughd@...gle.com, joey.gouly@....com,
    corbet@....net, wangkefeng.wang@...wei.com, Liam.Howlett@...cle.com,
    lstoakes@...il.com, mawupeng1@...wei.com, linmiaohe@...wei.com,
    namit@...are.com, peterx@...hat.com, peterz@...radead.org,
    ryan.roberts@....com, shr@...kernel.io, vbabka@...e.cz,
    xiujianfeng@...wei.com, yu.ma@...el.com, zhangpeng362@...wei.com,
    dave.hansen@...el.com, luto@...nel.org,
    linux-hardening@...r.kernel.org
Subject: Re: [RFC PATCH v1 0/8] Introduce mseal() syscall

Jeff Xu <jeffxu@...gle.com> wrote:

> On Wed, Oct 18, 2023 at 8:17 AM Matthew Wilcox <willy@...radead.org> wrote:
> >
> > Let's start with the purpose.  The point of mimmutable/mseal/whatever is
> > to fix the mapping of an address range to its underlying object, be it
> > a particular file mapping or anonymous memory.  After the call succeeds,
> > it must not be possible to make any address in that virtual range point
> > into any other object.
> >
> > The secondary purpose is to lock down permissions on that range.
> > Possibly to fix them where they are, possibly to allow RW->RO transitions.
> >
> > With those purposes in mind, you should be able to deduce for any syscall
> > or any madvise(), ... whether it should be allowed.
> >
> I got it.
> 
> IMO: The approaches mimmutable() and mseal() took are different, but
> we all want to seal the memory from attackers and make the linux
> application safer.

I think you are building mseal for chrome, and chrome alone.

I do not think this will work out for the rest of the application space
because

1) it is too complicated
2) experience with mimmutable() says that applications don't do any of it
   themselves, it is all in execve(), libc initialization, and ld.so.
   You don't strike me as an execve, libc, or ld.so developer.



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ