From: David Teigland <teigland@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH v2] fs/dlm: Fix kernel memory disclosure
Date: Wed, 22 Feb 2017 15:34:00 -0600 [thread overview]
Message-ID: <20170222213400.GC14444@redhat.com> (raw)
In-Reply-To: <CAH0z3hNZq1_0mnFcA-4Gooa+QfP+mhgVA_4Yp0M+KSdZvREW6w@mail.gmail.com>
On Wed, Feb 22, 2017 at 03:45:34PM +0800, Vlad Tsyrklevich wrote:
> Hello, I wanted to ping the list and see if this could get a review:
now pushed to linux-dlm.git
> > Clear the 'unused' field and the uninitialized padding in 'lksb' to
> > avoid leaking memory to userland in copy_result_to_user().
> >
> > Signed-off-by: Vlad Tsyrklevich <vlad@tsyrklevich.net>
> > ---
> > fs/dlm/user.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/fs/dlm/user.c b/fs/dlm/user.c
> > index 1ce908c..83ddd47 100644
> > --- a/fs/dlm/user.c
> > +++ b/fs/dlm/user.c
> > @@ -122,6 +122,8 @@ static void compat_input(struct dlm_write_request *kb,
> > static void compat_output(struct dlm_lock_result *res,
> > struct dlm_lock_result32 *res32)
> > {
> > + memset(res32, 0, sizeof(*res32));
> > +
> > res32->version[0] = res->version[0];
> > res32->version[1] = res->version[1];
> > res32->version[2] = res->version[2];
next prev parent reply other threads:[~2017-02-22 21:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-22 7:45 [Cluster-devel] [PATCH v2] fs/dlm: Fix kernel memory disclosure Vlad Tsyrklevich
2017-02-22 10:55 ` Steven Whitehouse
2017-02-22 21:34 ` David Teigland [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-02-02 16:57 Vlad Tsyrklevich
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=20170222213400.GC14444@redhat.com \
--to=teigland@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.