Re: [PATCH] AFS: Stop readlink() on AFS crashing because file notpassed to afs_readpage()

From: Andrew Morton
Date: Thu Aug 27 2009 - 17:55:56 EST

On Thu, 27 Aug 2009 13:22:31 +0100
David Howells <dhowells@xxxxxxxxxx> 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?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at