Description of problem: 打开crypto-ycc编译配置后,在倚天机器上启动崩溃。下面是崩溃日志: [Bds]Booting Anolis OS Loading driver at 0x000F8A2D000 EntryPoint=0x000F8A2E000 error: ../../grub-core/fs/fshelp.c:258:file `/EFI/uos/fonts/unicode.pf2' not found. EFI stub: ERROR: FIRMWARE BUG: kernel image not aligned on 64k boundary EFI stub: ERROR: FIRMWARE BUG: Image BSS overlaps adjacent EFI memory region Set POST END boot stage Success. -- BIOS boot done -- Enable secure watchdog die:0 core[1] INFO: mpam_enable set cpu_ect_lr2_el1 0x18d4 Enable secure watchdog die:1 core[64] Enable die(1) secure watchdog intr INFO: Init core[64] ras, erxfr_el1=10a9a2 INFO: Enable 103 intr for NMI [ 2.797830] integrity: Unable to open file: /etc/keys/x509_ima.der (-2) [ 2.797832] integrity: Unable to open file: /etc/keys/x509_evm.der (-2) [ 2.858075] usb 1-2: device descriptor read/64, error -71 [ 3.114083] usb 1-2: device descriptor read/64, error -71 [ 3.506083] usb 1-2: device descriptor read/64, error -71 [ 3.758046] usb 1-2: device descriptor read/64, error -71 [ 4.829783] usb 1-2: device not accepting address 6, error -71 [ 5.393790] usb 1-2: device not accepting address 7, error -71 [ 5.400283] usb usb1-port2: unable to enumerate USB device [ 6.112990] SELinux: Runtime disable is deprecated, use selinux=0 on the kernel cmdline. [ 6.359824] Unable to find swap-space signature [ 10.286146] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000029 [ 10.294937] Mem abort info: [ 10.297718] ESR = 0x96000006 [ 10.300764] EC = 0x25: DABT (current EL), IL = 32 bits [ 10.306067] SET = 0, FnV = 0 [ 10.309108] EA = 0, S1PTW = 0 [ 10.312239] Data abort info: [ 10.315110] ISV = 0, ISS = 0x00000006 [ 10.318936] CM = 0, WnR = 0 [ 10.321895] user pgtable: 4k pages, 48-bit VAs, pgdp=0000040087b99000 [ 10.328326] [0000000000000029] pgd=00000400be412003, p4d=00000400be412003, pud=00000400be413003, pmd=0000000000000000 [ 10.338930] Internal error: Oops: 96000006 [#1] SMP [ 10.343796] Modules linked in: sha3_generic(E) sha512_generic(E) ccm(E) des_generic(E) xts(E) aes_neon_bs(E) nft_fib_inet(E) nft_fib_ipv4(E) nft_fib_ipv6(E) nft_fib(E) nft_reject_inet(E) nf_reject_ipv4(E) nf_reject_ipv6(E) nft_reject(E) nft_ct(E) ebtable_nat(E) ebtable_broute(E) nft_chain_nat(E) nf_nat(E) nf_conntrack(E) nf_defrag_ipv6(E) nf_defrag_ipv4(E) rfkill(E) sg(E) st(E) sr_mod(E) cdrom(E) ip_set(E) ebtable_filter(E) ebtables(E) nf_tables(E) nfnetlink(E) ipmi_ssif(E) crct10dif_ce(E) ghash_ce(E) sm4_ce(E) sha1_ce(E) sbsa_gwdt(E) arm_spe_pmu(E) acpi_ipmi(E) ycc(E+) uio(E) ipmi_si(E) m1_uncore_cmn_pmu(E) libdes(E) m1_uncore_ddrss_pmu(E) vfat(E) fat(E) binfmt_misc(E) xfs(E) libcrc32c(E) ast(E) i2c_algo_bit(E) drm_vram_helper(E) drm_kms_helper(E) syscopyarea(E) sysfillrect(E) sysimgblt(E) sha2_ce(E) sha256_arm64(E) fb_sys_fops(E) cec(E) ax88179_178a(E) drm_ttm_helper(E) mlx5_core(E) nvme(E) usbnet(E) ttm(E) mii(E) nvme_core(E) mlxfw(E) drm(E) i2c_designware_platform(E) [ 10.343837] i2c_designware_core(E) i2c_core(E) dm_mod(E) ipmi_devintf(E) ipmi_msghandler(E) [ 10.438201] CPU: 64 PID: 763 Comm: kworker/64:1 Tainted: G E 5.10.134-gh-anolis510-test_ycc+ #1 [ 10.448185] Hardware name: AlibabaCloud AliServer-Xuanwu2.0AM-02-1UC1P-5B/SA5180R7L, BIOS 1.2.M1.AL.E.133.00 09/09/2022 [ 10.458960] Workqueue: events work_for_cpu_fn [ 10.463303] pstate: 62c00009 (nZCv daif +PAN +UAO +TCO BTYPE=--) [ 10.469300] pc : ycc_rcec_bind+0x9c/0x598 [ycc] [ 10.473817] lr : ycc_rcec_bind+0x9c/0x598 [ycc] [ 10.478333] sp : ffff80002c2d3c70 [ 10.481633] x29: ffff80002c2d3c70 x28: ffff0400029b4900 [ 10.486931] x27: ffff00080e2f3d48 x26: ffff8000119a14c8 [ 10.492229] x25: ffff800009201d48 x24: ffff800009204018 [ 10.497526] x23: ffff800009201d38 x22: 0000000000000001 [ 10.502823] x21: ffff800009204000 x20: 0000000000000000 [ 10.508121] x19: ffff040006430400 x18: 0000000000000011 [ 10.513418] x17: 0000000000000000 x16: 0000000000000000 [ 10.518716] x15: ffffffffffffffff x14: ffff80001107d6b8 [ 10.524013] x13: ffff80002c2d3d37 x12: ffff80002c2d3d2e [ 10.529311] x11: 0000000000000003 x10: 000000000000002e [ 10.534607] x9 : ffff8000105a9544 x8 : 0101010101010101 [ 10.539904] x7 : 7f7f7f7f7f7f7f7f x6 : fefefefefefefeff [ 10.545202] x5 : ffff040001676d80 x4 : ffff040001676d80 [ 10.550499] x3 : ffff800011da3b10 x2 : 0000000000000000 [ 10.555795] x1 : ffff040001676d80 x0 : 00000000fffffffe [ 10.561093] Call trace: [ 10.563527] ycc_rcec_bind+0x9c/0x598 [ycc] [ 10.567698] ycc_drv_probe+0xbc/0x4a8 [ycc] [ 10.571871] local_pci_probe+0x44/0xa8 [ 10.575607] work_for_cpu_fn+0x20/0x30 [ 10.579343] process_one_work+0x1b8/0x420 [ 10.583338] worker_thread+0x208/0x528 [ 10.587073] kthread+0x114/0x118 [ 10.590289] Code: f9401660 aa1903e1 91032000 95ced67c (f94016c0) [ 10.596371] ---[ end trace 5687dd147950dbe0 ]--- [ 10.600977] Kernel panic - not syncing: Oops: Fatal exception [ 10.606711] SMP: stopping secondary CPUs INFO: mpidr:813f0000, stop s-wtd. [ 10.664247] Kernel Offset: 0x150000 from 0xffff800010000000 [ 10.669803] PHYS_OFFSET: 0x80000000 [ 10.673278] CPU features: 0x19810817,7a60aa38 [ 10.677620] Memory Limit: none [ 10.680746] Rebooting in 1 seconds.. [ 11.684353] SMP: stopping secondary CPUs [ 12.735382] SMP: failed to stop secondary CPUs 0-127 smc_fid: 84000009 INFO: mpidr:181000000, stop s-wtd. INFO: PSCI Power Domain Map:
Hi, Hao 可以提供一份config 及Anolis内核版本的详细信息吗 Thanks
Created attachment 436 [details] anolis-510-config
(In reply to Xuchun from comment #1) > Hi, Hao > > 可以提供一份config > 及Anolis内核版本的详细信息吗 > > Thanks 我用的代码是anolis-release-5.10, tag: 5.10.134-12。config我传到附件里了:anolis-510-config
(In reply to 苟浩 from comment #3) > (In reply to Xuchun from comment #1) > > Hi, Hao > > > > 可以提供一份config > > 及Anolis内核版本的详细信息吗 > > > > Thanks > > 我用的代码是anolis-release-5.10, tag: 5.10.134-12。config我传到附件里了:anolis-510-config Hi,Hao 可否执行以下命令看一下 gdb ycc.ko list *ycc_rcec_bind+0x9c
(In reply to Xuchun from comment #4) > (In reply to 苟浩 from comment #3) > > (In reply to Xuchun from comment #1) > > > Hi, Hao > > > > > > 可以提供一份config > > > 及Anolis内核版本的详细信息吗 > > > > > > Thanks > > > > 我用的代码是anolis-release-5.10, tag: 5.10.134-12。config我传到附件里了:anolis-510-config > > Hi,Hao > > 可否执行以下命令看一下 > gdb ycc.ko list *ycc_rcec_bind+0x9c (gdb) list *ycc_rcec_bind+0x9c 0xbc is in ycc_rcec_bind (drivers/crypto/ycc/ycc_drv.c:326). 321 } 322 323 remove_rcec_link: 324 sysfs_remove_link(&rciep->pdev->dev.kobj, "ycc_rcec"); 325 remove_rciep_link: 326 sysfs_remove_link(&rcec->pdev->dev.kobj, "ycc_rciep"); 327 out: 328 return ret; 329 } 330 (gdb)
这里已经有修复PR https://gitee.com/anolis/cloud-kernel/pulls/606 另外,如果以该tag做发行版的话建议编译时候关闭YCC 我们有OOT版本支持 若要编译进内核的话建议将这个PR合入你们的代码中。
(In reply to Xuchun from comment #6) > 这里已经有修复PR > https://gitee.com/anolis/cloud-kernel/pulls/606 > 打了这个pr的补丁后,系统可以正常启动。 > 另外,如果以该tag做发行版的话建议编译时候关闭YCC > 我们有OOT版本支持 > > 若要编译进内核的话建议将这个PR合入你们的代码中。 好的,非常感谢!