]> git.itanic.dy.fi Git - linux-stable/commit
cuse: prevent clone
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 14 Apr 2021 08:40:58 +0000 (10:40 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 14 Apr 2021 08:40:58 +0000 (10:40 +0200)
commit8217673d07256b22881127bf50dce874d0e51653
tree85e1b10ed28ee3337191adb5ac96ab7c14a7adc2
parent0a7419c68a45d2d066b996be5087aa2d07ce80eb
cuse: prevent clone

For cloned connections cuse_channel_release() will be called more than
once, resulting in use after free.

Prevent device cloning for CUSE, which does not make sense at this point,
and highly unlikely to be used in real life.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/cuse.c