linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* v5.12.0-rc5: the kernel panics if FIPS mode is on
@ 2021-03-29 21:56 Dexuan Cui
  2021-03-30  1:25 ` Eric Biggers
  0 siblings, 1 reply; 3+ messages in thread
From: Dexuan Cui @ 2021-03-29 21:56 UTC (permalink / raw)
  To: linux-crypto; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 4794 bytes --]

Hi all,
The v5.12.0-rc5 kernel (1e43c377a79f) panics with fips=1.

Please refer to the below panic call-trace. The kernel config file and
the full kernel messages are also attached.

Is this a known issue?

Thanks,
-- Dexuan

         Starting dracut pre-udev hook...
[    7.260424] alg: self-tests for sha512-generic (sha512) passed
[    7.265917] alg: self-tests for sha384-generic (sha384) passed
[    7.272426] alg: self-tests for sha512-ssse3 (sha512) passed
[    7.276500] alg: self-tests for sha384-ssse3 (sha384) passed
[    7.281722] alg: self-tests for sha512-avx (sha512) passed
[    7.286579] alg: self-tests for sha384-avx (sha384) passed
[    7.291631] alg: self-tests for sha512-avx2 (sha512) passed
[    7.296950] alg: self-tests for sha384-avx2 (sha384) passed
[    7.321040] alg: self-tests for sha3-224-generic (sha3-224) passed
[    7.330291] alg: self-tests for sha3-256-generic (sha3-256) passed
[    7.335918] alg: self-tests for sha3-384-generic (sha3-384) passed
[    7.341508] alg: self-tests for sha3-512-generic (sha3-512) passed
[    7.381918] alg: self-tests for crc32c-intel (crc32c) passed
[    7.396694] alg: self-tests for crct10dif-pclmul (crct10dif) passed
[    7.453515] alg: self-tests for ghash-clmulni (ghash) passed
[    7.469558] alg: self-tests for des3_ede-asm (des3_ede) passed
[    7.475355] alg: self-tests for ecb-des3_ede-asm (ecb(des3_ede)) passed
[    7.481361] alg: self-tests for cbc-des3_ede-asm (cbc(des3_ede)) passed
[    7.488656] alg: self-tests for des3_ede-generic (des3_ede) passed
[    7.304930] dracut-pre-udev[502]: modprobe: ERROR: could not insert 'padlock_aes': No such device
[    7.579580] alg: No test for fips(ansi_cprng) (fips_ansi_cprng)
[    7.606547] alg: self-tests for sha1 (sha1) passed
[    7.610624] alg: self-tests for ecb(des3_ede) (ecb(des3_ede)) passed
[    7.615746] alg: self-tests for cbc(des3_ede) (cbc(des3_ede)) passed
[    7.638067] alg: self-tests for ctr(des3_ede-asm) (ctr(des3_ede)) passed
[    7.644781] alg: self-tests for ctr(des3_ede) (ctr(des3_ede)) passed
[    7.653810] alg: self-tests for sha256 (sha256) passed
[    7.658945] alg: self-tests for ecb(aes) (ecb(aes)) passed
[    7.663493] alg: self-tests for cbc(aes) (cbc(aes)) passed
[    7.668421] alg: self-tests for xts(aes) (xts(aes)) passed
[    7.672389] alg: self-tests for ctr(aes) (ctr(aes)) passed
[    7.692973] alg: self-tests for rfc3686(ctr-aes-aesni) (rfc3686(ctr(aes))) passed
[    7.699446] alg: self-tests for rfc3686(ctr(aes)) (rfc3686(ctr(aes))) passed
[    7.730149] alg: skcipher: failed to allocate transform for ofb(aes): -2
[    7.735959] Kernel panic - not syncing: alg: self-tests for ofb(aes) (ofb(aes)) failed in fips mode!
[    7.736952] CPU: 13 PID: 560 Comm: modprobe Tainted: G        W         5.12.0-rc5+ #3
[    7.736952] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090008  12/07/2018
[    7.736952] Call Trace:
[    7.736952]  dump_stack+0x64/0x7c
[    7.736952]  panic+0xfb/0x2d7
[    7.736952]  alg_test+0x42d/0x460
[    7.736952]  ? __kernfs_new_node+0x175/0x1d0
[    7.736952]  do_test+0x3248/0x57ea [tcrypt]
[    7.736952]  do_test+0x1f2c/0x57ea [tcrypt]
[    7.736952]  ? 0xffffffffc031d000
[    7.736952]  tcrypt_mod_init+0x55/0x1000 [tcrypt]
[    7.736952]  ? 0xffffffffc031d000
[    7.736952]  do_one_initcall+0x44/0x1d0
[    7.736952]  ? __cond_resched+0x15/0x30
[    7.736952]  ? kmem_cache_alloc_trace+0x3d/0x410
[    7.736952]  do_init_module+0x5a/0x230
[    7.736952]  load_module+0x1a5b/0x1bc0
[    7.736952]  ? __do_sys_finit_module+0xad/0x110
[    7.736952]  __do_sys_finit_module+0xad/0x110
[    7.736952]  do_syscall_64+0x33/0x40
[    7.736952]  entry_SYSCALL_64_after_hwframe+0x44/0xae
[    7.736952] RIP: 0033:0x7ff2e760978d
[    7.736952] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 56 2c 00 f7 d8 64 89 01 48
[    7.736952] RSP: 002b:00007ffd80204308 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    7.736952] RAX: ffffffffffffffda RBX: 0000563dcfe8f030 RCX: 00007ff2e760978d
[    7.736952] RDX: 0000000000000000 RSI: 0000563dcf41d7b6 RDI: 0000000000000003
[    7.736952] RBP: 0000563dcf41d7b6 R08: 0000000000000000 R09: 0000000000000000
[    7.736952] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
[    7.736952] R13: 0000563dcfe934c0 R14: 0000000000040000 R15: 0000000000000000
[    7.736952] Kernel Offset: 0x10800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    7.736952] ---[ end Kernel panic - not syncing: alg: self-tests for ofb(aes) (ofb(aes)) failed in fips mode! ]---

[-- Attachment #2: v5.12-rc5.kernel.config.txt.tar.gz --]
[-- Type: application/x-gzip, Size: 50156 bytes --]

[-- Attachment #3: kernel.message.txt --]
[-- Type: text/plain, Size: 42061 bytes --]

[    0.000000] Linux version 5.12.0-rc5+ (root@decui-co83-fips) (gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5), GNU ld version 2.30-79.el8) #3 SMP Mon Mar 29 21:26:58 UTC 2021
[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt1)/vmlinuz-5.12.0-rc5+ root=UUID=ac6f7e08-aa51-4785-8081-73af0665db4a ro console=tty1 console=ttyS0,115200n8 earlyprintk=ttyS0,115200 rootdelay=300 scsi_mod.use_blk_mq=y crashkernel=auto fips=1 boot=UUID=b5d6e9c6-7341-4c0e-8e0d-b2810e4a306b
[    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003ffeffff] usable
[    0.000000] BIOS-e820: [mem 0x000000003fff0000-0x000000003fffefff] ACPI data
[    0.000000] BIOS-e820: [mem 0x000000003ffff000-0x000000003fffffff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x0000000fdfffffff] usable
[    0.000000] BIOS-e820: [mem 0x0000001000000000-0x00000020dfffffff] usable
[    0.000000] printk: bootconsole [earlyser0] enabled
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.3 present.
[    0.000000] DMI: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090008  12/07/2018
[    0.000000] Hypervisor detected: Microsoft Hyper-V
[    0.000000] Hyper-V: features 0x2e7f, hints 0x40c2c, misc 0xbed7b2
[    0.000000] Hyper-V Host Build:18362-10.0-3-0.3256
[    0.000000] Hyper-V: LAPIC Timer Frequency: 0x30d40
[    0.000000] tsc: Marking TSC unstable due to running on Hyper-V
[    0.000000] Hyper-V: Using hypercall for remote TLB flush
[    0.000000] clocksource: hyperv_clocksource_tsc_page: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.000001] tsc: Detected 2345.604 MHz processor
[    0.003736] last_pfn = 0x20e0000 max_arch_pfn = 0x400000000
[    0.006743] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT  
Memory KASLR using RDRAND RDTSC...
[    0.012993] last_pfn = 0x3fff0 max_arch_pfn = 0x400000000
[    0.020039] found SMP MP-table at [mem 0x000ff780-0x000ff78f]
[    0.023622] kexec: Reserving the low 1M of memory for crashkernel
[    0.027179] Using GB pages for direct mapping
[    0.030116] RAMDISK: [mem 0x2e88d000-0x3343efff]
[    0.033009] ACPI: Early table checksum verification disabled
[    0.036981] ACPI: RSDP 0x00000000000F5C00 000014 (v00 ACPIAM)
[    0.040460] ACPI: RSDT 0x000000003FFF0000 000040 (v01 VRTUAL MICROSFT 12001807 MSFT 00000097)
[    0.046586] ACPI: FACP 0x000000003FFF0200 000081 (v02 VRTUAL MICROSFT 12001807 MSFT 00000097)
[    0.052484] ACPI: DSDT 0x000000003FFF1D24 003CD5 (v01 MSFTVM MSFTVM02 00000002 INTL 02002026)
[    0.057985] ACPI: FACS 0x000000003FFFF000 000040
[    0.061046] ACPI: WAET 0x000000003FFF1A80 000028 (v01 VRTUAL MICROSFT 12001807 MSFT 00000097)
[    0.065520] ACPI: SLIC 0x000000003FFF1AC0 000176 (v01 VRTUAL MICROSFT 12001807 MSFT 00000097)
[    0.069961] ACPI: OEM0 0x000000003FFF1CC0 000064 (v01 VRTUAL MICROSFT 12001807 MSFT 00000097)
[    0.074953] ACPI: SRAT 0x000000003FFF0800 000500 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.081432] ACPI: APIC 0x000000003FFF0300 000152 (v01 VRTUAL MICROSFT 12001807 MSFT 00000097)
[    0.087515] ACPI: OEMB 0x000000003FFFF040 000064 (v01 VRTUAL MICROSFT 12001807 MSFT 00000097)
[    0.092207] SRAT: PXM 0 -> APIC 0x00 -> Node 0
[    0.095602] SRAT: PXM 0 -> APIC 0x01 -> Node 0
[    0.098426] SRAT: PXM 0 -> APIC 0x02 -> Node 0
[    0.101259] SRAT: PXM 0 -> APIC 0x03 -> Node 0
[    0.103478] SRAT: PXM 0 -> APIC 0x04 -> Node 0
[    0.105602] SRAT: PXM 0 -> APIC 0x05 -> Node 0
[    0.107878] SRAT: PXM 0 -> APIC 0x06 -> Node 0
[    0.110286] SRAT: PXM 0 -> APIC 0x07 -> Node 0
[    0.113394] SRAT: PXM 1 -> APIC 0x08 -> Node 1
[    0.115736] SRAT: PXM 1 -> APIC 0x09 -> Node 1
[    0.118550] SRAT: PXM 1 -> APIC 0x0a -> Node 1
[    0.121670] SRAT: PXM 1 -> APIC 0x0b -> Node 1
[    0.123994] SRAT: PXM 1 -> APIC 0x0c -> Node 1
[    0.126581] SRAT: PXM 1 -> APIC 0x0d -> Node 1
[    0.129785] SRAT: PXM 1 -> APIC 0x0e -> Node 1
[    0.132534] SRAT: PXM 1 -> APIC 0x0f -> Node 1
[    0.134932] SRAT: PXM 2 -> APIC 0x10 -> Node 2
[    0.137307] SRAT: PXM 2 -> APIC 0x11 -> Node 2
[    0.139489] SRAT: PXM 2 -> APIC 0x12 -> Node 2
[    0.142687] SRAT: PXM 2 -> APIC 0x13 -> Node 2
[    0.145984] SRAT: PXM 2 -> APIC 0x14 -> Node 2
[    0.148208] SRAT: PXM 2 -> APIC 0x15 -> Node 2
[    0.151189] SRAT: PXM 2 -> APIC 0x16 -> Node 2
[    0.153237] SRAT: PXM 2 -> APIC 0x17 -> Node 2
[    0.155741] SRAT: PXM 3 -> APIC 0x18 -> Node 3
[    0.158006] SRAT: PXM 3 -> APIC 0x19 -> Node 3
[    0.161397] SRAT: PXM 3 -> APIC 0x1a -> Node 3
[    0.164732] SRAT: PXM 3 -> APIC 0x1b -> Node 3
[    0.167532] SRAT: PXM 3 -> APIC 0x1c -> Node 3
[    0.169683] SRAT: PXM 3 -> APIC 0x1d -> Node 3
[    0.172513] SRAT: PXM 3 -> APIC 0x1e -> Node 3
[    0.175557] SRAT: PXM 3 -> APIC 0x1f -> Node 3
[    0.177604] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0x3fffffff] hotplug
[    0.182688] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0x8bfffffff] hotplug
[    0.186038] ACPI: SRAT: Node 1 PXM 1 [mem 0x8c0000000-0xfdfffffff] hotplug
[    0.191048] ACPI: SRAT: Node 1 PXM 1 [mem 0x1000000000-0x10dfffffff] hotplug
[    0.195527] ACPI: SRAT: Node 2 PXM 2 [mem 0x10e0000000-0x18dfffffff] hotplug
[    0.198942] ACPI: SRAT: Node 3 PXM 3 [mem 0x18e0000000-0x20dfffffff] hotplug
[    0.202677] ACPI: SRAT: Node 0 PXM 0 [mem 0x20e0000000-0x57e7ffffff] hotplug
[    0.207467] ACPI: SRAT: Node 0 PXM 0 [mem 0x10000000000-0x13fffffffff] hotplug
[    0.211107] ACPI: SRAT: Node 0 PXM 0 [mem 0x20000000000-0x27fffffffff] hotplug
[    0.215064] ACPI: SRAT: Node 1 PXM 1 [mem 0x57e8000000-0x8eefffffff] hotplug
[    0.219207] ACPI: SRAT: Node 1 PXM 1 [mem 0x14000000000-0x17fffffffff] hotplug
[    0.223247] ACPI: SRAT: Node 1 PXM 1 [mem 0x28000000000-0x2ffffffffff] hotplug
[    0.227272] ACPI: SRAT: Node 2 PXM 2 [mem 0x8ef0000000-0xc5f7ffffff] hotplug
[    0.231292] ACPI: SRAT: Node 2 PXM 2 [mem 0x18000000000-0x1bfffffffff] hotplug
[    0.235657] ACPI: SRAT: Node 2 PXM 2 [mem 0x30000000000-0x37fffffffff] hotplug
[    0.240899] ACPI: SRAT: Node 3 PXM 3 [mem 0xc5f8000000-0xfcffffffff] hotplug
[    0.246029] ACPI: SRAT: Node 3 PXM 3 [mem 0x1c000000000-0x1ffffffffff] hotplug
[    0.250821] ACPI: SRAT: Node 3 PXM 3 [mem 0x38000000000-0x3ffffffffff] hotplug
[    0.254947] NUMA: Node 0 [mem 0x00000000-0x3fffffff] + [mem 0x100000000-0x8bfffffff] -> [mem 0x00000000-0x8bfffffff]
[    0.261549] NUMA: Node 1 [mem 0x8c0000000-0xfdfffffff] + [mem 0x1000000000-0x10dfffffff] -> [mem 0x8c0000000-0x10dfffffff]
[    0.268528] NODE_DATA(0) allocated [mem 0x8bffd6000-0x8bfffffff]
[    0.272289] NODE_DATA(1) allocated [mem 0x10dffd6000-0x10dfffffff]
[    0.275766] NODE_DATA(2) allocated [mem 0x18dffd6000-0x18dfffffff]
[    0.279711] NODE_DATA(3) allocated [mem 0x20dffd5000-0x20dfffefff]
[    0.283634] crashkernel: memory value expected
[    0.286137] Zone ranges:
[    0.287387]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.291161]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.295286]   Normal   [mem 0x0000000100000000-0x00000020dfffffff]
[    0.298727]   Device   empty
[    0.300250] Movable zone start for each node
[    0.303104] Early memory node ranges
[    0.305144]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.309342]   node   0: [mem 0x0000000000100000-0x000000003ffeffff]
[    0.313527]   node   0: [mem 0x0000000100000000-0x00000008bfffffff]
[    0.318155]   node   1: [mem 0x00000008c0000000-0x0000000fdfffffff]
[    0.322045]   node   1: [mem 0x0000001000000000-0x00000010dfffffff]
[    0.326519]   node   2: [mem 0x00000010e0000000-0x00000018dfffffff]
[    0.329956]   node   3: [mem 0x00000018e0000000-0x00000020dfffffff]
[    0.333198] Initmem setup node 0 [mem 0x0000000000001000-0x00000008bfffffff]
[    0.337994]   DMA zone: 28770 pages in unavailable ranges
[    0.342760]   DMA32 zone: 16 pages in unavailable ranges
[    0.345696] Initmem setup node 1 [mem 0x00000008c0000000-0x00000010dfffffff]
[    0.351203] Initmem setup node 2 [mem 0x00000010e0000000-0x00000018dfffffff]
[    0.357038] Initmem setup node 3 [mem 0x00000018e0000000-0x00000020dfffffff]
[    0.363164] ACPI: PM-Timer IO Port: 0x408
[    0.365459] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[    0.369075] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[    0.372736] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.376925] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.380253] Using ACPI (MADT) for SMP configuration information
[    0.383368] smpboot: Allowing 32 CPUs, 0 hotplug CPUs
[    0.386066] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.389789] PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[    0.393467] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000dffff]
[    0.397237] PM: hibernation: Registered nosave memory: [mem 0x000e0000-0x000fffff]
[    0.401412] PM: hibernation: Registered nosave memory: [mem 0x3fff0000-0x3fffefff]
[    0.405360] PM: hibernation: Registered nosave memory: [mem 0x3ffff000-0x3fffffff]
[    0.409552] PM: hibernation: Registered nosave memory: [mem 0x40000000-0xffffffff]
[    0.414553] PM: hibernation: Registered nosave memory: [mem 0xfe0000000-0xfffffffff]
[    0.419006] [mem 0x40000000-0xffffffff] available for PCI devices
[    0.422344] Booting paravirtualized kernel on Hyper-V
[    0.425194] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[    0.435265] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:32 nr_cpu_ids:32 nr_node_ids:4
[    0.441500] percpu: Embedded 55 pages/cpu s188416 r8192 d28672 u262144
[    0.445101] Hyper-V: PV spinlocks enabled
[    0.447736] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.451798] Built 4 zonelists, mobility grouping on.  Total pages: 33027824
[    0.456899] Policy zone: Normal
[    0.458718] Kernel command line: BOOT_IMAGE=(hd0,gpt1)/vmlinuz-5.12.0-rc5+ root=UUID=ac6f7e08-aa51-4785-8081-73af0665db4a ro console=tty1 console=ttyS0,115200n8 earlyprintk=ttyS0,115200 rootdelay=300 scsi_mod.use_blk_mq=y crashkernel=auto fips=1 boot=UUID=b5d6e9c6-7341-4c0e-8e0d-b2810e4a306b
[    0.472627] fips mode: enabled
[    0.474933] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.512309] Memory: 1428468K/134217272K available (12297K kernel code, 5845K rwdata, 7664K rodata, 2384K init, 6212K bss, 2298584K reserved, 0K cma-reserved)
[    0.519592] random: get_random_u64 called from cache_random_seq_create+0x80/0x170 with crng_init=0
[    0.519697] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=32, Nodes=4
[    0.527362] ftrace: allocating 41040 entries in 161 pages
[    0.541690] ftrace: allocated 161 pages with 3 groups
[    0.544696] rcu: Hierarchical RCU implementation.
[    0.547955] rcu: 	RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=32.
[    0.551208] 	Rude variant of Tasks RCU enabled.
[    0.553446] 	Tracing variant of Tasks RCU enabled.
[    0.556742] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.561058] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=32
[    0.567450] NR_IRQS: 524544, nr_irqs: 680, preallocated irqs: 16
[    0.573140] random: crng done (trusting CPU's manufacturer)
[    0.585133] Console: colour VGA+ 80x25
[    0.731004] printk: console [tty1] enabled
[    0.734091] printk: console [ttyS0] enabled
[    0.734091] printk: console [ttyS0] enabled
[    0.739533] printk: bootconsole [earlyser0] disabled
[    0.739533] printk: bootconsole [earlyser0] disabled
[    0.745476] mempolicy: Enabling automatic NUMA balancing. Configure with numa_balancing= or the kernel.numa_balancing sysctl
[    0.751715] ACPI: Core revision 20210105
[    0.754641] APIC: Switch to symmetric I/O mode setup
[    0.759067] Switched APIC routing to physical flat.
[    0.763067] Hyper-V: Using IPI hypercalls
[    0.766140] Hyper-V: Using enlightened APIC (xapic mode)
[    0.781704] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.789004] Calibrating delay loop (skipped), value calculated using timer frequency.. 4691.20 BogoMIPS (lpj=2345604)
[    0.790003] pid_max: default: 32768 minimum: 301
[    0.791037] LSM: Security Framework initializing
[    0.792011] Yama: becoming mindful.
[    0.793013] SELinux:  Initializing.
[    0.818983] Dentry cache hash table entries: 8388608 (order: 14, 67108864 bytes, vmalloc)
[    0.831002] Inode-cache hash table entries: 4194304 (order: 13, 33554432 bytes, vmalloc)
[    0.831238] Mount-cache hash table entries: 131072 (order: 8, 1048576 bytes, vmalloc)
[    0.832179] Mountpoint-cache hash table entries: 131072 (order: 8, 1048576 bytes, vmalloc)
Poking KASLR using RDRAND RDTSC...
[    0.836002] x86/cpu: User Mode Instruction Prevention (UMIP) activated
[    0.836081] Last level iTLB entries: 4KB 1024, 2MB 1024, 4MB 512
[    0.837003] Last level dTLB entries: 4KB 2048, 2MB 2048, 4MB 1024, 1GB 0
[    0.838006] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.839004] Spectre V2 : Mitigation: Full AMD retpoline
[    0.840003] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.841004] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
[    0.842220] Freeing SMP alternatives memory: 36K
[    0.843973] smpboot: CPU0: AMD EPYC 7452 32-Core Processor (family: 0x17, model: 0x31, stepping: 0x0)
[    0.844419] Performance Events: PMU not available due to virtualization, using software events only.
[    0.845029] rcu: Hierarchical SRCU implementation.
[    0.846330] NMI watchdog: Perf NMI watchdog permanently disabled
[    0.847295] smp: Bringing up secondary CPUs ...
[    0.848081] x86: Booting SMP configuration:
[    0.849006] .... node  #0, CPUs:        #1  #2  #3  #4  #5  #6  #7
[    1.270005] .... node  #1, CPUs:    #8
[    0.214304] ------------[ cut here ]------------
[    0.214304] sched: CPU #8's llc-sibling CPU #0 is not on the same node! [node: 1 != 0]. Ignoring dependency.
[    0.214304] WARNING: CPU: 8 PID: 0 at arch/x86/kernel/smpboot.c:426 topology_sane.isra.11+0x62/0x70
[    0.214304] Modules linked in:
[    0.214304] CPU: 8 PID: 0 Comm: swapper/8 Not tainted 5.12.0-rc5+ #3
[    0.214304] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090008  12/07/2018
[    0.214304] RIP: 0010:topology_sane.isra.11+0x62/0x70
[    0.214304] Code: 0f 94 c0 c3 80 3d 00 cb b1 01 00 75 ef 89 f1 41 89 d9 89 fe 41 89 e8 48 c7 c7 d8 36 90 92 c6 05 e6 ca b1 01 01 e8 1d 13 94 00 <0f> 0b eb ce 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 b9 e8
[    0.214304] RSP: 0000:ffffbc18062ffed0 EFLAGS: 00010086
[    0.214304] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[    0.214304] RDX: ffffbc18062ffce0 RSI: 00000000ffff7fff RDI: ffffffff93a6774c
[    0.214304] RBP: 0000000000000001 R08: 0000000000000000 R09: c0000000ffff7fff
[    0.214304] R10: 0000000000000001 R11: ffffbc18062ffcd8 R12: 0000000000000000
[    0.214304] R13: 0000000000011460 R14: 0000000000000008 R15: 0000000000000008
[    0.214304] FS:  0000000000000000(0000) GS:ffff99baffc00000(0000) knlGS:0000000000000000
[    0.214304] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.214304] CR2: 0000000000000000 CR3: 0000000460610000 CR4: 0000000000350ee0
[    0.214304] Call Trace:
[    0.214304]  set_cpu_sibling_map+0x149/0x5b0
[    0.214304]  start_secondary+0x60/0x160
[    0.214304]  secondary_startup_64_no_verify+0xc2/0xcb
[    0.214304] ---[ end trace 4dd5db0edd394989 ]---
[    1.457127]   #9 #10 #11 #12 #13 #14 #15
[    1.878006] .... node  #2, CPUs:   #16 #17 #18 #19 #20 #21 #22 #23
[    2.359006] .... node  #3, CPUs:   #24 #25 #26 #27 #28 #29 #30 #31
[    2.840200] smp: Brought up 4 nodes, 32 CPUs
[    2.842005] smpboot: Max logical packages: 1
[    2.843006] smpboot: Total of 32 processors activated (150638.03 BogoMIPS)
[    2.882496] node 0 deferred pages initialised in 37ms
[    2.885732] node 3 deferred pages initialised in 40ms
[    2.917363] node 2 deferred pages initialised in 73ms
[    2.919172] node 1 deferred pages initialised in 74ms
[    2.939091] devtmpfs: initialized
[    2.942081] x86/mm: Memory block size: 512MB
[    2.948046] PM: Registering ACPI NVS region [mem 0x3ffff000-0x3fffffff] (4096 bytes)
[    2.953052] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    2.960042] futex hash table entries: 8192 (order: 7, 524288 bytes, vmalloc)
[    2.964159] pinctrl core: initialized pinctrl subsystem
[    2.968481] NET: Registered protocol family 16
[    2.972110] DMA: preallocated 4096 KiB GFP_KERNEL pool for atomic allocations
[    2.977013] DMA: preallocated 4096 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    2.981013] DMA: preallocated 4096 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    2.987014] audit: initializing netlink subsys (disabled)
[    2.991031] audit: type=2000 audit(1617053818.205:1): state=initialized audit_enabled=0 res=1
[    2.991130] thermal_sys: Registered thermal governor 'fair_share'
[    2.998008] thermal_sys: Registered thermal governor 'bang_bang'
[    3.003004] thermal_sys: Registered thermal governor 'step_wise'
[    3.007005] thermal_sys: Registered thermal governor 'user_space'
[    3.012059] cpuidle: using governor menu
[    3.025103] ACPI: bus type PCI registered
[    3.028007] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    3.033435] PCI: Using configuration type 1 for base access
[    3.039005] PCI: Using configuration type 1 for extended access
[    3.045677] Kprobes globally optimized
[    3.049059] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    3.054008] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    3.080601] alg: self-tests for rsa-generic (rsa) passed
[    3.087022] alg: self-tests for cipher_null-generic (cipher_null) passed
[    3.094021] alg: self-tests for ecb-cipher_null (ecb(cipher_null)) passed
[    3.101106] alg: self-tests for sha1-generic (sha1) passed
[    3.108149] alg: self-tests for sha256-generic (sha256) passed
[    3.114152] alg: self-tests for sha224-generic (sha224) passed
[    3.120021] cryptd: max_cpu_qlen set to 1000
[    3.124043] alg: self-tests for aes-generic (aes) passed
[    3.131098] alg: self-tests for deflate-generic (deflate) passed
[    3.138109] alg: self-tests for deflate-scomp (deflate) passed
[    3.144346] alg: self-tests for zlib-deflate-scomp (zlib-deflate) passed
[    3.151133] alg: self-tests for crc32c-generic (crc32c) passed
[    3.157147] alg: self-tests for crct10dif-generic (crct10dif) passed
[    3.164016] alg: self-tests for lzo-generic (lzo) passed
[    3.169349] alg: self-tests for lzo-scomp (lzo) passed
[    3.174021] alg: self-tests for lzo-rle-generic (lzo-rle) passed
[    3.180241] alg: self-tests for lzo-rle-scomp (lzo-rle) passed
[    3.185169] alg: self-tests for ctr(aes-generic) (ctr(aes)) passed
[    3.191046] alg: self-tests for drbg_pr_ctr_aes128 (stdrng) passed
[    3.196023] alg: self-tests for drbg_pr_ctr_aes192 (stdrng) passed
[    3.201016] alg: self-tests for drbg_pr_ctr_aes256 (stdrng) passed
[    3.206019] alg: self-tests for drbg_pr_sha1 (stdrng) passed
[    3.212016] alg: self-tests for drbg_pr_sha384 (stdrng) passed
[    3.217025] alg: self-tests for drbg_pr_sha512 (stdrng) passed
[    3.223077] alg: self-tests for drbg_pr_sha256 (stdrng) passed
[    3.228022] alg: self-tests for drbg_pr_hmac_sha1 (stdrng) passed
[    3.234024] alg: self-tests for drbg_pr_hmac_sha384 (stdrng) passed
[    3.239026] alg: self-tests for drbg_pr_hmac_sha512 (stdrng) passed
[    3.245339] alg: self-tests for hmac(sha256-generic) (hmac(sha256)) passed
[    3.251134] alg: self-tests for drbg_pr_hmac_sha256 (stdrng) passed
[    3.256048] alg: self-tests for drbg_nopr_ctr_aes128 (stdrng) passed
[    3.263023] alg: self-tests for drbg_nopr_ctr_aes192 (stdrng) passed
[    3.269026] alg: self-tests for drbg_nopr_ctr_aes256 (stdrng) passed
[    3.275022] alg: self-tests for drbg_nopr_sha1 (stdrng) passed
[    3.281024] alg: self-tests for drbg_nopr_sha384 (stdrng) passed
[    3.287025] alg: self-tests for drbg_nopr_sha512 (stdrng) passed
[    3.293058] alg: self-tests for drbg_nopr_sha256 (stdrng) passed
[    3.299023] alg: self-tests for drbg_nopr_hmac_sha1 (stdrng) passed
[    3.304028] alg: self-tests for drbg_nopr_hmac_sha384 (stdrng) passed
[    3.312026] alg: self-tests for drbg_nopr_hmac_sha512 (stdrng) passed
[    3.317129] alg: self-tests for drbg_nopr_hmac_sha256 (stdrng) passed
[    3.323134] alg: self-tests for ghash-generic (ghash) passed
[    3.329073] ACPI: Added _OSI(Module Device)
[    3.333007] ACPI: Added _OSI(Processor Device)
[    3.338005] ACPI: Added _OSI(3.0 _SCP Extensions)
[    3.342005] ACPI: Added _OSI(Processor Aggregator Device)
[    3.346006] ACPI: Added _OSI(Linux-Dell-Video)
[    3.350006] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    3.353005] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    3.359123] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    3.364826] ACPI: Interpreter enabled
[    3.368014] ACPI: (supports S0 S5)
[    3.371005] ACPI: Using IOAPIC for interrupt routing
[    3.375025] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    3.382179] ACPI: Enabled 1 GPEs in block 00 to 0F
[    3.403039] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    3.408008] acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI EDR HPX-Type3]
[    3.414167] PCI host bridge to bus 0000:00
[    3.418005] pci_bus 0000:00: Unknown NUMA node; performance will be reduced
[    3.422005] pci_bus 0000:00: root bus resource [mem 0xfe0000000-0xfffffffff window]
[    3.427005] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[    3.433005] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff window]
[    3.437006] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[    3.443013] pci_bus 0000:00: root bus resource [mem 0x40000000-0xfffbffff window]
[    3.448006] pci_bus 0000:00: root bus resource [bus 00-ff]
[    3.453006] pci 0000:00:00.0: [8086:7192] type 00 class 0x060000
[    3.460413] pci 0000:00:07.0: [8086:7110] type 00 class 0x060100
[    3.468432] pci 0000:00:07.1: [8086:7111] type 00 class 0x010180
[    3.474506] pci 0000:00:07.1: reg 0x20: [io  0xffa0-0xffaf]
[    3.480004] pci 0000:00:07.1: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[    3.485005] pci 0000:00:07.1: legacy IDE quirk: reg 0x14: [io  0x03f6]
[    3.491005] pci 0000:00:07.1: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[    3.497005] pci 0000:00:07.1: legacy IDE quirk: reg 0x1c: [io  0x0376]
[    3.502735] * Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
[    3.502735] * this clock source is slow. Consider trying other clock sources
[    3.513009] pci 0000:00:07.3: [8086:7113] type 00 class 0x068000
[    3.520531] pci 0000:00:07.3: quirk: [io  0x0400-0x043f] claimed by PIIX4 ACPI
[    3.526053] pci 0000:00:08.0: [1414:5353] type 00 class 0x030000
[    3.530597] pci 0000:00:08.0: reg 0x10: [mem 0xf8000000-0xfbffffff]
[    3.553072] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 7 9 10 *11 12 14 15)
[    3.557247] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 9 10 11 12 14 15) *0, disabled.
[    3.563230] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 7 9 10 11 12 14 15) *0, disabled.
[    3.568230] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 7 9 10 11 12 14 15) *0, disabled.
[    3.574199] iommu: Default domain type: Passthrough 
[    3.578058] pci 0000:00:08.0: vgaarb: setting as boot VGA device
[    3.579002] pci 0000:00:08.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[    3.587013] pci 0000:00:08.0: vgaarb: bridge control possible
[    3.590006] vgaarb: loaded
[    3.592114] SCSI subsystem initialized
[    3.596023] ACPI: bus type USB registered
[    3.599018] usbcore: registered new interface driver usbfs
[    3.602010] usbcore: registered new interface driver hub
[    3.606015] usbcore: registered new device driver usb
[    3.609026] pps_core: LinuxPPS API ver. 1 registered
[    3.613004] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    3.619008] PTP clock support registered
[    3.621026] EDAC MC: Ver: 3.0.0
[    3.624556] NetLabel: Initializing
[    3.628006] NetLabel:  domain hash size = 128
[    3.631004] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    3.635017] NetLabel:  unlabeled traffic allowed by default
[    3.639005] PCI: Using ACPI for IRQ routing
[    3.643259] clocksource: Switched to clocksource hyperv_clocksource_tsc_page
[    3.658000] VFS: Disk quotas dquot_6.6.0
[    3.661017] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    3.665155] pnp: PnP ACPI init
[    3.669749] system 00:06: [io  0x01e0-0x01ef] has been reserved
[    3.673497] system 00:06: [io  0x0160-0x016f] has been reserved
[    3.677346] system 00:06: [io  0x0278-0x027f] has been reserved
[    3.681668] system 00:06: [io  0x0378-0x037f] has been reserved
[    3.685387] system 00:06: [io  0x0678-0x067f] has been reserved
[    3.688919] system 00:06: [io  0x0778-0x077f] has been reserved
[    3.692580] system 00:06: [io  0x04d0-0x04d1] has been reserved
[    3.696258] system 00:07: [io  0x0400-0x043f] has been reserved
[    3.701665] system 00:07: [io  0x0370-0x0371] has been reserved
[    3.706006] system 00:07: [io  0x0440-0x044f] has been reserved
[    3.710257] system 00:07: [mem 0xfec00000-0xfec00fff] could not be reserved
[    3.715348] system 00:07: [mem 0xfee00000-0xfee00fff] has been reserved
[    3.719540] system 00:08: [mem 0x00000000-0x0009ffff] could not be reserved
[    3.724974] system 00:08: [mem 0x000c0000-0x000dffff] could not be reserved
[    3.729415] system 00:08: [mem 0x000e0000-0x000fffff] could not be reserved
[    3.733643] system 00:08: [mem 0x00100000-0x3fffffff] could not be reserved
[    3.738372] system 00:08: [mem 0xfffc0000-0xffffffff] has been reserved
[    3.742412] pnp: PnP ACPI: found 9 devices
[    3.753302] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    3.758480] NET: Registered protocol family 2
[    3.761481] tcp_listen_portaddr_hash hash table entries: 65536 (order: 8, 1048576 bytes, vmalloc)
[    3.766913] TCP established hash table entries: 524288 (order: 10, 4194304 bytes, vmalloc)
[    3.772608] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, vmalloc)
[    3.778222] TCP: Hash tables configured (established 524288 bind 65536)
[    3.783573] MPTCP token hash table entries: 65536 (order: 8, 1572864 bytes, vmalloc)
[    3.789646] UDP hash table entries: 65536 (order: 9, 2097152 bytes, vmalloc)
[    3.794928] UDP-Lite hash table entries: 65536 (order: 9, 2097152 bytes, vmalloc)
[    3.801566] NET: Registered protocol family 1
[    3.805279] NET: Registered protocol family 44
[    3.808455] pci_bus 0000:00: resource 4 [mem 0xfe0000000-0xfffffffff window]
[    3.812891] pci_bus 0000:00: resource 5 [io  0x0000-0x0cf7 window]
[    3.818597] pci_bus 0000:00: resource 6 [io  0x0d00-0xffff window]
[    3.823047] pci_bus 0000:00: resource 7 [mem 0x000a0000-0x000bffff window]
[    3.827604] pci_bus 0000:00: resource 8 [mem 0x40000000-0xfffbffff window]
[    3.832950] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    3.837563] pci 0000:00:08.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[    3.843886] PCI: CLS 0 bytes, default 64
[    3.846964] Trying to unpack rootfs image as initramfs...
[    4.896972] Freeing initrd memory: 77512K
[    4.901297] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    4.906358] software IO TLB: mapped [mem 0x000000003bff0000-0x000000003fff0000] (64MB)
[    4.921455] alg: self-tests for sha1-ssse3 (sha1) passed
[    4.925965] alg: self-tests for sha1-avx (sha1) passed
[    4.929731] alg: self-tests for sha1-avx2 (sha1) passed
[    4.934306] alg: self-tests for sha1-ni (sha1) passed
[    4.939425] alg: self-tests for sha256-ssse3 (sha256) passed
[    4.945090] alg: self-tests for sha224-ssse3 (sha224) passed
[    4.950991] alg: self-tests for sha256-avx (sha256) passed
[    4.955035] alg: self-tests for sha224-avx (sha224) passed
[    4.960121] alg: self-tests for sha256-avx2 (sha256) passed
[    4.965528] alg: self-tests for sha224-avx2 (sha224) passed
[    4.970978] alg: self-tests for sha256-ni (sha256) passed
[    4.975698] alg: self-tests for sha224-ni (sha224) passed
[    4.990343] Initialise system trusted keyrings
[    4.994400] Key type blacklist registered
[    4.997600] workingset: timestamp_bits=36 max_order=25 bucket_order=0
[    5.003427] zbud: loaded
[    5.007505] integrity: Platform Keyring initialized
[    5.015201] alg: self-tests for jitterentropy_rng (jitterentropy_rng) passed
[    5.021375] NET: Registered protocol family 38
[    5.024901] Key type asymmetric registered
[    5.027688] Asymmetric key parser 'x509' registered
[    5.030951] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    5.035762] io scheduler mq-deadline registered
[    5.039290] io scheduler kyber registered
[    5.042571] io scheduler bfq registered
[    5.046713] atomic64_test: passed for x86-64 platform with CX8 and with SSE
[    5.051417] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    5.056325] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[    5.061014] ACPI: button: Power Button [PWRF]
[    5.065343] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    5.070442] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    5.077249] 00:04: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    5.083556] Non-volatile memory driver v1.3
[    5.089563] rdac: device handler registered
[    5.092586] hp_sw: device handler registered
[    5.095871] emc: device handler registered
[    5.098958] alua: device handler registered
[    5.101898] libphy: Fixed MDIO Bus: probed
[    5.105891] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.110059] ehci-pci: EHCI PCI platform driver
[    5.112951] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.116591] ohci-pci: OHCI PCI platform driver
[    5.119801] uhci_hcd: USB Universal Host Controller Interface driver
[    5.123425] usbcore: registered new interface driver usbserial_generic
[    5.129139] usbserial: USB Serial support registered for generic
[    5.133109] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
[    5.142829] serio: i8042 KBD port at 0x60,0x64 irq 1
[    5.146694] serio: i8042 AUX port at 0x60,0x64 irq 12
[    5.150468] mousedev: PS/2 mouse device common for all mice
[    5.155544] rtc_cmos 00:00: RTC can wake from S4
[    5.163041] rtc_cmos 00:00: registered as rtc0
[    5.168306] rtc_cmos 00:00: setting system clock to 2021-03-29T21:37:01 UTC (1617053821)
[    5.174752] rtc_cmos 00:00: alarms up to one month, 114 bytes nvram
[    5.180268] hid: raw HID events driver (C) Jiri Kosina
[    5.184041] usbcore: registered new interface driver usbhid
[    5.187917] usbhid: USB HID core driver
[    5.190829] drop_monitor: Initializing network drop monitor service
[    5.195556] Initializing XFRM netlink socket
[    5.196419] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
[    5.199873] NET: Registered protocol family 10
[    5.211777] Segment Routing with IPv6
[    5.214734] NET: Registered protocol family 17
[    5.218190] mpls_gso: MPLS GSO support
[    5.222673] IPI shorthand broadcast: enabled
[    5.225951] AVX2 version of gcm_enc/dec engaged.
[    5.230052] AES CTR mode by8 optimization enabled
[    5.233814] alg: self-tests for aes-aesni (aes) passed
[    5.256043] alg: self-tests for ecb-aes-aesni (ecb(aes)) passed
[    5.277446] alg: self-tests for cbc-aes-aesni (cbc(aes)) passed
[    5.298803] alg: self-tests for cts-cbc-aes-aesni (cts(cbc(aes))) passed
[    5.330251] alg: self-tests for ctr-aes-aesni (ctr(aes)) passed
[    5.350385] alg: self-tests for xts-aes-aesni (xts(aes)) passed
[    5.371798] alg: self-tests for rfc4106-gcm-aesni (rfc4106(gcm(aes))) passed
[    5.394559] alg: self-tests for generic-gcm-aesni (gcm(aes)) passed
[    5.400712] registered taskstats version 1
[    5.404442] Loading compiled-in X.509 certificates
[    5.429829] alg: self-tests for pkcs1pad(rsa-generic,sha256) (pkcs1pad(rsa,sha256)) passed
[    5.437726] Loaded X.509 cert 'Build time autogenerated kernel key: 2184737d56bc9db7bc46902c15c7164cdf36361e'
[    5.445156] zswap: loaded using pool lzo/zbud
[    5.448864] page_owner is disabled
[    5.469673] alg: self-tests for cbc(aes-aesni) (cbc(aes)) passed
[    5.475201] Key type encrypted registered
[    5.478958] ima: No TPM chip found, activating TPM-bypass!
[    5.483163] ima: Allocated hash algorithm: sha1
[    5.486276] ima: No architecture policies found
[    5.489880] evm: Initialising EVM extended attributes:
[    5.494337] evm: security.selinux
[    5.498126] evm: security.ima
[    5.501463] evm: security.capability
[    5.504841] evm: HMAC attrs: 0x1
[    5.509464] Unstable clock detected, switching default tracing clock to "global"
[    5.509464] If you want to keep using the local clock, then add:
[    5.509464]   "trace_clock=local"
[    5.509464] on the kernel command line
[    5.526617] Freeing unused decrypted memory: 2036K
[    5.530493] Freeing unused kernel image (initmem) memory: 2384K
[    5.537013] Write protecting the kernel read-only data: 22528k
[    5.542596] Freeing unused kernel image (text/rodata gap) memory: 2036K
[    5.547702] Freeing unused kernel image (rodata/data gap) memory: 528K
[    5.552602] Run /init as init process
[    5.608715] systemd[1]: systemd 239 (239-41.el8_3.1) running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=legacy)
[    5.624155] systemd[1]: Detected virtualization microsoft.
[    5.627508] systemd[1]: Detected architecture x86-64.
[    5.630708] systemd[1]: Running in initial RAM disk.
[    5.633019] psmouse serio1: trackpoint: failed to get extended button data, assuming 3 buttons

Welcome to ^[[0;34mCentOS Linux 8 dracut-049-95.git20200804.el8 (Initramfs)^[[0m!

[    5.652492] systemd[1]: Set hostname to <decui-co83-fips>.
[    5.761976] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[^[[0;32m  OK  ^[[0m] Started Dispatch Password Requests to Console Directory Watch.
[    5.770375] systemd[1]: Reached target Paths.
[^[[0;32m  OK  ^[[0m] Reached target Paths.
[    5.775137] systemd[1]: Reached target Slices.
[^[[0;32m  OK  ^[[0m] Reached target Slices.
[    5.779897] systemd[1]: Listening on udev Kernel Socket.
[^[[0;32m  OK  ^[[0m] Listening on udev Kernel Socket.
[    5.785936] systemd[1]: Listening on udev Control Socket.
[^[[0;32m  OK  ^[[0m] Listening on udev Control Socket.
[^[[0;32m  OK  ^[[0m] Listening on Journal Socket (/dev/log).
[^[[0;32m  OK  ^[[0m] Reached target Timers.
[^[[0;32m  OK  ^[[0m] Listening on Journal Socket.
         Starting Setup Virtual Console...
         Starting Apply Kernel Variables...
[^[[0;32m  OK  ^[[0m] Reached target Sockets.
         Starting Create list of required st…ce nodes for the current kernel...
[^[[0;32m  OK  ^[[0m] Reached target Swap.
         Starting Journal Service...
[^[[0;32m  OK  ^[[0m] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
[^[[0;32m  OK  ^[[0m] Started Hardware RNG Entropy Gatherer Daemon.
[^[[0;32m  OK  ^[[0m] Started Create list of required sta…vice nodes for the current kernel.
         Starting Create Static Device Nodes in /dev...
[^[[0;32m  OK  ^[[0m] Started Apply Kernel Variables.
[^[[0;32m  OK  ^[[0m] Started Create Volatile Files and Directories.
[^[[0;32m  OK  ^[[0m] Started Create Static Device Nodes in /dev.
[^[[0;32m  OK  ^[[0m] Started Journal Service.
[^[[0;32m  OK  ^[[0m] Started Setup Virtual Console.
         Starting dracut cmdline hook...
[^[[0;32m  OK  ^[[0m] Started dracut cmdline hook.
         Starting dracut pre-udev hook...
[    7.260424] alg: self-tests for sha512-generic (sha512) passed
[    7.265917] alg: self-tests for sha384-generic (sha384) passed
[    7.272426] alg: self-tests for sha512-ssse3 (sha512) passed
[    7.276500] alg: self-tests for sha384-ssse3 (sha384) passed
[    7.281722] alg: self-tests for sha512-avx (sha512) passed
[    7.286579] alg: self-tests for sha384-avx (sha384) passed
[    7.291631] alg: self-tests for sha512-avx2 (sha512) passed
[    7.296950] alg: self-tests for sha384-avx2 (sha384) passed
[    7.321040] alg: self-tests for sha3-224-generic (sha3-224) passed
[    7.330291] alg: self-tests for sha3-256-generic (sha3-256) passed
[    7.335918] alg: self-tests for sha3-384-generic (sha3-384) passed
[    7.341508] alg: self-tests for sha3-512-generic (sha3-512) passed
[    7.381918] alg: self-tests for crc32c-intel (crc32c) passed
[    7.396694] alg: self-tests for crct10dif-pclmul (crct10dif) passed
[    7.453515] alg: self-tests for ghash-clmulni (ghash) passed
[    7.469558] alg: self-tests for des3_ede-asm (des3_ede) passed
[    7.475355] alg: self-tests for ecb-des3_ede-asm (ecb(des3_ede)) passed
[    7.481361] alg: self-tests for cbc-des3_ede-asm (cbc(des3_ede)) passed
[    7.488656] alg: self-tests for des3_ede-generic (des3_ede) passed
[    7.304930] dracut-pre-udev[502]: modprobe: ERROR: could not insert 'padlock_aes': No such device
[    7.579580] alg: No test for fips(ansi_cprng) (fips_ansi_cprng)
[    7.606547] alg: self-tests for sha1 (sha1) passed
[    7.610624] alg: self-tests for ecb(des3_ede) (ecb(des3_ede)) passed
[    7.615746] alg: self-tests for cbc(des3_ede) (cbc(des3_ede)) passed
[    7.638067] alg: self-tests for ctr(des3_ede-asm) (ctr(des3_ede)) passed
[    7.644781] alg: self-tests for ctr(des3_ede) (ctr(des3_ede)) passed
[    7.653810] alg: self-tests for sha256 (sha256) passed
[    7.658945] alg: self-tests for ecb(aes) (ecb(aes)) passed
[    7.663493] alg: self-tests for cbc(aes) (cbc(aes)) passed
[    7.668421] alg: self-tests for xts(aes) (xts(aes)) passed
[    7.672389] alg: self-tests for ctr(aes) (ctr(aes)) passed
[    7.692973] alg: self-tests for rfc3686(ctr-aes-aesni) (rfc3686(ctr(aes))) passed
[    7.699446] alg: self-tests for rfc3686(ctr(aes)) (rfc3686(ctr(aes))) passed
[    7.730149] alg: skcipher: failed to allocate transform for ofb(aes): -2
[    7.735959] Kernel panic - not syncing: alg: self-tests for ofb(aes) (ofb(aes)) failed in fips mode!
[    7.736952] CPU: 13 PID: 560 Comm: modprobe Tainted: G        W         5.12.0-rc5+ #3
[    7.736952] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090008  12/07/2018
[    7.736952] Call Trace:
[    7.736952]  dump_stack+0x64/0x7c
[    7.736952]  panic+0xfb/0x2d7
[    7.736952]  alg_test+0x42d/0x460
[    7.736952]  ? __kernfs_new_node+0x175/0x1d0
[    7.736952]  do_test+0x3248/0x57ea [tcrypt]
[    7.736952]  do_test+0x1f2c/0x57ea [tcrypt]
[    7.736952]  ? 0xffffffffc031d000
[    7.736952]  tcrypt_mod_init+0x55/0x1000 [tcrypt]
[    7.736952]  ? 0xffffffffc031d000
[    7.736952]  do_one_initcall+0x44/0x1d0
[    7.736952]  ? __cond_resched+0x15/0x30
[    7.736952]  ? kmem_cache_alloc_trace+0x3d/0x410
[    7.736952]  do_init_module+0x5a/0x230
[    7.736952]  load_module+0x1a5b/0x1bc0
[    7.736952]  ? __do_sys_finit_module+0xad/0x110
[    7.736952]  __do_sys_finit_module+0xad/0x110
[    7.736952]  do_syscall_64+0x33/0x40
[    7.736952]  entry_SYSCALL_64_after_hwframe+0x44/0xae
[    7.736952] RIP: 0033:0x7ff2e760978d
[    7.736952] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 56 2c 00 f7 d8 64 89 01 48
[    7.736952] RSP: 002b:00007ffd80204308 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    7.736952] RAX: ffffffffffffffda RBX: 0000563dcfe8f030 RCX: 00007ff2e760978d
[    7.736952] RDX: 0000000000000000 RSI: 0000563dcf41d7b6 RDI: 0000000000000003
[    7.736952] RBP: 0000563dcf41d7b6 R08: 0000000000000000 R09: 0000000000000000
[    7.736952] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
[    7.736952] R13: 0000563dcfe934c0 R14: 0000000000040000 R15: 0000000000000000
[    7.736952] Kernel Offset: 0x10800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    7.736952] ---[ end Kernel panic - not syncing: alg: self-tests for ofb(aes) (ofb(aes)) failed in fips mode! ]---

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: v5.12.0-rc5: the kernel panics if FIPS mode is on
  2021-03-29 21:56 v5.12.0-rc5: the kernel panics if FIPS mode is on Dexuan Cui
@ 2021-03-30  1:25 ` Eric Biggers
  2021-03-30  6:56   ` Dexuan Cui
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Biggers @ 2021-03-30  1:25 UTC (permalink / raw)
  To: Dexuan Cui; +Cc: linux-crypto, linux-kernel

On Mon, Mar 29, 2021 at 09:56:18PM +0000, Dexuan Cui wrote:
> Hi all,
> The v5.12.0-rc5 kernel (1e43c377a79f) panics with fips=1.
> 
> Please refer to the below panic call-trace. The kernel config file and
> the full kernel messages are also attached.
> 
> Is this a known issue?
> 
> Thanks,
> -- Dexuan
> 
>          Starting dracut pre-udev hook...
> [    7.260424] alg: self-tests for sha512-generic (sha512) passed
> [    7.265917] alg: self-tests for sha384-generic (sha384) passed
> [    7.272426] alg: self-tests for sha512-ssse3 (sha512) passed
> [    7.276500] alg: self-tests for sha384-ssse3 (sha384) passed
> [    7.281722] alg: self-tests for sha512-avx (sha512) passed
> [    7.286579] alg: self-tests for sha384-avx (sha384) passed
> [    7.291631] alg: self-tests for sha512-avx2 (sha512) passed
> [    7.296950] alg: self-tests for sha384-avx2 (sha384) passed
> [    7.321040] alg: self-tests for sha3-224-generic (sha3-224) passed
> [    7.330291] alg: self-tests for sha3-256-generic (sha3-256) passed
> [    7.335918] alg: self-tests for sha3-384-generic (sha3-384) passed
> [    7.341508] alg: self-tests for sha3-512-generic (sha3-512) passed
> [    7.381918] alg: self-tests for crc32c-intel (crc32c) passed
> [    7.396694] alg: self-tests for crct10dif-pclmul (crct10dif) passed
> [    7.453515] alg: self-tests for ghash-clmulni (ghash) passed
> [    7.469558] alg: self-tests for des3_ede-asm (des3_ede) passed
> [    7.475355] alg: self-tests for ecb-des3_ede-asm (ecb(des3_ede)) passed
> [    7.481361] alg: self-tests for cbc-des3_ede-asm (cbc(des3_ede)) passed
> [    7.488656] alg: self-tests for des3_ede-generic (des3_ede) passed
> [    7.304930] dracut-pre-udev[502]: modprobe: ERROR: could not insert 'padlock_aes': No such device
> [    7.579580] alg: No test for fips(ansi_cprng) (fips_ansi_cprng)
> [    7.606547] alg: self-tests for sha1 (sha1) passed
> [    7.610624] alg: self-tests for ecb(des3_ede) (ecb(des3_ede)) passed
> [    7.615746] alg: self-tests for cbc(des3_ede) (cbc(des3_ede)) passed
> [    7.638067] alg: self-tests for ctr(des3_ede-asm) (ctr(des3_ede)) passed
> [    7.644781] alg: self-tests for ctr(des3_ede) (ctr(des3_ede)) passed
> [    7.653810] alg: self-tests for sha256 (sha256) passed
> [    7.658945] alg: self-tests for ecb(aes) (ecb(aes)) passed
> [    7.663493] alg: self-tests for cbc(aes) (cbc(aes)) passed
> [    7.668421] alg: self-tests for xts(aes) (xts(aes)) passed
> [    7.672389] alg: self-tests for ctr(aes) (ctr(aes)) passed
> [    7.692973] alg: self-tests for rfc3686(ctr-aes-aesni) (rfc3686(ctr(aes))) passed
> [    7.699446] alg: self-tests for rfc3686(ctr(aes)) (rfc3686(ctr(aes))) passed
> [    7.730149] alg: skcipher: failed to allocate transform for ofb(aes): -2
> [    7.735959] Kernel panic - not syncing: alg: self-tests for ofb(aes) (ofb(aes)) failed in fips mode!
> [    7.736952] CPU: 13 PID: 560 Comm: modprobe Tainted: G        W         5.12.0-rc5+ #3
> [    7.736952] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090008  12/07/2018
> [    7.736952] Call Trace:
> [    7.736952]  dump_stack+0x64/0x7c
> [    7.736952]  panic+0xfb/0x2d7
> [    7.736952]  alg_test+0x42d/0x460
> [    7.736952]  ? __kernfs_new_node+0x175/0x1d0
> [    7.736952]  do_test+0x3248/0x57ea [tcrypt]
> [    7.736952]  do_test+0x1f2c/0x57ea [tcrypt]
> [    7.736952]  ? 0xffffffffc031d000
> [    7.736952]  tcrypt_mod_init+0x55/0x1000 [tcrypt]

It looks like your userspace is using tcrypt.ko to request that the kernel test
"ofb(aes)", but your kernel doesn't have CONFIG_CRYPTO_OFB enabled so the test
fails as expected.  Are you sure that anything changed on the kernel side
besides the kconfig you are using?  It looks like this was always the behavior
when tcrypt.ko is used to test a non-existing algorithm.

Is your userspace code intentionally trying to test "ofb(aes)", or is it
accidental?

- Eric

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: v5.12.0-rc5: the kernel panics if FIPS mode is on
  2021-03-30  1:25 ` Eric Biggers
@ 2021-03-30  6:56   ` Dexuan Cui
  0 siblings, 0 replies; 3+ messages in thread
From: Dexuan Cui @ 2021-03-30  6:56 UTC (permalink / raw)
  To: Eric Biggers; +Cc: linux-crypto, linux-kernel

> From: Eric Biggers <ebiggers@kernel.org>
> Sent: Monday, March 29, 2021 6:26 PM
> ...
> It looks like your userspace is using tcrypt.ko to request that the kernel test
> "ofb(aes)", but your kernel doesn't have CONFIG_CRYPTO_OFB enabled so the
> test fails as expected.  

Hi Eric,
Thanks for the explanation! Yes, that's it! 

Sorry for the false alarm! Actually the kernel is faultless here.

> Are you sure that anything changed on the kernel side
> besides the kconfig you are using? It looks like this was always the behavior
> when tcrypt.ko is used to test a non-existing algorithm.

After I rebuilt the kernel with the 3 options:
CONFIG_CRYPTO_OFB=y
CONFIG_CRYPTO_DEV_PADLOCK_AES=y
CONFIG_CRYPTO_ANSI_CPRNG=y

and generated the .hmac file:
sha512hmac /boot/vmlinuz-5.12.0-rc5+  > /boot/.vmlinuz-5.12.0-rc5+.hmac
 
now the kernel boots up successfully with fips=1. :-)

> Is your userspace code intentionally trying to test "ofb(aes)", or is it
> accidental?
> 
> - Eric

I'm not sure. This is a CentOS 8.3 VM, and I use the default configuration.
I have been trying to build & run a v5.12.0-rc5+ kernel with fips=1, and
now this is working for me, thanks to your explanation. Thanks again!

Thanks,
-- Dexuan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-30  6:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29 21:56 v5.12.0-rc5: the kernel panics if FIPS mode is on Dexuan Cui
2021-03-30  1:25 ` Eric Biggers
2021-03-30  6:56   ` Dexuan Cui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).