spufs: fix a crash in spufs_create_root()
Subsystems (3)
PATCH 1/1 spufs: fix a crash in spufs_create_root()
The spu_fs_context was not set in fc->fs_private, this caused a crash when accessing ctx->mode in spufs_create_root().
Signed-off-by Emmanuel Nicolet <[email protected]>
--- arch/powerpc/platforms/cell/spufs/inode.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/platforms/cell/spufs/inode.c +1 -0
@@ -761,6 +761,7 @@ static int spufs_init_fs_context(struct fs_context *fc) ctx->gid =current_gid (); ctx->mode =0755 ; + fc->fs_private = ctx; fc->s_fs_info = sbi; fc->ops = &spufs_context_ops;return 0 ;
Signature · 1 line
2.23.0
Quoted 5 lines · Emmanuel Nicolet
The
spu_fs_contextwas not set infc->fs_private, this caused a crash when accessingctx->modeinspufs_create_root().Signed-off-by Emmanuel Nicolet <[email protected]>
Fixes d2e0981c3b9a ("vfs: Convert spufs to use the new mount API")
Acked-by Arnd Bergmann <[email protected]>
Quoted 18 lines
arch/powerpc/platforms/cell/spufs/inode.c | 1 + 1 file changed, 1 insertion(+)arch/powerpc/platforms/cell/spufs/inode.c +1
-1@@ -761,6 +761,7 @@ static int spufs_init_fs_context(struct fs_context *fc) ctx->gid =current_gid (); ctx->mode =0755 ; + fc->fs_private = ctx; fc->s_fs_info = sbi; fc->ops = &spufs_context_ops;return 0 ; --2.23.0
Michael Ellerman
AppliedQuoted 4 lines · Emmanuel Nicolet
The
spu_fs_contextwas not set infc->fs_private, this caused a crash when accessingctx->modeinspufs_create_root().Signed-off-by Emmanuel Nicolet <[email protected]>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/2272905a4580f26630f7d652cc33935b59f96d4c
cheers