Re: [PATCH] nfsd: fix NULL dereference in nfsd_statfs()
From: Minchan Kim
Date: Fri Aug 13 2010 - 21:32:48 EST
On Fri, Aug 13, 2010 at 10:53 PM, Takashi Iwai <tiwai@xxxxxxx> wrote:
> The commit ebabe9a9001af0af56c0c2780ca1576246e7a74b
> pass a struct path to vfs_statfs
> introduced the struct path initialization, and this seems to trigger
> an Oops on my machine.
>
> fh_dentry field may be NULL and set later in fh_verify(), thus the
> initialization of path must be after fh_verify().
>
> Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
Reviewed-by: Minchan Kim <minchan.kim@xxxxxxxxx>
Today, I had a same problem on mmotm so I made a similar patch.
Andrew. Please apply this patch on mmotm for smooth testing.
--
Kind regards,
Minchan Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/