Bug#1000504: linux-image-5.15.0-1-amd64: FUSE regression in 5.15.3 affecting xdg-desktop-portal

2021-12-06 Thread Simon McVittie
On Fri, 26 Nov 2021 at 13:55:40 +0100, Salvatore Bonaccorso wrote:
> I have uploaed this morning 5.15.5-1 to unstable and cherry-picked the
> mentioned commit as well.

This appears to work correctly as far as I can tell, and is included in
5.16-rc3, 5.15.6, 5.10.83, 5.4.163 and 4.19.219 upstream.

smcv



Bug#1000504: linux-image-5.15.0-1-amd64: FUSE regression in 5.15.3 affecting xdg-desktop-portal

2021-11-26 Thread Salvatore Bonaccorso
Hi Simon,

On Fri, Nov 26, 2021 at 11:00:24AM +, Simon McVittie wrote:
> On Wed, 24 Nov 2021 at 20:55:06 +0100, Salvatore Bonaccorso wrote:
> > And looks there is now a fix for it:
> > 
> > https://lore.kernel.org/stable/CAOssrKez1mnF4rWRvWgk4LJ2iDfX8xkpMKvgprFt+-ARs83=n...@mail.gmail.com/
> 
> According to a Fedora kernel maintainer on that thread, that proposed
> patch seems to work for multiple people.
> 
> > If you in meanwhile were able to reproduce it and can test the patch
> > as well that would be great.
> 
> I tried again to reproduce the issue; this time I was successful and my
> laptop became completely unresponsive (couldn't even reboot with the
> magic sysrq key, had to power off by holding the power button).
> 
> Steps:
> 
> * flatpak run org.gnome.Recipes
> * New Recipe
> * click the "+" below the placeholder photo
> * load some random image (it might have to be one that is of a significant
>   size, when I couldn't reproduce it I think I was using very small test
>   images from libsdl2-gfx)
> 
> I don't know how reliably reproducible this is. Any Flatpak app that uses
> the documents portal and does not have direct filesystem access should be
> equally suitable.

Thanks for investing time into it and good at least you triggered the
issue as well.

> My laptop is not particularly suitable for building distro kernels,
> but I'll try... please don't wait for me though!

Don't bother likely if it's too much hassle to build the kernel. I
have uploaed this morning 5.15.5-1 to unstable and cherry-picked the
mentioned commit as well. But it's currently waiting for processing
from NEW due to the ABI bump.

https://salsa.debian.org/kernel-team/linux/-/commit/3f0763144c66a873774943ad335ddd34da8daed3

Regards,
Salvatore



Bug#1000504: linux-image-5.15.0-1-amd64: FUSE regression in 5.15.3 affecting xdg-desktop-portal

2021-11-26 Thread Simon McVittie
On Wed, 24 Nov 2021 at 20:55:06 +0100, Salvatore Bonaccorso wrote:
> And looks there is now a fix for it:
> 
> https://lore.kernel.org/stable/CAOssrKez1mnF4rWRvWgk4LJ2iDfX8xkpMKvgprFt+-ARs83=n...@mail.gmail.com/

According to a Fedora kernel maintainer on that thread, that proposed
patch seems to work for multiple people.

> If you in meanwhile were able to reproduce it and can test the patch
> as well that would be great.

I tried again to reproduce the issue; this time I was successful and my
laptop became completely unresponsive (couldn't even reboot with the
magic sysrq key, had to power off by holding the power button).

Steps:

* flatpak run org.gnome.Recipes
* New Recipe
* click the "+" below the placeholder photo
* load some random image (it might have to be one that is of a significant
  size, when I couldn't reproduce it I think I was using very small test
  images from libsdl2-gfx)

I don't know how reliably reproducible this is. Any Flatpak app that uses
the documents portal and does not have direct filesystem access should be
equally suitable.

My laptop is not particularly suitable for building distro kernels,
but I'll try... please don't wait for me though!

smcv



Bug#1000504: linux-image-5.15.0-1-amd64: FUSE regression in 5.15.3 affecting xdg-desktop-portal

2021-11-24 Thread Salvatore Bonaccorso
Hi,

On Wed, Nov 24, 2021 at 11:33:08AM +, Simon McVittie wrote:
> Package: src:linux
> Version: 5.15.3-1
> Severity: normal
> Tags: upstream
> Control: affects -1 xdg-desktop-portal flatpak
> 
> Linux 5.15.3, 5.14.20 and other stable kernels are reported to have a
> regression that causes Flatpak apps to freeze when using a FUSE filesystem
> to load files from the host system. I can't reproduce this myself, but
> it has been seen in at least Red Hat and Gentoo, so I wanted to raise
> it in Debian as something to watch out for.
> 
> The regression was triggered by:
> https://lore.kernel.org/all/2025165430.669780...@linuxfoundation.org/
> "fuse: fix page stealing", 712a951025c0667ff00b25afc360f74e639dfabe upstream
> 
> https://lore.kernel.org/all/CAOssrKez1mnF4rWRvWgk4LJ2iDfX8xkpMKvgprFt+-ARs83=n...@mail.gmail.com/
> is a possible solution (untested - as I said, I couldn't reproduce this
> myself).
> 
> Tracked elsewhere:
> https://github.com/flatpak/flatpak/issues/4595
> https://bugzilla.redhat.com/show_bug.cgi?id=2025285

And looks there is now a fix for it:

https://lore.kernel.org/stable/CAOssrKez1mnF4rWRvWgk4LJ2iDfX8xkpMKvgprFt+-ARs83=n...@mail.gmail.com/

If you in meanwhile were able to reproduce it and can test the patch
as well that would be great.

712a951025c0 ("fuse: fix page stealing") in any case was backported as
well to 5.10.80, so would need to make sure that we do not release in
next point release a version newly affected.

Regards,
Salvatore



Bug#1000504: linux-image-5.15.0-1-amd64: FUSE regression in 5.15.3 affecting xdg-desktop-portal

2021-11-24 Thread Simon McVittie
Package: src:linux
Version: 5.15.3-1
Severity: normal
Tags: upstream
Control: affects -1 xdg-desktop-portal flatpak

Linux 5.15.3, 5.14.20 and other stable kernels are reported to have a
regression that causes Flatpak apps to freeze when using a FUSE filesystem
to load files from the host system. I can't reproduce this myself, but
it has been seen in at least Red Hat and Gentoo, so I wanted to raise
it in Debian as something to watch out for.

The regression was triggered by:
https://lore.kernel.org/all/2025165430.669780...@linuxfoundation.org/
"fuse: fix page stealing", 712a951025c0667ff00b25afc360f74e639dfabe upstream

https://lore.kernel.org/all/CAOssrKez1mnF4rWRvWgk4LJ2iDfX8xkpMKvgprFt+-ARs83=n...@mail.gmail.com/
is a possible solution (untested - as I said, I couldn't reproduce this
myself).

Tracked elsewhere:
https://github.com/flatpak/flatpak/issues/4595
https://bugzilla.redhat.com/show_bug.cgi?id=2025285

smcv