fix null deref in readdir_r callback and test
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fix null deref when callback invoked en route from readdir_r rather than readdirplus_rsrc/ | +6 | 0 replies | |
| 2/2 | add basic test case for readdir_rsrc/ | +35 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] fix null deref in readdir_r callback and test
_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(-)