Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #87015

Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigfrane crashes.

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigfrane crashes.
Date 2025-04-25 06:00 +0200
Message-ID <KFioh-g3Ic-5@gated-at.bofh.it> (permalink)
References <KF0hH-fPZh-7@gated-at.bofh.it> <KF0hH-fPZh-5@gated-at.bofh.it> <KET6x-fLik-3@gated-at.bofh.it> <KF0hH-fPZh-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigfrane crashes. Larry Wei <larryw3i@yeah.net> - 2025-04-24 10:40 +0200
  Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigfrane crashes. Ben Hutchings <ben@decadent.org.uk> - 2025-04-25 06:00 +0200
  Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigfrane crashes. Larry Wei <larryw3i@yeah.net> - 2025-05-07 21:30 +0200
    Bug#1103397: linux-image-amd64: Kernel Panic:  copy_fpstate_to_sigframe crashes. Salvatore Bonaccorso <carnil@debian.org> - 2025-05-08 22:20 +0200
      Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes. Larry Wei <larryw3i@yeah.net> - 2025-05-09 06:00 +0200
        Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes. Tony W Wang-oc <TonyWWang-oc@zhaoxin.com> - 2025-05-09 11:10 +0200
          Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes. Larry Wei <larryw3i@yeah.net> - 2025-05-09 11:20 +0200
            Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes. Tony W Wang-oc <TonyWWang-oc@zhaoxin.com> - 2025-05-09 12:00 +0200
              Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes. Larry Wei <larryw3i@yeah.net> - 2025-05-09 15:40 +0200
      Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigframe crashes. Larry Wei <larryw3i@yeah.net> - 2025-05-09 06:10 +0200
    Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigfrane crashes. Ben Hutchings <ben@decadent.org.uk> - 2025-05-09 22:40 +0200
      Processed: Re: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigfrane  crashes. "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-05-09 22:40 +0200
      Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigfrane crashes. Larry Wei <larryw3i@yeah.net> - 2025-05-10 17:10 +0200
      Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigfrane crashes. Larry Wei <larryw3i@yeah.net> - 2025-05-10 18:10 +0200
        Bug#1103397: linux-image-amd64: Kernel Panic: copy_fpstate_to_sigfrane crashes. Larry Wei <larryw3i@yeah.net> - 2025-05-10 18:40 +0200
          Bug#1103397: Missing backlight control on Zhaoxin SoC Ben Hutchings <ben@decadent.org.uk> - 2025-05-14 00:30 +0200

csiph-web