mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Brauner <brauner@kernel.org>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: Paul Menzel <pmenzel@molgen.mpg.de>, Takashi Iwai <tiwai@suse.de>,
	 linux-fsdevel@vger.kernel.org, stable@vger.kernel.org,
	regressions@lists.linux.dev,  linux-kernel@vger.kernel.org,
	Greg KH <gregkh@linuxfoundation.org>
Subject: Re: [REGRESSION] Chrome and VSCode breakage with the commit b9b588f22a0c
Date: Mon, 7 Apr 2025 13:01:14 +0200	[thread overview]
Message-ID: <20250407-irrwitzig-seilschaft-9eaa7d0b1f09@brauner> (raw)
In-Reply-To: <57eec58a-6aae-4958-996d-2785da985f04@oracle.com>

On Sat, Apr 05, 2025 at 12:25:00PM -0400, Chuck Lever wrote:
> On 4/5/25 3:43 AM, Paul Menzel wrote:
> > Dear Greg,
> > 
> > 
> > Thank you for replying on a Saturday.
> > 
> > Am 05.04.25 um 09:29 schrieb Greg KH:
> >> On Sat, Apr 05, 2025 at 08:32:13AM +0200, Paul Menzel wrote:
> > 
> >>> Am 29.03.25 um 15:57 schrieb Chuck Lever:
> >>>> On 3/29/25 8:17 AM, Takashi Iwai wrote:
> >>>>> On Sun, 23 Feb 2025 09:53:10 +0100, Takashi Iwai wrote:
> >>>
> >>>>>> we received a bug report showing the regression on 6.13.1 kernel
> >>>>>> against 6.13.0.  The symptom is that Chrome and VSCode stopped
> >>>>>> working
> >>>>>> with Gnome Scaling, as reported on openSUSE Tumbleweed bug tracker
> >>>>>>     https://bugzilla.suse.com/show_bug.cgi?id=1236943
> >>>>>>
> >>>>>> Quoting from there:
> >>>>>> """
> >>>>>> I use the latest TW on Gnome with a 4K display and 150%
> >>>>>> scaling. Everything has been working fine, but recently both Chrome
> >>>>>> and VSCode (installed from official non-openSUSE channels) stopped
> >>>>>> working with Scaling.
> >>>>>> ....
> >>>>>> I am using VSCode with:
> >>>>>> `--enable-features=UseOzonePlatform --enable-
> >>>>>> features=WaylandWindowDecorations --ozone-platform-hint=auto` and
> >>>>>> for Chrome, I select `Preferred Ozone platform` == `Wayland`.
> >>>>>> """
> >>>>>>
> >>>>>> Surprisingly, the bisection pointed to the backport of the commit
> >>>>>> b9b588f22a0c049a14885399e27625635ae6ef91 ("libfs: Use d_children list
> >>>>>> to iterate simple_offset directories").
> >>>>>>
> >>>>>> Indeed, the revert of this patch on the latest 6.13.4 was
> >>>>>> confirmed to
> >>>>>> fix the issue.  Also, the reporter verified that the latest 6.14-rc
> >>>>>> release is still affected, too.
> >>>>>>
> >>>>>> For now I have no concrete idea how the patch could break the
> >>>>>> behavior
> >>>>>> of a graphical application like the above.  Let us know if you need
> >>>>>> something for debugging.  (Or at easiest, join to the bugzilla entry
> >>>>>> and ask there; or open another bug report at whatever you like.)
> >>>>>>
> >>>>>> BTW, I'll be traveling tomorrow, so my reply will be delayed.
> >>>
> >>>>>> #regzbot introduced: b9b588f22a0c049a14885399e27625635ae6ef91
> >>>>>> #regzbot monitor: https://bugzilla.suse.com/show_bug.cgi?id=1236943
> >>>>>
> >>>>> After all, this seems to be a bug in Chrome and its variant, which was
> >>>>> surfaced by the kernel commit above: as the commit changes the
> >>>>> directory enumeration, it also changed the list order returned from
> >>>>> libdrm drmGetDevices2(), and it screwed up the application that worked
> >>>>> casually beforehand.  That said, the bug itself has been already
> >>>>> present.  The Chrome upstream tracker:
> >>>>>     https://issuetracker.google.com/issues/396434686
> >>>>>
> >>>>> #regzbot invalid: problem has always existed on Chrome and related
> >>>>> code
> >>>
> >>>> Thank you very much for your report and for chasing this to conclusion.
> >>> Doesn’t marking this an invalid contradict Linux’ no regression
> >>> policy to
> >>> never break user space, so users can always update the Linux kernel?
> >>> Shouldn’t this commit still be reverted, and another way be found
> >>> keeping
> >>> the old ordering?
> >>>
> >>> Greg, Sasha, in stable/linux-6.13.y the two commits below would need
> >>> to be
> >>> reverted:
> >>>
> >>> 180c7e44a18bbd7db89dfd7e7b58d920c44db0ca
> >>> d9da7a68a24518e93686d7ae48937187a80944ea
> >>>
> >>> For stable/linux-6.12.y:
> >>>
> >>> 176d0333aae43bd0b6d116b1ff4b91e9a15f88ef
> >>> 639b40424d17d9eb1d826d047ab871fe37897e76
> >>
> >> Unless the changes are also reverted in Linus's tree, we'll be keeping
> >> these in.  Please work with the maintainers to resolve this in mainline
> >> and we will be glad to mirror that in the stable trees as well.
> > 
> > Commit b9b588f22a0c (libfs: Use d_children list to iterate simple_offset
> > directories) does not have a Fixes: tag or Cc: stable@vger.kernel.org. I
> > do not understand, why it was applied to the stable series at all [1],
> > and cannot be reverted when it breaks userspace?
> I NACK'd the upstream revert because I expected an RCA before 6.14
> final (that didn't happen), and the Chrome issue was the only reported
> problem and it was specific to a particular hardware configuration and
> the /latest developer release/ of Chrome. Neither v6.14.0 nor a Chrome
> developer release are going to be put in front of users who do not
> expect to encounter issues.

Exactly.

> 
> Note that the libfs series addresses several issues. Commit b9b588f22a0c
> itself addresses CVE-2024-46701 [1] (in v6.6). I did not add a "Cc:
> stable" for commit b9b588f22a0c because it cannot be cherry picked to
> apply to v6.6, it has to be manually adjusted to apply.
> 
> The final RCA reported in [2] shows that there is nothing incorrect
> about b9b588f22a0c.
> 
> In addition, the next Chrome release will carry a fix for the clearly
> incorrect library behavior -- applications cannot depend on the order
> of directory entry iteration, because that can change arbitrarily, and
> not just because of file system implementation quirks. You will note
> that even after sorting the directory entries, the library still had
> problems discovering the accelerated graphics device.
> 
> Reverting now might follow the letter of the rule about "no regressions"
> but IMHO moving forward from here seems to me to be the more
> constructive approach.

I agree.

      reply	other threads:[~2025-04-07 11:01 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-23  8:53 Takashi Iwai
2025-02-23 15:18 ` Chuck Lever
2025-02-26  8:38   ` Takashi Iwai
2025-02-26 14:11     ` Chuck Lever
2025-02-26 14:16       ` Takashi Iwai
2025-02-26 14:20         ` Chuck Lever
2025-02-26 14:26           ` Greg KH
2025-02-26 14:35             ` Greg KH
2025-02-26 14:40               ` Takashi Iwai
2025-02-26 15:02                 ` Greg KH
2025-02-26 15:08                   ` Takashi Iwai
2025-02-26 15:56             ` Chuck Lever
2025-02-26 16:18               ` Greg KH
2025-02-26 16:19                 ` Greg KH
2025-02-26 14:35           ` Takashi Iwai
2025-02-26 16:00             ` Chuck Lever
2025-02-26 16:06               ` Takashi Iwai
2025-02-26 20:42       ` Eric Biggers
2025-02-26 21:01         ` Chuck Lever
2025-02-26 21:40           ` Eric Biggers
2025-02-27 14:16             ` Chuck Lever
2025-03-29 12:17 ` Takashi Iwai
2025-03-29 14:57   ` Chuck Lever
2025-04-05  6:32     ` Paul Menzel
2025-04-05  7:29       ` Greg KH
2025-04-05  7:43         ` Paul Menzel
2025-04-05  8:19           ` Greg KH
2025-04-07 14:10             ` Chuck Lever
2025-04-05 16:25           ` Chuck Lever
2025-04-07 11:01             ` Christian Brauner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250407-irrwitzig-seilschaft-9eaa7d0b1f09@brauner \
    --to=brauner@kernel.org \
    --cc=chuck.lever@oracle.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmenzel@molgen.mpg.de \
    --cc=regressions@lists.linux.dev \
    --cc=stable@vger.kernel.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®