diff options
author | Tetsuo Handa <[email protected]> | 2019-08-12 11:16:11 +0900 |
---|---|---|
committer | J. Bruce Fields <[email protected]> | 2019-08-15 14:53:00 -0400 |
commit | d6846bfbeeac873d85f32bd2b988fa94c89dbcb8 (patch) | |
tree | 6a25ba0ff6a531dff603b34e1f5c92c727210a06 /tools/perf/util/trace-event-scripting.c | |
parent | 609488bc979f99f805f34e9a32c1e3b71179d10b (diff) |
nfsd: fix dentry leak upon mkdir failure.
syzbot is reporting that nfsd_mkdir() forgot to remove dentry created by
d_alloc_name() when __nfsd_mkdir() failed (due to memory allocation fault
injection) [1].
[1] https://syzkaller.appspot.com/bug?id=ce41a1f769ea4637ebffedf004a803e8405b4674
Signed-off-by: Tetsuo Handa <[email protected]>
Reported-by: syzbot <[email protected]>
Fixes: e8a79fb14f6b76b5 ("nfsd: add nfsd/clients directory")
[bfields: clean up in nfsd_mkdir instead of __nfsd_mkdir]
Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions