All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Chrisman <brchrisman@gmail.com>
To: ceph-devel@vger.kernel.org
Cc: Brian Chrisman <brchrisman@gmail.com>
Subject: [PATCH 0/2] fix null deref in readdir_r callback and test
Date: Thu, 12 May 2011 23:39:36 -0700	[thread overview]
Message-ID: <1305268778-18691-1-git-send-email-brchrisman@gmail.com> (raw)

_readdir_single_dirent_cb is invoked with zeroed pointers when called beneath readdir_r rather than directly readdirplus_r.
Those pointers are then dereferenced in assignment.
There is still a problem in readdir_r, so I extended the basic scenario in testceph.cc.
Methods readdir_r and readdirplus_r are bypassed in cfuse.

Brian Chrisman (2):
  fix null deref when callback invoked en route from readdir_r rather
    than readdirplus_r
  add basic test case for readdir_r

 src/client/Client.cc   |    8 ++++++--
 src/client/testceph.cc |   36 +++++++++++++++++++++++++++++++++++-
 2 files changed, 41 insertions(+), 3 deletions(-)


             reply	other threads:[~2011-05-13  6:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-13  6:39 Brian Chrisman [this message]
2011-05-13  6:39 ` [PATCH 1/2] fix null deref when callback invoked en route from readdir_r rather than readdirplus_r Brian Chrisman
2011-05-13  6:39 ` [PATCH 2/2] add basic test case for readdir_r Brian Chrisman

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=1305268778-18691-1-git-send-email-brchrisman@gmail.com \
    --to=brchrisman@gmail.com \
    --cc=ceph-devel@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 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.