** Description changed: - Reproducible with TLS/HTTPS client initiates TLS handshake on BF3 with - Ubuntu 22.04, OpenSSL 3.0.2. + SRU Justification - wget https://google.com + [Impact] + Bluefield 3 on Ubuntu 22.04 and OpenSSL 3.0.2, encounters kernel crash/oops when HTTPS client uses OpenSSL with PKA engine during TLS handshake. The issue is with TRNG ioctl call. The kernel logs show the following errors. - kernel will crash with the following logs. + Unable to handle kernel access to user memory outside uaccess routines + at virtual address 0000ffffce65d328 - [ 1126.234077] Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000ffffce65d328 - [ 1126.255579] Mem abort info: - [ 1126.261186] ESR = 0x9600000f - [ 1126.267319] EC = 0x25: DABT (current EL), IL = 32 bits - [ 1126.277968] SET = 0, FnV = 0 - [ 1126.284081] EA = 0, S1PTW = 0 - [ 1126.290367] FSC = 0x0f: level 3 permission fault - [ 1126.299964] Data abort info: - [ 1126.305727] ISV = 0, ISS = 0x0000000f - [ 1126.313411] CM = 0, WnR = 0 - [ 1126.319349] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000154bf1000 - [ 1126.332259] [0000ffffce65d328] pgd=080000011927a003, p4d=080000011927a003, pud=0800000103a97003, pmd=0800000156cba003, pte=00e8000115a3ff43 - [ 1126.357360] Internal error: Oops: 9600000f [#1] PREEMPT SMP + BF3 on Ubuntu 22.04, OpenSSl 3.0.2 + + [Fix] + * Change RNG ioctl kernel handler code to copy data from user to kernel space. + + [Test Case] + openssl rand -engine pka 512
-- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-bluefield in Ubuntu. https://bugs.launchpad.net/bugs/2001564 Title: Kernel crash due to Bluefield pka TRNG ioctl call Status in linux-bluefield package in Ubuntu: New Bug description: SRU Justification [Impact] Bluefield 3 on Ubuntu 22.04 and OpenSSL 3.0.2, encounters kernel crash/oops when HTTPS client uses OpenSSL with PKA engine during TLS handshake. The issue is with TRNG ioctl call. The kernel logs show the following errors. Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000ffffce65d328 BF3 on Ubuntu 22.04, OpenSSl 3.0.2 [Fix] * Change RNG ioctl kernel handler code to copy data from user to kernel space. [Test Case] openssl rand -engine pka 512 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2001564/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp