* Re: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigfrane crashes. [not found] ` <c566339b-d8d3-4f74-a3b8-8f373fbe3f47@yeah.net> @ 2025-04-25 3:45 ` Ben Hutchings [not found] ` <174486226753.86424.3234605951040281675.reportbug@zx2> 1 sibling, 0 replies; 7+ messages in thread From: Ben Hutchings @ 2025-04-25 3:45 UTC (permalink / raw) To: Aruna Ramakrishna; +Cc: Larry Wei, 1103397, x86, regressions [-- Attachment #1: Type: text/plain, Size: 1930 bytes --] Hi Aruna, Commit ae6012d72fa6 "x86/pkeys: Ensure updated PKRU value is XRSTOR'd" seems to be broken on some Zhaoxin/VIA processors. Specifically: On Thu, 2025-04-24 at 16:24 +0800, Larry Wei wrote: > Thanks for your replying, the `Probe URL` of my laptop: > https://linux-hardware.org/?probe=58facb533d , and `cpuinfo` is: > > larry@zx2:~/Downloads$ sudo cat /proc/cpuinfo > processor : 0 > vendor_id : CentaurHauls > cpu family : 7 > model : 59 > model name : ZHAOXIN KaiXian KX-6000G/4@3.0GHz [...] > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca > cmov pat pse36 clflush acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx > pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl nonstop_tsc > cpuid aperfmperf pni pclmulqdq monitor vmx smx est tm2 ssse3 cx16 xtpr > pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c > rdrand rng rng_en ace ace_en ace2 phe phe_en pmm pmm_en lahf_lm abm > 3dnowprefetch ibrs ibpb tpr_shadow ept vpid fsgsbase tsc_adjust bmi1 > smep bmi2 invpcid rdseed adx smap sha_ni xsaveopt dtherm hwp > hwp_act_window hwp_epp hwp_pkg_req vnmi umip pku ospke rdpid > arch_capabilities > vmx flags : vnmi invvpid ept_x_only ept_1gb tsc_offset vtpr mtf ept > vpid unrestricted_guest ple [...] Notice that this has the PKU and OSPKE features set, but *not* XGETBV1. Which means that xfeatures_in_use() should not be called (and will cause a #GP exception). (The full bug report log for this is at <https://bugs.debian.org/1103397>.) Is there some fallback that could be used in case XGETBV1 is not available? Or do we need a dependency X86_FEATURE_PKU -> X86_FEATURE_XGETBV1 in arch/x86/kernel/cpu/cpuid-deps.c, so that we disable protection keys in this CPU? > > Ben. -- Ben Hutchings Who are all these weirdos? - David Bowie, on joining IRC [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <174486226753.86424.3234605951040281675.reportbug@zx2>]
[parent not found: <8bcebb19-17f6-47e6-976a-0c9560795cd7@yeah.net>]
* Re: Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes. [not found] ` <8bcebb19-17f6-47e6-976a-0c9560795cd7@yeah.net> @ 2025-05-08 20:15 ` Salvatore Bonaccorso 2025-05-09 3:31 ` Larry Wei 2025-05-09 3:49 ` Larry Wei 0 siblings, 2 replies; 7+ messages in thread From: Salvatore Bonaccorso @ 2025-05-08 20:15 UTC (permalink / raw) To: Larry Wei, 1103397 Cc: Ben Hutchings, TonyWWang-oc, Chang S. Bae, Lyle Li, tglx, mingo, bp, dave.hansen, x86, hpa, aruna.ramakrishna, pbonzini, levymitchell0, attofari, linux-kernel, CobeChen, TimGuo, LeoLiu-oc Hi Larry Wei, hi Ben, For context this is about https://bugs.debian.org/1103397, and which Ben did forward in https://lore.kernel.org/regressions/dddb6b8d56e3f28b914e1e243f948457d53149ce.camel@decadent.org.uk/T/ On Thu, May 08, 2025 at 03:12:31AM +0800, Larry Wei wrote: > Thank you all, > > I have pulled the newest `linux-next` changes and compiled it, my laptop > boots well now! https://linux-hardware.org/?probe=271fabb7a4 , but it still > prints some `WARNING` information at startup: > https://linux-hardware.org/?probe=271fabb7a4&log=dmesg . May this output is > useful for you maintainers. > > And, thank you all again. Going thorough the bugs I notice there was a related upstream discussion/patch relating to ae6012d72fa6 ("x86/pkeys: Ensure updated PKRU value is XRSTOR'd") in the following: https://lore.kernel.org/all/20250102075419.2559-1-TonyWWang-oc@zhaoxin.com/ There were some followups, but discussion ended on 18.01.2025. Did this felt through the cracks? Regards, Salvatore ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes. 2025-05-08 20:15 ` Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes Salvatore Bonaccorso @ 2025-05-09 3:31 ` Larry Wei 2025-05-09 3:49 ` Larry Wei 1 sibling, 0 replies; 7+ messages in thread From: Larry Wei @ 2025-05-09 3:31 UTC (permalink / raw) To: Salvatore Bonaccorso, 1103397 Cc: Ben Hutchings, TonyWWang-oc, Chang S. Bae, Lyle Li, tglx, mingo, bp, dave.hansen, x86, hpa, aruna.ramakrishna, pbonzini, levymitchell0, attofari, linux-kernel, CobeChen, TimGuo, LeoLiu-oc Salvatore Bonaccorso, Yes, let's just consider it as good. But in fact, there are still many problems, such as the one mentioned above (https://linux-hardware.org/?probe=271fabb7a4&log=dmesg), and almost all laptops using Zhaoxin CPUs cannot adjust the backlight brightness, which is **VERY HARMFUL** to the eyes! Regards, larryw3i On 5/9/25 04:15, Salvatore Bonaccorso wrote: > Did this felt through the cracks? ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes. 2025-05-08 20:15 ` Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes Salvatore Bonaccorso 2025-05-09 3:31 ` Larry Wei @ 2025-05-09 3:49 ` Larry Wei 2025-05-09 8:31 ` Tony W Wang-oc 1 sibling, 1 reply; 7+ messages in thread From: Larry Wei @ 2025-05-09 3:49 UTC (permalink / raw) To: Salvatore Bonaccorso, 1103397 Cc: Ben Hutchings, TonyWWang-oc, Chang S. Bae, Lyle Li, tglx, mingo, bp, dave.hansen, x86, hpa, aruna.ramakrishna, pbonzini, levymitchell0, attofari, linux-kernel, CobeChen, TimGuo, LeoLiu-oc Salvatore Bonaccorso, Yes, let's just consider it as good. But in fact, there are still many problems, such as the one mentioned above ( linux-hardware.org/?probe=271fabb7a4&log=dmesg ), and almost all laptops using Zhaoxin CPUs cannot adjust the backlight brightness, which is **VERY HARMFUL** to the eyes! Regards, larryw3i On 5/9/25 04:15, Salvatore Bonaccorso wrote: > Did this felt through the cracks? ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes. 2025-05-09 3:49 ` Larry Wei @ 2025-05-09 8:31 ` Tony W Wang-oc 2025-05-09 9:08 ` Larry Wei 0 siblings, 1 reply; 7+ messages in thread From: Tony W Wang-oc @ 2025-05-09 8:31 UTC (permalink / raw) To: Larry Wei, Salvatore Bonaccorso, 1103397 Cc: Ben Hutchings, Chang S. Bae, Lyle Li, tglx, mingo, bp, dave.hansen, x86, hpa, aruna.ramakrishna, pbonzini, levymitchell0, attofari, linux-kernel, CobeChen, TimGuo, LeoLiu-oc, GeorgeXue, yunshen, AlanSong On 2025/5/9 11:49, Larry Wei wrote: > > > [这封邮件来自外部发件人 谨防风险] > > Salvatore Bonaccorso, > > Yes, let's just consider it as good. But in fact, there are still many > problems, such as the one mentioned above ( > linux-hardware.org/?probe=271fabb7a4&log=dmesg ), and almost all laptops > using Zhaoxin CPUs cannot adjust the backlight brightness, which is > **VERY HARMFUL** to the eyes! Dear Larry, We are currently investigating the causes of the WARNING messages you mentioned in this log: [ 4.141284] ------------[ cut here ]------------ [ 4.141285] alg: self-tests for sha1 using sha1-padlock-nano failed (rc=-22) [ 4.141302] WARNING: CPU: 2 PID: 657 at crypto/testmgr.c:5865 alg_test.cold+0xb7/0xe0 Regarding the inability to adjust the laptop backlight brightness, we believe this issue is unlikely related to the CPU itself. It is recommended to contact the laptop manufacturer to confirm whether the device supports backlight brightness adjustment and inquire about specific configuration methods, such as installing specific EC controller drivers or updating graphics card drivers. BRs! TonyWWang-oc > > Regards, > > larryw3i > > On 5/9/25 04:15, Salvatore Bonaccorso wrote: >> Did this felt through the cracks? > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes. 2025-05-09 8:31 ` Tony W Wang-oc @ 2025-05-09 9:08 ` Larry Wei 2025-05-09 9:53 ` Tony W Wang-oc 0 siblings, 1 reply; 7+ messages in thread From: Larry Wei @ 2025-05-09 9:08 UTC (permalink / raw) To: Tony W Wang-oc, Salvatore Bonaccorso, 1103397 Cc: Ben Hutchings, Chang S. Bae, Lyle Li, tglx, mingo, bp, dave.hansen, x86, hpa, aruna.ramakrishna, pbonzini, levymitchell0, attofari, linux-kernel, CobeChen, TimGuo, LeoLiu-oc, GeorgeXue, yunshen, AlanSong Dear TonyWWang-oc, Yes, but actually, these graphics cards are your products, and neither C-960 nor C-1080 seem to be open source.The drivers provided on your official website do not seem to be used for Debian.I downloaded your drivers and extracted them, and I found that each file has the license content.Can I assume that these drivers are open source? Regards, larryw3i On 5/9/25 16:31, Tony W Wang-oc wrote: > such as installing specific EC controller drivers or updating graphics > card drivers. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes. 2025-05-09 9:08 ` Larry Wei @ 2025-05-09 9:53 ` Tony W Wang-oc 0 siblings, 0 replies; 7+ messages in thread From: Tony W Wang-oc @ 2025-05-09 9:53 UTC (permalink / raw) To: Larry Wei, Salvatore Bonaccorso, 1103397 Cc: Ben Hutchings, Chang S. Bae, Lyle Li, tglx, mingo, bp, dave.hansen, x86, hpa, aruna.ramakrishna, pbonzini, levymitchell0, attofari, linux-kernel, CobeChen, TimGuo, LeoLiu-oc, GeorgeXue, yunshen, AlanSong On 2025/5/9 17:08, Larry Wei wrote: > > > [这封邮件来自外部发件人 谨防风险] > > Dear TonyWWang-oc, > > Yes, but actually, these graphics cards are your products, and neither > C-960 nor C-1080 seem to be open source.The drivers provided on your > official website do not seem to be used for Debian.I downloaded your > drivers and extracted them, and I found that each file has the license > content.Can I assume that these drivers are open source? > Dear Larry, The graphics driver package contains both kernel-mode and user-mode components, where the kernel-mode components are open source, while graphics rendering tasks predominantly rely on user-mode implementations. BRs! TonyWWang-oc > Regards, > > larryw3i > > On 5/9/25 16:31, Tony W Wang-oc wrote: >> such as installing specific EC controller drivers or updating graphics >> card drivers. > ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-05-09 9:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4ac9f677-699e-4ef1-b160-9f1c6fe8e820@yeah.net>
[not found] ` <c566339b-d8d3-4f74-a3b8-8f373fbe3f47@yeah.net>
2025-04-25 3:45 ` linux-image-amd64: Kernel Panic: copy_fpstate_to_sigfrane crashes Ben Hutchings
[not found] ` <174486226753.86424.3234605951040281675.reportbug@zx2>
[not found] ` <8bcebb19-17f6-47e6-976a-0c9560795cd7@yeah.net>
2025-05-08 20:15 ` Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes Salvatore Bonaccorso
2025-05-09 3:31 ` Larry Wei
2025-05-09 3:49 ` Larry Wei
2025-05-09 8:31 ` Tony W Wang-oc
2025-05-09 9:08 ` Larry Wei
2025-05-09 9:53 ` Tony W Wang-oc
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.