[PATCH] AFS: Stop readlink() on AFS crashing because file not passed to afs_readpage()
Andrew Morton
akpm at linux-foundation.org
Thu Aug 27 17:53:59 EDT 2009
On Thu, 27 Aug 2009 13:22:31 +0100
David Howells <dhowells at redhat.com> wrote:
> 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.
That seems like a rather large bug.
To which kernel version(s) should we apply this?
Thanks.
More information about the linux-afs
mailing list