Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AFS: Stop readlink() on AFS crashing due to NULL 'file' ptr
kAFS crashes when asked to read a symbolic link because page_getlink() passes a NULL file pointer to read_mapping_page(), but afs_readpage() expects a file pointer from which to extract a key. Modify afs_readpage() to request the appropriate key from the calling process's keyrings if a file struct is not supplied with one attached. Signed-off-by: David Howells <[email protected]> Acked-by: Anton Blanchard <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information