* FAILED: patch "[PATCH] fuse: reject internal errno" failed to apply to 4.19-stable tree
@ 2021-07-11 13:11 gregkh
2021-07-12 7:17 ` Miklos Szeredi
0 siblings, 1 reply; 3+ messages in thread
From: gregkh @ 2021-07-11 13:11 UTC (permalink / raw)
To: mszeredi, anatoly.trosinenko, stable; +Cc: stable
The patch below does not apply to the 4.19-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 49221cf86d18bb66fe95d3338cb33bd4b9880ca5 Mon Sep 17 00:00:00 2001
From: Miklos Szeredi <mszeredi@redhat.com>
Date: Tue, 22 Jun 2021 09:15:35 +0200
Subject: [PATCH] fuse: reject internal errno
Don't allow userspace to report errors that could be kernel-internal.
Reported-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com>
Fixes: 334f485df85a ("[PATCH] FUSE - device functions")
Cc: <stable@vger.kernel.org> # v2.6.14
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index 6e63bcba2a40..b8d58aa08206 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -1867,7 +1867,7 @@ static ssize_t fuse_dev_do_write(struct fuse_dev *fud,
}
err = -EINVAL;
- if (oh.error <= -1000 || oh.error > 0)
+ if (oh.error <= -512 || oh.error > 0)
goto copy_finish;
spin_lock(&fpq->lock);
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: FAILED: patch "[PATCH] fuse: reject internal errno" failed to apply to 4.19-stable tree
2021-07-11 13:11 FAILED: patch "[PATCH] fuse: reject internal errno" failed to apply to 4.19-stable tree gregkh
@ 2021-07-12 7:17 ` Miklos Szeredi
2021-07-15 11:52 ` Greg Kroah-Hartman
0 siblings, 1 reply; 3+ messages in thread
From: Miklos Szeredi @ 2021-07-12 7:17 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: anatoly.trosinenko, stable
Hi Greg,
Please apply with --fuzz=3 (though I don't really see why this is
needed, since there's just a single line of difference in the
context).
Should work for backports to all previous versions.
Thanks,
Miklos
On Sun, Jul 11, 2021 at 3:20 PM <gregkh@linuxfoundation.org> wrote:
>
>
> The patch below does not apply to the 4.19-stable tree.
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <stable@vger.kernel.org>.
>
> thanks,
>
> greg k-h
>
> ------------------ original commit in Linus's tree ------------------
>
> From 49221cf86d18bb66fe95d3338cb33bd4b9880ca5 Mon Sep 17 00:00:00 2001
> From: Miklos Szeredi <mszeredi@redhat.com>
> Date: Tue, 22 Jun 2021 09:15:35 +0200
> Subject: [PATCH] fuse: reject internal errno
>
> Don't allow userspace to report errors that could be kernel-internal.
>
> Reported-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com>
> Fixes: 334f485df85a ("[PATCH] FUSE - device functions")
> Cc: <stable@vger.kernel.org> # v2.6.14
> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
>
> diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
> index 6e63bcba2a40..b8d58aa08206 100644
> --- a/fs/fuse/dev.c
> +++ b/fs/fuse/dev.c
> @@ -1867,7 +1867,7 @@ static ssize_t fuse_dev_do_write(struct fuse_dev *fud,
> }
>
> err = -EINVAL;
> - if (oh.error <= -1000 || oh.error > 0)
> + if (oh.error <= -512 || oh.error > 0)
> goto copy_finish;
>
> spin_lock(&fpq->lock);
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: FAILED: patch "[PATCH] fuse: reject internal errno" failed to apply to 4.19-stable tree
2021-07-12 7:17 ` Miklos Szeredi
@ 2021-07-15 11:52 ` Greg Kroah-Hartman
0 siblings, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2021-07-15 11:52 UTC (permalink / raw)
To: Miklos Szeredi; +Cc: anatoly.trosinenko, stable
On Mon, Jul 12, 2021 at 09:17:00AM +0200, Miklos Szeredi wrote:
> Hi Greg,
>
> Please apply with --fuzz=3 (though I don't really see why this is
> needed, since there's just a single line of difference in the
> context).
>
> Should work for backports to all previous versions.
Ok, that worked better, the context did not allow it to apply cleanly
as-is.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-15 11:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-11 13:11 FAILED: patch "[PATCH] fuse: reject internal errno" failed to apply to 4.19-stable tree gregkh
2021-07-12 7:17 ` Miklos Szeredi
2021-07-15 11:52 ` Greg Kroah-Hartman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.