All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] fix null deref in readdir_r callback and test
@ 2011-05-13  6:39 Brian Chrisman
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Brian Chrisman @ 2011-05-13  6:39 UTC (permalink / raw)
  To: ceph-devel; +Cc: Brian Chrisman

_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(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-13  6:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-13  6:39 [PATCH 0/2] fix null deref in readdir_r callback and test Brian Chrisman
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

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.