lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 27 Mar 2022 18:30:27 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Thomas Gleixner <tglx@...utronix.de>
Cc:     lkp@...ts.01.org, lkp@...el.com,
        LKML <linux-kernel@...r.kernel.org>
Subject: [x86/fpu/xstate]  3c238fa8a9:
 WARNING:at_arch/x86/kernel/fpu/xstate.c:#fpu__init_system_xstate



Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: 3c238fa8a9b19d96892d6de4be1a4a6353515b50 ("x86/fpu/xstate: Consolidate size calculations")
https://git.kernel.org/cgit/linux/kernel/git/tglx/devel.git x86/fpu

in testcase: xsave-test
version: xsave-test-x86_64-3cc5e47-1_20210719
with following parameters:

	ucode: 0x9c02000e



on test machine: 24 threads 1 sockets Intel Atom(R) P5362 processor with 64G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):



If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>


[ 0.000000][ T0] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/fpu/xstate.c:601 fpu__init_system_xstate (arch/x86/kernel/fpu/xstate.c:601 arch/x86/kernel/fpu/xstate.c:711 arch/x86/kernel/fpu/xstate.c:843) 
[    0.000000][    T0] Modules linked in:
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper Not tainted 5.17.0-02181-g3c238fa8a9b1 #1
[ 0.000000][ T0] RIP: 0010:fpu__init_system_xstate (arch/x86/kernel/fpu/xstate.c:601 arch/x86/kernel/fpu/xstate.c:711 arch/x86/kernel/fpu/xstate.c:843) 
[ 0.000000][ T0] Code: 1d 84 39 c3 0f 84 04 02 00 00 80 3d f3 f0 86 ff 00 0f 85 bf fe ff ff 48 c7 c7 80 a5 a1 83 c6 05 df f0 86 ff 01 e8 49 c1 bb fd <0f> 0b e9 a5 fe ff ff 48 c7 c7 c0 73 1d 84 31 d2 48 0f ae 2f 31 c0
All code
========
   0:	1d 84 39 c3 0f       	sbb    $0xfc33984,%eax
   5:	84 04 02             	test   %al,(%rdx,%rax,1)
   8:	00 00                	add    %al,(%rax)
   a:	80 3d f3 f0 86 ff 00 	cmpb   $0x0,-0x790f0d(%rip)        # 0xffffffffff86f104
  11:	0f 85 bf fe ff ff    	jne    0xfffffffffffffed6
  17:	48 c7 c7 80 a5 a1 83 	mov    $0xffffffff83a1a580,%rdi
  1e:	c6 05 df f0 86 ff 01 	movb   $0x1,-0x790f21(%rip)        # 0xffffffffff86f104
  25:	e8 49 c1 bb fd       	callq  0xfffffffffdbbc173
  2a:*	0f 0b                	ud2    		<-- trapping instruction
  2c:	e9 a5 fe ff ff       	jmpq   0xfffffffffffffed6
  31:	48 c7 c7 c0 73 1d 84 	mov    $0xffffffff841d73c0,%rdi
  38:	31 d2                	xor    %edx,%edx
  3a:	48 0f ae 2f          	xrstor64 (%rdi)
  3e:	31 c0                	xor    %eax,%eax

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2    
   2:	e9 a5 fe ff ff       	jmpq   0xfffffffffffffeac
   7:	48 c7 c7 c0 73 1d 84 	mov    $0xffffffff841d73c0,%rdi
   e:	31 d2                	xor    %edx,%edx
  10:	48 0f ae 2f          	xrstor64 (%rdi)
  14:	31 c0                	xor    %eax,%eax
[    0.000000][    T0] RSP: 0000:ffffffff84407d08 EFLAGS: 00010086 ORIG_RAX: 0000000000000000
[    0.000000][    T0] RAX: 0000000000000000 RBX: 0000000000000240 RCX: 0000000000000000
[    0.000000][    T0] RDX: c0000000ffff7fff RSI: ffffffff84407a28 RDI: fffffbfff0880f93
[    0.000000][    T0] RBP: 0000000000000001 R08: 0000000000000000 R09: fffffbfff0880f2f
[    0.000000][    T0] R10: ffffffff84407977 R11: fffffbfff0880f2e R12: 0000000000000001
[    0.000000][    T0] R13: 0000000000000200 R14: 00000000000001a0 R15: 0000000000000240
[    0.000000][    T0] FS:  0000000000000000(0000) GS:ffffffff85891000(0000) knlGS:0000000000000000
[    0.000000][    T0] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.000000][    T0] CR2: ffff88906b9ff000 CR3: 000000107f5b4000 CR4: 00000000000406a0
[    0.000000][    T0] Call Trace:
[    0.000000][    T0]  <TASK>
[ 0.000000][ T0] ? fpu__init_system (arch/x86/kernel/fpu/init.c:166 arch/x86/kernel/fpu/init.c:238) 
[ 0.000000][ T0] ? arch_post_acpi_subsys_init (arch/x86/kernel/fpu/init.c:225) 
[ 0.000000][ T0] ? early_cpu_init (arch/x86/kernel/cpu/common.c:1420 arch/x86/kernel/cpu/common.c:1478) 
[ 0.000000][ T0] ? setup_arch (arch/x86/kernel/setup.c:813 (discriminator 4)) 
[ 0.000000][ T0] ? reserve_standard_io_resources (arch/x86/kernel/setup.c:777) 
[ 0.000000][ T0] ? _printk (kernel/printk/printk.c:2261) 
[ 0.000000][ T0] ? record_print_text.cold (kernel/printk/printk.c:2261) 
[ 0.000000][ T0] ? cgroup_init_early (kernel/cgroup/cgroup.c:5814 (discriminator 13)) 
[ 0.000000][ T0] ? rdmacg_css_free (kernel/cgroup/rdma.c:564) 
[ 0.000000][ T0] ? start_kernel (init/main.c:951) 
[ 0.000000][ T0] ? x86_64_start_kernel (arch/x86/kernel/head64.c:525) 
[ 0.000000][ T0] ? secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:300) 
[    0.000000][    T0]  </TASK>
[    0.000000][    T0] ---[ end trace 0000000000000000 ]---
[    0.000000][    T0] CPUID[0d, 00]: eax=00000003 ebx=00000240 ecx=00000240 edx=00000000
[    0.000000][    T0] CPUID[0d, 01]: eax=0000000f ebx=00000240 ecx=00000100 edx=00000000
[    0.000000][    T0] CPUID[0d, 02]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 03]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 04]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 05]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 06]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 07]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 08]: eax=00000080 ebx=00000000 ecx=00000001 edx=00000000
[    0.000000][    T0] CPUID[0d, 09]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 0a]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 0b]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 0c]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 0d]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 0e]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 0f]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 10]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 11]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 12]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 13]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 14]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 15]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 16]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 17]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 18]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 19]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 1a]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 1b]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] CPUID[0d, 1c]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000
[    0.000000][    T0] signal: max sigframe size: 1440
[    0.000000][    T0] BIOS-provided physical RAM map:
[    0.000000][    T0] BIOS-e820: [mem 0x0000000000000100-0x000000000009efff] usable
[    0.000000][    T0] BIOS-e820: [mem 0x000000000009f000-0x00000000000fffff] reserved
[    0.000000][    T0] BIOS-e820: [mem 0x0000000000100000-0x00000000650d5fff] usable
[    0.000000][    T0] BIOS-e820: [mem 0x00000000650d6000-0x00000000650e5fff] reserved
[    0.000000][    T0] BIOS-e820: [mem 0x00000000650e6000-0x0000000065f1bfff] usable
[    0.000000][    T0] BIOS-e820: [mem 0x0000000065f1c000-0x0000000067336fff] reserved
[    0.000000][    T0] BIOS-e820: [mem 0x0000000067337000-0x00000000692bafff] ACPI NVS
[    0.000000][    T0] BIOS-e820: [mem 0x00000000692bb000-0x00000000693fdfff] ACPI data
[    0.000000][    T0] BIOS-e820: [mem 0x00000000693fe000-0x000000006f7fffff] usable
[    0.000000][    T0] BIOS-e820: [mem 0x000000006f800000-0x000000008fffffff] reserved
[    0.000000][    T0] BIOS-e820: [mem 0x00000000fe010000-0x00000000fe010fff] reserved
[    0.000000][    T0] BIOS-e820: [mem 0x0000000100000000-0x000000107fffffff] usable
[    0.000000][    T0] printk: debug: ignoring loglevel setting.
[    0.000000][    T0] printk: bootconsole [earlyser0] enabled
[    0.000000][    T0] NX (Execute Disable) protection: active
[    0.000000][    T0] DMI not present or invalid.
[    0.000000][    T0] tsc: Detected 2200.000 MHz processor
[    0.000023][    T0] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000264][    T0] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000472][    T0] last_pfn = 0x1080000 max_arch_pfn = 0x400000000
[    0.000808][    T0] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT
[    0.002388][    T0] total RAM covered: 65520M
[    0.003059][    T0] Found optimal setting for mtrr clean up
[    0.003236][    T0]  gran_size: 64K 	chunk_size: 32M 	num_reg: 7  	lose cover RAM: 0G
[    0.003604][    T0] e820: update [mem 0x7f000000-0xffffffff] usable ==> reserved
[    0.003845][    T0] x2apic: enabled by BIOS, switching to x2apic ops
[    0.004047][    T0] last_pfn = 0x6f800 max_arch_pfn = 0x400000000
[    0.004241][    T0] Scan for SMP in [mem 0x00000000-0x000003ff]
[    0.004443][    T0] Scan for SMP in [mem 0x0009fc00-0x0009ffff]
[    0.004644][    T0] Scan for SMP in [mem 0x000f0000-0x000fffff]
[    0.010588][    T0] Using GB pages for direct mapping
[    0.011874][    T0] RAMDISK: [mem 0x106b9ff000-0x107abfffff]
[    0.012057][    T0] ACPI: Early table checksum verification disabled
[    0.012262][    T0] ACPI: RSDP 0x00000000693FD014 000024 (v02 INTEL )
[    0.012473][    T0] ACPI: XSDT 0x00000000692FB188 0000D4 (v01 INTEL  INTEL ID 00000000 INTL 01000013)
[    0.012775][    T0] ACPI: FACP 0x00000000693F6000 000114 (v06 INTEL  INTEL ID 00000000 INTL 20091013)
[    0.013078][    T0] ACPI: DSDT 0x00000000693DB000 016E37 (v02 INTEL  INTEL ID 00000003 INTL 20091013)
[    0.013376][    T0] ACPI: FACS 0x0000000069298000 000040
[    0.013550][    T0] ACPI: SSDT 0x00000000693FB000 00076F (v02 INTEL  RAS_ACPI 00000001 INTL 20181003)
[    0.013847][    T0] ACPI: SSDT 0x00000000693FA000 000663 (v02 INTEL  ADDRXLAT 00000001 INTL 20181003)
[    0.014144][    T0] ACPI: BERT 0x00000000693F9000 000030 (v01 INTEL  INTEL ID 00000001 INTL 00000001)
[    0.014440][    T0] ACPI: ERST 0x00000000693F8000 000230 (v01 INTEL  INTEL ID 00000001 INTL 00000001)
[    0.014736][    T0] ACPI: BDAT 0x00000000693F7000 000030 (v01 INTEL  INTEL ID 00000000 INTL 20091013)
[    0.015034][    T0] ACPI: HMAT 0x00000000693F5000 000698 (v01 INTEL  INTEL ID 00000001 INTL 20091013)
[    0.015330][    T0] ACPI: HPET 0x00000000693F4000 000038 (v01 INTEL  INTEL ID 00000001 INTL 20091013)
[    0.015627][    T0] ACPI: MCFG 0x00000000693F3000 00003C (v01 INTEL  INTEL ID 00000001 INTL 20091013)
[    0.015923][    T0] ACPI: WDDT 0x00000000693F2000 000040 (v01 INTEL  INTEL ID 00000000 INTL 20091013)
[    0.016219][    T0] ACPI: APIC 0x00000000693DA000 00011E (v04 INTEL  INTEL ID 00000000 INTL 20091013)
[    0.016515][    T0] ACPI: SLIT 0x00000000693D9000 00012C (v01 INTEL  INTEL ID 00000001 INTL 01000013)
[    0.016811][    T0] ACPI: SRAT 0x00000000693D7000 001570 (v03 INTEL  INTEL ID 00000002 INTL 01000013)
[    0.017107][    T0] ACPI: OEM4 0x0000000069375000 061EE1 (v02 INTEL  CPU  CST 00003000 INTL 20181003)
[    0.017404][    T0] ACPI: OEM1 0x0000000069330000 044D89 (v02 INTEL  CPU EIST 00003000 INTL 20181003)
[    0.017700][    T0] ACPI: OEM2 0x000000006931E000 011831 (v02 INTEL  CPU  HWP 00003000 INTL 20181003)
[    0.017996][    T0] ACPI: SSDT 0x0000000069300000 01D9A5 (v02 INTEL  SSDT  PM 00004000 INTL 20181003)
[    0.018292][    T0] ACPI: SSDT 0x00000000692FF000 000943 (v02 INTEL  INTEL ID 00000000 INTL 20091013)
[    0.018589][    T0] ACPI: HEST 0x00000000692FE000 00013C (v01 INTEL  INTEL ID 00000001 INTL 00000001)
[    0.018885][    T0] ACPI: SPCR 0x00000000692FD000 000050 (v02 INTEL  INTEL ID 00000000 INTL 01000013)
[    0.019182][    T0] ACPI: DMAR 0x00000000692FC000 0000D8 (v01 INTEL  INTEL ID 00000001 INTL 20091013)
[    0.019478][    T0] ACPI: FPDT 0x00000000693FC000 000044 (v01 INTEL  INTEL ID 00000002 INTL 01000013)
[    0.019773][    T0] ACPI: Reserving FACP table memory at [mem 0x693f6000-0x693f6113]
[    0.020020][    T0] ACPI: Reserving DSDT table memory at [mem 0x693db000-0x693f1e36]
[    0.020266][    T0] ACPI: Reserving FACS table memory at [mem 0x69298000-0x6929803f]
[    0.020511][    T0] ACPI: Reserving SSDT table memory at [mem 0x693fb000-0x693fb76e]
[    0.020757][    T0] ACPI: Reserving SSDT table memory at [mem 0x693fa000-0x693fa662]
[    0.021002][    T0] ACPI: Reserving BERT table memory at [mem 0x693f9000-0x693f902f]
[    0.021248][    T0] ACPI: Reserving ERST table memory at [mem 0x693f8000-0x693f822f]


To reproduce:

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        sudo bin/lkp install job.yaml           # job file is attached in this email
        bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
        sudo bin/lkp run generated-yaml-file

        # if come across any failure that blocks the test,
        # please remove ~/.lkp and /lkp dir to run from a clean state.



-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



View attachment "config-5.17.0-02181-g3c238fa8a9b1" of type "text/plain" (166041 bytes)

View attachment "job-script" of type "text/plain" (5150 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (23448 bytes)

View attachment "xsave-test" of type "text/plain" (41185 bytes)

View attachment "job.yaml" of type "text/plain" (4256 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ