Files
linux/include/trace/events
David Howells 6f26229832 afs: Fix use-after-loss-of-ref
commit 40a708bd62 upstream.

afs_lookup() has a tracepoint to indicate the outcome of
d_splice_alias(), passing it the inode to retrieve the fid from.
However, the function gave up its ref on that inode when it called
d_splice_alias(), which may have failed and dropped the inode.

Fix this by caching the fid.

Fixes: 80548b0399 ("afs: Add more tracepoints")
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-17 19:48:41 +01:00
..
2020-01-17 19:48:41 +01:00
2018-04-16 11:53:35 +01:00
2017-12-13 15:10:01 -05:00
2019-09-05 20:10:07 +02:00
2019-03-27 15:52:01 -03:00
2017-09-25 20:38:26 +02:00
2019-08-21 00:38:54 +02:00
2018-02-13 21:30:22 +01:00
2017-12-19 10:56:24 +01:00
2019-03-24 20:29:33 +01:00