fuse: Verify userspace asks to requeue interrupt that we really sent
authorKirill Tkhai <ktkhai@virtuozzo.com>
Thu, 8 Nov 2018 09:05:42 +0000 (12:05 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 13 Feb 2019 12:15:13 +0000 (13:15 +0100)
commitb782911b5297c4be0c2de88fc3b36a760eca6321
treeb74ae0e6193a1f48779a6b9fa0d0cdf794633322
parent7407a10de57f5810f3f0e778eb1db0923d24ab16
fuse: Verify userspace asks to requeue interrupt that we really sent

When queue_interrupt() is called from fuse_dev_do_write(), it came from
userspace directly. Userspace may pass any request id, even the request's
we have not interrupted (or even background's request). This patch adds
sanity check to make kernel safe against that.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c