]> Git Repo - linux.git/commit - fs/fuse/dev.c
fuse: fix pipe_buf_operations
authorMiklos Szeredi <[email protected]>
Wed, 22 Jan 2014 18:36:57 +0000 (19:36 +0100)
committerMiklos Szeredi <[email protected]>
Wed, 22 Jan 2014 18:36:57 +0000 (19:36 +0100)
commit28a625cbc2a14f17b83e47ef907b2658576a32aa
tree58d461b91f25a6499bd6404cd79faa4f9c185ff0
parentd8ec26d7f8287f5788a494f56e8814210f0e64be
fuse: fix pipe_buf_operations

Having this struct in module memory could Oops when if the module is
unloaded while the buffer still persists in a pipe.

Since sock_pipe_buf_ops is essentially the same as fuse_dev_pipe_buf_steal
merge them into nosteal_pipe_buf_ops (this is the same as
default_pipe_buf_ops except stealing the page from the buffer is not
allowed).

Reported-by: Al Viro <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Cc: [email protected]
fs/fuse/dev.c
fs/splice.c
include/linux/pipe_fs_i.h
net/core/skbuff.c
This page took 0.056537 seconds and 4 git commands to generate.