util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Cordes <peter@cordes.ca>
To: Karel Zak <kzak@redhat.com>
Cc: halfdog <me@halfdog.net>, util-linux@vger.kernel.org
Subject: Re: util-linux mount/unmount ASLR bypass via environment variable
Date: Fri, 12 Jan 2018 07:50:00 -0400	[thread overview]
Message-ID: <20180112115000.GF29852@cordes.ca> (raw)
In-Reply-To: <20180112101559.rm2k4qbhi7kyufma@ws.net.home>

On Fri, Jan 12, 2018 at 11:15:59AM +0100, Karel Zak wrote:
> Good point. Fixed, now for SUIDs it's without the addresses:
>
> $ LIBMOUNT_DEBUG=all mount
> 18622: libmount:      CXT: ----> allocate [RESTRICTED]
> 18622: libmount:      TAB: alloc
> ...

Would it be useful to warn that addresses are being hidden?  People
might not realize they're missing out on that when debugging.

Especially relevant if the addresses are useful for bug reports,
rather than just for use with a local debugger or something.
(In that case people probably run sudo gdb mount rather than attaching
to a running SUID mount process.)

-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X(peter@cor , des.ca)

"The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces!" -- Plautus, 200 BC

  reply	other threads:[~2018-01-12 11:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-11 18:51 util-linux mount/unmount ASLR bypass via environment variable halfdog
2018-01-12 10:15 ` Karel Zak
2018-01-12 11:50   ` Peter Cordes [this message]
2018-01-12 12:47     ` Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180112115000.GF29852@cordes.ca \
    --to=peter@cordes.ca \
    --cc=kzak@redhat.com \
    --cc=me@halfdog.net \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).