Broken Chinese/Japanese fonts with win32k Lockdown enabled
Categories
(Core :: Security: Process Sandboxing, defect, P2)
Tracking
()
People
(Reporter: momo5269, Unassigned)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Steps to reproduce:
A few days ago, my Firefox updata to 100, all text become to square.
After checking, I found
security.sandbox.content.win32k-experiment.enrollmentStatus
This option will make my text square,force a font also symbol error.
My approach is to delete the corresponding line in prefs.js before each startup, but after the update, the deletion is no longer effective.
(Sorry, my english is terrible, and I'm not familiar with how to report bugs. My language environment is Chinese or Japanese, those squares are these languages.)
Actual results:
After trying, modify it to 1. But it will still be set to 2 every time.
Expected results:
Don't re-enable or normal display.
| Reporter | ||
Comment 1•3 years ago
|
||
p.s. I have turned on webrender, and it's still the same.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 2•3 years ago
•
|
||
A workaround would be to flip security.sandbox.content.win32k-disable to false. We rolled this out to all users so the experiment settings are no longer relevant.
We need to figure out what breaks this though. Can you provide the contents of about:support and about:third-party?
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 3•3 years ago
|
||
p.s. I have turned on webrender, and it's still the same.
To clarify: win32k lockdown won't activate if you don't have WebRender, so if you say that you "turned on WebRender", what exactly did you do and what was happening before?
| Reporter | ||
Comment 4•3 years ago
|
||
(In reply to Gian-Carlo Pascutto [:gcp] from comment #3)
p.s. I have turned on webrender, and it's still the same.
To clarify: win32k lockdown won't activate if you don't have WebRender, so if you say that you "turned on WebRender", what exactly did you do and what was happening before?
didn't do anything.
I found that Status 2 is related to WebRender, and then went to open it.
Also, I have tried security.sandbox.content.win32k-disabletofalse, but it still fails.
| Reporter | ||
Comment 5•3 years ago
|
||
Comment 6•3 years ago
|
||
:bobowen, since you are the author of the regressor, bug 1767999, could you take a look?
For more information, please visit auto_nag documentation.
| Reporter | ||
Comment 7•3 years ago
|
||
This is the available prefs.js
Updated•3 years ago
|
Comment 8•3 years ago
|
||
The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.
Comment 9•3 years ago
|
||
The severity field for this bug is set to S3. However, the bug is marked as tracked for firefox102 (nightly), tracked for firefox101 (beta) and tracked for firefox100 (release).
:gcp, could you consider increasing the severity of this tracked bug?
For more information, please visit auto_nag documentation.
Comment 10•3 years ago
•
|
||
From your about:support:
"contentWin32kLockdownState": "Win32k Lockdown disabled -- user in Control Group"
This matches your observation:
Also, I have tried
security.sandbox.content.win32k-disabletofalse, but it still fails.
The first message is a bit weird because there is no Control Group for win32k - it's enabled by default for everyone. But maybe this is caused by manually changing the experiment preferences. I don't know enough about what the values mean here.
It does look like win32k Lockdown is now disabled for you, but you still have the problem. So perhaps the problem is actually unrelated, this is not very clear to me.
At this point, it might be best to create a fresh profile (see https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles) which will have the default settings (and no add-ons!) and check whether the problem reproduces there or not. If it does, I'd be interested in the about:support from that profile.
p.s. I have turned on webrender, and it's still the same.
didn't do anything.
I found that Status 2 is related to WebRender, and then went to open it.
Sorry but I really do not understand what happened:
- What does "went to open it" mean?
- I don't understand how to align "I have turned on webrender" against "didn't do anything"
I see in your about:support:
"name": "WEBRENDER",
"description": "WebRender",
==> "status": "force_enabled", <==
"log": [
{
"type": "default",
"status": "available"
},
{
"type": "user",
"status": "force_enabled",
"message": "Force enabled by pref"
}
Which seems to indicate that at some point WebRender was explicitly forced on by modifying the settings. That could also be a cause of this problem, which is why checking on a profile with the default would be good at this point in tracking this down. Right now there's too much uncertainty about the state of this config...
Another point of confusion for me is that I gather from your comments is that you saw some message that related win32k Lockdown status to WebRender being disabled, but the above about:support implies (I think?) WebRender would have been enabled by default even without the force-enable. This is another thing a fresh profile would clarify.
Comment 11•3 years ago
|
||
I was not able to reproduce the issue with Windows 10x 64 Firefox 100.0.1 build ID 20220513165813 where security.sandbox.content.win32k-disable is enabled.
We've tried a few Firefox release update scenarios as well where zh-Cn language was set as the environment language.
I also tried using the attached prefs.js file with Firefox zh-CN and JP builds and I was still unable to reproduce this issue.
| Reporter | ||
Comment 12•3 years ago
|
||
1、only update 100=problem
2、create a new profile=problem
3、create a new profile & disable sync =problem with second start
4、create a new profile & copy earliest prefs.js
5、comparing prefs.js with Beyond Compare , repeatedly start FireFox
6、find
user_pref("app.normandy.startupRolloutPrefs.security.sandbox.content.win32k-experiment.enrollmentStatus", 2);
7、delete and start=normal display
8、restart, appearing again
9、search by google, find webrender,setgfx.webrender.all to true=problem
10、delete this line for every boot.
11、update 100.0.1=problem=delete is useless
12、try to set 1=normal display, but exit FireFox still be set to 2
13、report bugs
| Reporter | ||
Comment 13•3 years ago
|
||
(In reply to Gian-Carlo Pascutto [:gcp] from comment #10)
From your
about:support:
"contentWin32kLockdownState": "Win32k Lockdown disabled -- user in Control Group"This matches your observation:
Also, I have tried
security.sandbox.content.win32k-disabletofalse, but it still fails.The first message is a bit weird because there is no Control Group for win32k - it's enabled by default for everyone. But maybe this is caused by manually changing the experiment preferences. I don't know enough about what the values mean here.
It does look like win32k Lockdown is now disabled for you, but you still have the problem. So perhaps the problem is actually unrelated, this is not very clear to me.
At this point, it might be best to create a fresh profile (see https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles) which will have the default settings (and no add-ons!) and check whether the problem reproduces there or not. If it does, I'd be interested in the
about:supportfrom that profile.p.s. I have turned on webrender, and it's still the same.
didn't do anything.
I found that Status 2 is related to WebRender, and then went to open it.Sorry but I really do not understand what happened:
- What does "went to open it" mean?
- I don't understand how to align "I have turned on webrender" against "didn't do anything"
I see in your
about:support:"name": "WEBRENDER", "description": "WebRender", ==> "status": "force_enabled", <== "log": [ { "type": "default", "status": "available" }, { "type": "user", "status": "force_enabled", "message": "Force enabled by pref" }Which seems to indicate that at some point WebRender was explicitly forced on by modifying the settings. That could also be a cause of this problem, which is why checking on a profile with the default would be good at this point in tracking this down. Right now there's too much uncertainty about the state of this config...
Another point of confusion for me is that I gather from your comments is that you saw some message that related win32k Lockdown status to WebRender being disabled, but the above
about:supportimplies (I think?) WebRender would have been enabled by default even without the force-enable. This is another thing a fresh profile would clarify.
look up
add
1.1、Firefox 99、Waterfox is normal
9.1、setsecurity.sandbox.content.win32k-disable to false=still have problem
9.2、upgrade the graphics card driver=still have problem
Comment 14•3 years ago
•
|
||
Thanks for reporting this and sorry for the frustration caused.
Would you mind trying the following steps (I know they are a bit similar to what you have tried, but they should help rule some things out):
- Create a new profile and start Firefox 100.0.1 with it
- If you still see a problem, then in
about:configsetsecurity.sandbox.content.win32k-disabletofalse - Restart the browser and see if the problem is still there
- Upload the current configuration text from
about:support
Comment 15•3 years ago
•
|
||
Thank you very much for your patience, the steps that were outlined in comment 12 do clarify and explain what happened. The preference you were trying to flip back is controlled by the update server (and not intended to be set manually), so each time you made a fresh profile it "worked", until it got updated, and the updated value then got applied on restart, which you edited, which got updated again, and so on...
Please follow Bob's steps above (specifically using a new, fresh profile) to get us the required information to further diagnose.
Updated•3 years ago
|
| Reporter | ||
Comment 16•3 years ago
|
||
(In reply to Gian-Carlo Pascutto [:gcp] from comment #15)
Thank you very much for your patience, the steps that were outlined in comment 12 do clarify and explain what happened. The preference you were trying to flip back is controlled by the update server (and not intended to be set manually), so each time you made a fresh profile it "worked", until it got updated, and the updated value then got applied on restart, which you edited, which got updated again, and so on...
Please follow Bob's steps above (specifically using a new, fresh profile) to get us the required information to further diagnose.
Sorry, I've been a little busy these days
Updata to 100.0.2 security.sandbox.content.win32k-disable : false is useful , the problem disappears.
Comment 17•3 years ago
|
||
Thanks for testing that.
Please would you try the following steps, so we can try and further isolate the problem:
- in
about:configmake suresecurity.sandbox.content.win32k-disableis stillfalse(which fixes the problem) - also set
gfx.font_rendering.directwrite.use_gdi_table_loadingtofalse - restart the browser and see if the problem returns
This will use the same code path (that we think might be causing the problem) as when win32k lockdown is enabled.
| Reporter | ||
Comment 18•3 years ago
|
||
(In reply to Bob Owen (:bobowen) from comment #17)
Thanks for testing that.
Please would you try the following steps, so we can try and further isolate the problem:
- in
about:configmake suresecurity.sandbox.content.win32k-disableis stillfalse(which fixes the problem)- also set
gfx.font_rendering.directwrite.use_gdi_table_loadingtofalse- restart the browser and see if the problem returns
This will use the same code path (that we think might be causing the problem) as when win32k lockdown is enabled.
not return.
Comment 19•3 years ago
|
||
(In reply to momo5269@hotmail.com from comment #18)
...
This will use the same code path (that we think might be causing the problem) as when win32k lockdown is enabled.
not return.
Thanks for testing, that is confusing.
I think there is only one other area in which we directly change the code path with win32k locked down, but I don't think that should affect these fonts.
To try and rule that out I've created a build that will use that different code path even with win32k lockdown disabled.
Please would you:
- Download this build.
- Install it (you might want to select a custom install and use a different path).
- Run the build with a new profile, which should display the same issue.
- As before in
about:configsetsecurity.sandbox.content.win32k-disabletofalse. - Restart this install of Firefox with the same profile and let us know if the problem is still there.
Comment 20•3 years ago
|
||
Set release status flags based on info from the regressing bug 1767999
Comment 21•3 years ago
|
||
Not going to fix in v101 at this point.
Updated•3 years ago
|
Updated•3 years ago
|
| Comment hidden (off-topic) |
| Comment hidden (off-topic) |
Updated•3 years ago
|
Comment 24•2 years ago
|
||
A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Closing the bug as incomplete.
For more information, please visit BugBot documentation.
Description
•