All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthias Gerstner <matthias.gerstner@suse.de>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] tools/kvm_stat: fix attack vector with user controlled FUSE mounts
Date: Fri, 4 Nov 2022 12:16:30 +0100	[thread overview]
Message-ID: <Y2T0khQR9DtEyuF4@kasco.suse.de> (raw)
In-Reply-To: <f5315936-fbdf-c7b1-e7a9-f494001eebfd@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 929 bytes --]

On Thu, Nov 03, 2022 at 03:21:12PM +0100, Paolo Bonzini wrote:
> On 11/3/22 14:59, Matthias Gerstner wrote:
> > The fix is simply to use the file system type field instead. Whitespace
> > in the mount path is escaped in /proc/mounts thus no further safety
> > measures in the parsing should be necessary to make this correct.
> 
> Can you please send a patch to replace seq_printf with seq_escape in 
> afs_show_devname though?  I couldn't find anything that prevents 
> cell->name and volume->name from containing a space, so better safe than 
> sorry.

I only checked this during runtime using a tmpfs and assumed this would
be true for all file systems.

Sure I can come up with a patch. Should I send a new single patch
containing both changes, a new patch series with two patches or do I
need to send the afs change to a different mailing list? Sorry - I'm new
to kernel development.

Cheers

Matthias

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2022-11-04 11:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-03 13:59 [PATCH] tools/kvm_stat: fix attack vector with user controlled FUSE mounts Matthias Gerstner
2022-11-03 14:08 ` Paolo Bonzini
2022-11-03 14:21 ` Paolo Bonzini
2022-11-04 11:16   ` Matthias Gerstner [this message]
2022-11-04 11:17     ` Paolo Bonzini
2022-11-06  8:43 ` Paolo Bonzini
2022-11-07 14:12   ` Matthias Gerstner

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=Y2T0khQR9DtEyuF4@kasco.suse.de \
    --to=matthias.gerstner@suse.de \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.