Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fuse: check connection state on notification

Check if the connection is fully initialized and connected before trying to
process a notification form the fuse server.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>

+7
+7
fs/fuse/dev.c
··· 2098 2098 static int fuse_notify(struct fuse_conn *fc, enum fuse_notify_code code, 2099 2099 unsigned int size, struct fuse_copy_state *cs) 2100 2100 { 2101 + /* 2102 + * Only allow notifications during while the connection is in an 2103 + * initialized and connected state 2104 + */ 2105 + if (!fc->initialized || !fc->connected) 2106 + return -EINVAL; 2107 + 2101 2108 /* Don't try to move folios (yet) */ 2102 2109 cs->move_folios = false; 2103 2110