[SRU][F/J:linux-bluefield][PATCH v1 0/1] UBUNTU: SAUCE: Fix kernel crash with pka TRNG ioctl all

shihyic shihyic at nvidia.com
Wed Jan 4 15:03:05 UTC 2023


From: Shih-Yi Chen <shihyic at nvidia.com>

BugLink: https://bugs.launchpad.net/bugs/2001564

SRU Justification

[Impact]
Bluefield 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

[Fix]
* Change TRNG ioctl kernel handler code to copy data from user to kernel space.

[Test Case]
* openssl rand -engine pka 512
* Tested with HTTPS clients like wget, curl using pka engine for TLS handshakes.

[Potential Regression]
* This fix has been tested with varieties of HTTPS clients and no known regression. 




More information about the kernel-team mailing list