Intel® QuickAssist Technology (Intel® QAT)
For questions and discussions related to Intel® QuickAssist Technology (Intel® QAT).
62 Discussions

Problems building/installing QAT 1.X Linux drivers

rolypoly
Beginner
3,177 Views

Ubuntu 22.04 in vm and on e5 v4 metal: builds, installs, sample code runs, but i needed to patch 
quickassist/qat/compat/qat_compat.h

 

513c513
< #if (KERNEL_VERSION(6, 3, 0) > LINUX_VERSION_CODE)
---
> #if (KERNEL_VERSION(6, 1, 29) > LINUX_VERSION_CODE && (KERNEL_VERSION(6, 1, 0) < LINUX_VERSION_CODE)) || (KERNEL_VERSION(5, 15, 112) > LINUX_VERSION_CODE) 

 

Debian 12 in vm and on e5 v4 metal: build error, something about no rule to make vmlinux.o needed by modpost

Clear linux on kernel 6.7 / 6.8 in vm: ditto debian 12, patched some stuff (dont know if it works, but the corresponding errors went away)
cpuinfo_x86.phys_proc_id got renamed to cpuinfo_x86.topo.pkg_id
https://github.com/torvalds/linux/commit/eb55307e6716b1a02f7db05e27d60e8ca2289c03#diff-8505bcf7b64fc29e6ba57bbd574d01d5e3bd3f0e8badefdd4a01c654de26fdccR62 

/opt/intel/QAT/quickassist/qat/drivers/crypto/qat/qat_common/adf_ctl_drv.c

		struct cpuinfo_topology *ct; 
		
		node_id = 0;

		/* if there is only one physical processor don't need
		 * to do any further calculations
		 */
		if (ct->pkg_id == 0) {
			node_id = 0;
		} else {
			bus_per_cpu = MAX_PCI_BUS / (ct->pkg_id + 1);

 strlcpy went away, replaced it with strscpy (sd is like sed but written in rust)

sd -F 'strlcpy' 'strscpy' $(grep -R strlcpy | awk -F: '{ print $1}' | sort -u)

something about prototypes idk i gave up and went back to ubuntu shortly afterwards. 

quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_drv_utils.c

int handle_other_ioctls(uint32_t cmd);

 

Rocky 9 had a broken symlink in /lib/modules/$(uname -r) for /build, couldn't even ./configure

 

End goal has been to test out QAT for ZFS, but it hung after a single 16M? compression call, but I was using SRIOV host mode, and i wanted to see if physical mode worked any better, because if I understand correctly, there are 3 modes of operation (sriov host, sriov guest, and physical)

 

(people that say they got it working in debian 11) 

0 Kudos
9 Replies
Ronny_G_Intel
Moderator
3,131 Views

Hi rolypoly,


Please see below and help me answer my questions:


  • Ubuntu 22.04 in vm and on e5 v4 metal, running Intel® QAT Driver Version 1.x is working okay.
  • Debian 12 in vm and on e5 v4 metal, giving you errors about no rule to make vmlinux.o needed by modpost, you patched it and the errors got fixed. If you still need help with this, can you please provide the exact error message?
  • Rocky 9, has a broken symlink in /lib/modules/$(uname -r) for /build, couldn't even ./configure.
  • Do you mean that you have a link that points to a file or directory that no longer exists and cant run ./configure command? Did you create the lib/modules directory manually? Probably the drivers wont load, you may use modprobe to load them but this is more of Linux configuration issue than QAT.
  • Your end goal is to test out QAT for ZFS, but it hangs after a single 16M using SRIOV host mode.
  • Can you please provide more details? Platform, Operating System and steps that you are trying to get this configured?


Regards,

Ronny G



0 Kudos
rolypoly
Beginner
3,117 Views

Repro steps for clear linux in a vm

Linux clearlinuxvm 6.8.1-1418.native #1 SMP Mon Mar 18 07:13:47 PDT 2024 x86_64 GNU/Linux
swupd bundle-add devpkg-libgudev devpkg-libnl kernel-native-dkms go-basic-dev rust-basic wget
mkdir -p /opt/intel/QAT && cd /opt/intel/QAT
wget https://downloadmirror.intel.com/795697/QAT.L.4.24.0-00005.tar.gz
tar -xf QAT.L.4.24.0-00005.tar.gz
./configure && make -j 

Clear linux and debian 12 (both kernel 6+) have the same error below

make[4]: Entering directory '/opt/intel/QAT/quickassist/lookaside/access_layer/src/qat_direct/src/uio'
make[4]: Entering directory '/opt/intel/QAT/quickassist/lookaside/access_layer/src/qat_direct/src/common'
Creating output directory
Creating output directory
make[6]: *** No rule to make target 'vmlinux.o', needed by 'modpost'.  Stop.
make[5]: *** [Makefile:240: __sub-make] Error 2
make[5]: Leaving directory '/usr/lib/modules/6.8.1-1418.native/build'
Copying outputs
mv: cannot stat 'OsalServices.o': No such file or directory
mv: cannot stat 'OsalSemaphore.o': No such file or directory
mv: cannot stat 'OsalSpinLock.o': No such file or directory
mv: cannot stat 'OsalThread.o': No such file or directory
mv: cannot stat 'OsalAtomic.o': No such file or directory
mv: cannot stat 'OsalMemMgmt.o': No such file or directory
mv: cannot stat 'OsalIOMMUMgmt.o': No such file or directory
mv: cannot stat 'OsalUsrKrlProxy.o': No such file or directory
mv: cannot stat 'OsalCryptoInterface.o': No such file or directory
make[4]: Leaving directory '/opt/intel/QAT/quickassist/utilities/osal/src/linux/kernel_space'
make[3]: Leaving directory '/opt/intel/QAT/quickassist/utilities/osal/src'

I'll try to reproduce some of the other errors on the xeon e5 v4 bare metal on tuesday.
Ideally, I would like to be able to get ZFS QAT offloads working in clear linux on bare metal, but it's looking like ubuntu 22.04 lts is more realistic for now.

0 Kudos
Ronny_G_Intel
Moderator
3,015 Views

Hi rolypoly,


Ubuntu works well but Debian 12 and Clearlinux are giving you errors.

When I search our internal debug table, the same error you have is reported as "QAT compile error due to kernel mismatch/unsupported kernel" and the resolution is to try the latest QAT driver package which you already have.


I would recommend the following:


Let me know your comments.


Regards,

Ronny G 


0 Kudos
rolypoly
Beginner
3,000 Views

I got QAT+ZFS working together on Ubuntu 22.04 LTS. 
Some caveats: I needed to disable SRIOV and VT-d in UEFI; I needed to patch qat_compat.h (see above), I also needed to resolve the GPL/CDDL licensing issue. 

 

  • Check if these errors are related to iommu_map function.

I'll pull at that thread this week.

 

  • Ensure that you have all necessary software packages installed, see section 3.2.1

./configure doesn't complain, so it seems like I have all the dependencies?

 

  • Which compilation flag are you using?

For clearlinux, I only used this option:

 

export KERNEL_SOURCE_ROOT=/lib/modules/$(kernelWithTheBuildDirPresent)

 

I used these compilation flags for Ubuntu:

 

./configure --enable-kapi --enable-icp-thread-specific-usdm  --enable-128k-slab --enable-icp-log-syslog 

 

 

 

  • Check if there are previous error messages, if there are, please share.

After following this guide, and using:

 

 ./configure KERNEL_SOURCE_ROOT=/root/clearlinux/packages/linux/linux-6.8.1

 

I get these errors on clearlinux LTS (6.6.x?) on Xeon E5 v4 metal :

 

Building qat_direct for user space
make[3]: Entering directory '/opt/intel/QAT/quickassist/lookaside/access_layer/src/qat_direct/src'
  CC [M]  /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_utils.o
  CC [M]  /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_drv.o
  CC [M]  /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_drv_utils.o
In file included from ./include/linux/errno.h:5,
                 from ./include/linux/mm.h:5,
                 from /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_utils.c:71:
./include/uapi/linux/errno.h:1:10: fatal error: asm/errno.h: No such file or directory
    1 | #include <asm/errno.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[7]: *** [scripts/Makefile.build:243: /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_utils.o] Error 1
make[7]: *** Waiting for unfinished jobs....
In file included from ./include/linux/array_size.h:5,
                 from ./include/linux/string.h:5,
                 from ./arch/x86/include/asm/io.h:38,
                 from /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_drv.c:72:
./include/linux/compiler.h:251:10: fatal error: asm/rwonce.h: No such file or directory
  251 | #include <asm/rwonce.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[7]: *** [scripts/Makefile.build:243: /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_drv.o] Error 1
In file included from ./include/linux/array_size.h:5,
                 from ./include/linux/kernel.h:16,
                 from /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_drv_utils.c:72:
./include/linux/compiler.h:251:10: fatal error: asm/rwonce.h: No such file or directory
  251 | #include <asm/rwonce.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.

 

and these errors on clearlinux rolling (6.8.1) in a vm:

 

Building qat_direct for user space
make[3]: Entering directory '/opt/intel/QAT/quickassist/lookaside/access_layer/src/qat_direct/src'
  CC [M]  /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_utils.o
  CC [M]  /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_drv.o
  CC [M]  /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_drv_utils.o
In file included from <command-line>:
././include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
    5 | #include <generated/autoconf.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[7]: *** [scripts/Makefile.build:243: /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_utils.o] Error 1
make[7]: *** Waiting for unfinished jobs....
In file included from <command-line>:
././include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
    5 | #include <generated/autoconf.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[7]: *** [scripts/Makefile.build:243: /opt/intel/QAT/quickassist/utilities/libusdm_drv/linux/kernel_space/qae_mem_drv.o] Error 1
In file included from <command-line>:
././include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
    5 | #include <generated/autoconf.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

 

I'm going to try some of these fixes tomorrow.

 

  • Ensure that you have all necessary software packages installed, see section 3.2.1

That documentation is actually missing some dependencies On ubuntu 22.04 LTS, ./configure complained and I fixed it with

 

apt install -y nasm libnl-genl-3-dev linux-headers-generic build-essential

 

 

Following the spdk issue, it seems like they were having the same issue with SRIOV and VT-d. I will look into reproducing the hang/crash on ubuntu 22.04 LTS, and hopefully I will get logs of some sort too, but I would like to get QAT+ZFS on clearlinux working first.

 

Does the internal debug table mention which kernels are known working? I tried building it on centos7 with the latest driver, but I recall running into problems with it earlier than I did with ubuntu 22.04 LTS.

0 Kudos
Ronny_G_Intel
Moderator
2,824 Views

Hi rolypoly,

 

The error message "fatal error: generated/autoconf.h: No such file or directory" typically occurs during the compilation of a Linux kernel or a kernel module, and it indicates that the build system is unable to find the autoconf.h header file. This file is generated during the configuration step of the kernel build process and contains macro definitions that are used to enable or disable features in the kernel.

 

Here are some steps to resolve this issue:

Ensure Kernel Configuration: Before compiling the kernel or a kernel module, you need to configure the kernel source tree. This is usually done with one of the following commands, which should be run from the root of the kernel source directory.

This step will generate the .config file and the include/generated/autoconf.h file.

Run Make Prepare: After configuring the kernel, you should run the following command to prepare the kernel build environment, which will generate necessary header files including autoconf.h:

Check the Include Path: If you're compiling a kernel module outside of the kernel source tree, ensure that the module's Makefile correctly points to the kernel headers, including the directory where autoconf.h is located. The path to the kernel headers is often specified with the -I option in the Makefile.

Install Kernel Headers: If you're building a module for a running kernel, make sure you have the appropriate kernel headers installed for your running kernel version. 

Use the Correct Kernel Source: If you're building a module, ensure that you're using the correct kernel source or headers that match the version of the kernel you're running or targeting. Mismatches can lead to the absence of the autoconf.h file.

Check for File Existence: Verify that autoconf.h actually exists in the expected directory within the kernel source tree (include/generated/ or include/linux/ depending on the kernel version). If it's missing, there might have been an issue during the configuration or preparation steps.

Clean the Build Environment: If you've previously attempted to build the kernel or module and encountered errors, it might be helpful to clean the build environment before trying again:

Note that make mrproper will remove the .config file and other generated files, so you should back up your .config file if you want to preserve your configuration.

Re-run Configuration and Build: After cleaning, re-run the kernel configuration and preparation steps, then attempt to build the kernel or module again.

By following these steps, you should be able to resolve the "fatal error: generated/autoconf.h: No such file or directory" issue and successfully compile the kernel or kernel module.

 

#make clean2make mrproper3

#sudo yum install kernel-devel-$(uname -r)2

#sudo apt-get install linux-headers-$(uname -r)2

#make prepare2

 

#make menuconfig  # Text-based user interface2make xconfig   # Graphical user interface (requires Qt)3make gconfig   # Graphical user interface (requires GTK+)4make oldconfig  # Use an old .config file as a base5

 

Regards,

Ronny G

 

0 Kudos
Ronny_G_Intel
Moderator
2,770 Views

Hi rolypoly,


I am just following up on this request, please let me know if you have any update regarding this case.


Thanks,

Ronny G


0 Kudos
Ronny_G_Intel
Moderator
2,699 Views

Hi rolypoly,


I am closing this ticket due to no response but please feel free to reopen if you still need assistance.


Regards,

Ronny G


0 Kudos
a_Roach
Beginner
1,043 Views

I received the following similar error, which I resolved (Debian 12 / Linux 6.1).

Resolution:

edit:  /QAT/quickassist/qat/compat/qat_compat.h and comment out problem function:

static inline void crypto_request_complete(struct crypto_async_request *req,
int err)
{
req->complete(req, err);
}
#endif

becomes
//static inline void crypto_request_complete(struct crypto_async_request *req,
// int err)
//{
// req->complete(req, err);
//}
#endif

 

Original Error Message resolved by this change:

root@<REDACTED>:/QAT# make
make all-am
make[1]: Entering directory '/QAT'
make[2]: Entering directory '/QAT/quickassist/qat'
debian
make -C /lib/modules/6.1.0-25-amd64/build M=/QAT/quickassist/qat modules
make[3]: Entering directory '/usr/src/linux-headers-6.1.0-25-amd64'
debian
CC [M] /QAT/quickassist/qat/drivers/crypto/qat/qat_common/adf_cfg.o
CC [M] /QAT/quickassist/qat/drivers/crypto/qat/qat_common/adf_isr.o
CC [M] /QAT/quickassist/qat/drivers/crypto/qat/qat_common/adf_ctl_drv.o
In file included from /QAT/quickassist/qat/drivers/crypto/qat/qat_common/adf_ctl_drv.c:15:
/usr/src/linux-headers-6.1.0-25-common/include/crypto/algapi.h:271:20: error: redefinition of ‘crypto_request_complete’
271 | static inline void crypto_request_complete(struct crypto_async_request *req,
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
/QAT/quickassist/qat/compat/qat_compat.h:544:20: note: previous definition of ‘crypto_request_complete’ with type ‘void(struct crypto_async_request *, int)’
544 | static inline void crypto_request_complete(struct crypto_async_request *req,
| ^~~~~~~~~~~~~~~~~~~~~~~
make[6]: *** [/usr/src/linux-headers-6.1.0-25-common/scripts/Makefile.build:255: /QAT/quickassist/qat/drivers/crypto/qat/qat_common/adf_ctl_drv.o] Error 1
make[5]: *** [/usr/src/linux-headers-6.1.0-25-common/scripts/Makefile.build:508: /QAT/quickassist/qat/drivers/crypto/qat/qat_common] Error 2
make[4]: *** [/usr/src/linux-headers-6.1.0-25-common/scripts/Makefile.build:508: /QAT/quickassist/qat/drivers/crypto/qat] Error 2
make[3]: *** [/usr/src/linux-headers-6.1.0-25-common/Makefile:2034: /QAT/quickassist/qat] Error 2
make[3]: Leaving directory '/usr/src/linux-headers-6.1.0-25-amd64'
make[2]: *** [Makefile:75: modules] Error 2
make[2]: Leaving directory '/QAT/quickassist/qat'
make[1]: *** [Makefile:1903: qat-driver-all] Error 2
make[1]: Leaving directory '/QAT'
make: *** [Makefile:783: all] Error 2

0 Kudos
rolypoly
Beginner
801 Views

I'm back with more errors.
Xeon E5 v4 bare metal + QAT 8960 + Ubuntu 24.04 (kernel 6.8) = QAT.L.4.26.0-00008.tar.gz builds and installs, but the sample code just returns errors. I also got these lovely messages popping up in dmesg:

 

 

 

[   13.566469] ------------[ cut here ]------------
[   13.566475] UBSAN: array-index-out-of-bounds in /opt/intel/QAT/quickassist/qat/drivers/crypto/qat/qat_common/adf_uio_control.c:324:15
[   13.567990] index 0 is out of range for type 'adf_uio_control_bundle *[*]'
[   13.568762] CPU: 49 PID: 2211 Comm: adf_ctl Tainted: G           OE      6.8.0-45-generic #45-Ubuntu
[   13.568770] Hardware name: Penguin Computing Relion 2900/MD90-FS0-ZB-XX, BIOS R16 12/05/2019
[   13.568773] Call Trace:
[   13.568778]  <TASK>
[   13.568784]  dump_stack_lvl+0x76/0xa0
[   13.568804]  dump_stack+0x10/0x20
[   13.568812]  __ubsan_handle_out_of_bounds+0xc6/0x110
[   13.568828]  adf_uio_sysfs_bundle_create+0x90/0x160 [intel_qat]
[   13.568901]  adf_uio_register+0x1e7/0x450 [intel_qat]
[   13.568948]  adf_dev_start+0x1e6/0x3b0 [intel_qat]
[   13.568988]  adf_ctl_ioctl+0x44a/0xd10 [intel_qat]
[   13.569023]  ? __x64_sys_ioctl+0xa3/0xf0
[   13.569037]  ? syscall_exit_to_user_mode+0x89/0x260
[   13.569048]  __x64_sys_ioctl+0xa3/0xf0
[   13.569055]  x64_sys_call+0x143b/0x25c0
[   13.569062]  do_syscall_64+0x7f/0x180
[   13.569070]  ? bio_free+0x4a/0x60
[   13.569079]  ? bio_put+0x29/0x50
[   13.569086]  ? __read_end_io+0xfa/0x230
[   13.569095]  ? sbitmap_queue_clear+0x55/0xc0
[   13.569102]  ? __pfx_read_tsc+0x10/0x10
[   13.569116]  ? blk_queue_exit+0x23/0x50
[   13.569124]  ? __blk_mq_free_request+0x89/0x120
[   13.569136]  ? blk_mq_free_request+0x95/0xd0
[   13.569141]  ? __blk_mq_end_request+0xef/0x140
[   13.569146]  ? scsi_end_request+0x103/0x1c0
[   13.569156]  ? scsi_io_completion+0x6e/0x1a0
[   13.569163]  ? scsi_finish_command+0xc3/0x110
[   13.569172]  ? scsi_complete+0x74/0x110
[   13.569178]  ? blk_complete_reqs+0x44/0x60
[   13.569185]  ? blk_done_softirq+0x1d/0x30
[   13.569192]  ? handle_softirqs+0xdb/0x340
[   13.569204]  ? irqentry_exit_to_user_mode+0x7e/0x260
[   13.569212]  ? irqentry_exit+0x43/0x50
[   13.569219]  ? common_interrupt+0x54/0xb0
[   13.569225]  entry_SYSCALL_64_after_hwframe+0x78/0x80
[   13.569241] RIP: 0033:0x71abb3324ded
[   13.569281] Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00
[   13.569286] RSP: 002b:00007ffe4f7842a0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   13.569294] RAX: ffffffffffffffda RBX: 00007ffe4f784420 RCX: 000071abb3324ded
[   13.569298] RDX: 00007ffe4f784420 RSI: 00000000400c6102 RDI: 0000000000000003
[   13.569301] RBP: 00007ffe4f7842f0 R08: 000063c1251fb010 R09: 0000000000000007
[   13.569304] R10: 000063c125212500 R11: 0000000000000246 R12: 000063c125219e30
[   13.569308] R13: 000071abb38736d0 R14: 000071abb3873680 R15: 000071abb3873720
[   13.569314]  </TASK>
[   13.569316] ---[ end trace ]---
[   13.569367] ------------[ cut here ]------------
[   13.569369] UBSAN: array-index-out-of-bounds in /opt/intel/QAT/quickassist/qat/drivers/crypto/qat/qat_common/adf_uio.c:465:28
[   13.570139] index 0 is out of range for type 'adf_uio_control_bundle *[*]'
[   13.570906] CPU: 49 PID: 2211 Comm: adf_ctl Tainted: G           OE      6.8.0-45-generic #45-Ubuntu
[   13.570913] Hardware name: Penguin Computing Relion 2900/MD90-FS0-ZB-XX, BIOS R16 12/05/2019
[   13.570916] Call Trace:
[   13.570918]  <TASK>
[   13.570921]  dump_stack_lvl+0x76/0xa0
[   13.570930]  dump_stack+0x10/0x20
[   13.570936]  __ubsan_handle_out_of_bounds+0xc6/0x110
[   13.570946]  adf_uio_init_bundle_dev+0x73/0x360 [intel_qat]
[   13.570997]  ? adf_uio_sysfs_bundle_create+0xc6/0x160 [intel_qat]
[   13.571040]  adf_uio_register+0x25e/0x450 [intel_qat]
[   13.571086]  adf_dev_start+0x1e6/0x3b0 [intel_qat]
[   13.571129]  adf_ctl_ioctl+0x44a/0xd10 [intel_qat]
[   13.571167]  ? __x64_sys_ioctl+0xa3/0xf0
[   13.571175]  ? syscall_exit_to_user_mode+0x89/0x260
[   13.571185]  __x64_sys_ioctl+0xa3/0xf0
[   13.571191]  x64_sys_call+0x143b/0x25c0
[   13.571197]  do_syscall_64+0x7f/0x180
[   13.571204]  ? bio_free+0x4a/0x60
[   13.571212]  ? bio_put+0x29/0x50
[   13.571219]  ? __read_end_io+0xfa/0x230
[   13.571225]  ? sbitmap_queue_clear+0x55/0xc0
[   13.571233]  ? __pfx_read_tsc+0x10/0x10
[   13.571241]  ? blk_queue_exit+0x23/0x50
[   13.571246]  ? __blk_mq_free_request+0x89/0x120
[   13.571255]  ? blk_mq_free_request+0x95/0xd0
[   13.571260]  ? __blk_mq_end_request+0xef/0x140
[   13.571265]  ? scsi_end_request+0x103/0x1c0
[   13.571272]  ? scsi_io_completion+0x6e/0x1a0
[   13.571279]  ? scsi_finish_command+0xc3/0x110
[   13.571285]  ? scsi_complete+0x74/0x110
[   13.571291]  ? blk_complete_reqs+0x44/0x60
[   13.571298]  ? blk_done_softirq+0x1d/0x30
[   13.571305]  ? handle_softirqs+0xdb/0x340
[   13.571312]  ? irqentry_exit_to_user_mode+0x7e/0x260
[   13.571321]  ? irqentry_exit+0x43/0x50
[   13.571328]  ? common_interrupt+0x54/0xb0
[   13.571334]  entry_SYSCALL_64_after_hwframe+0x78/0x80
[   13.571344] RIP: 0033:0x71abb3324ded
[   13.571360] Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00
[   13.571364] RSP: 002b:00007ffe4f7842a0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   13.571370] RAX: ffffffffffffffda RBX: 00007ffe4f784420 RCX: 000071abb3324ded
[   13.571374] RDX: 00007ffe4f784420 RSI: 00000000400c6102 RDI: 0000000000000003
[   13.571378] RBP: 00007ffe4f7842f0 R08: 000063c1251fb010 R09: 0000000000000007
[   13.571381] R10: 000063c125212500 R11: 0000000000000246 R12: 000063c125219e30
[   13.571384] R13: 000071abb38736d0 R14: 000071abb3873680 R15: 000071abb3873720
[   13.571390]  </TASK>
[   13.571393] ---[ end trace ]---
[   13.571395] ------------[ cut here ]------------
[   13.571397] UBSAN: array-index-out-of-bounds in /opt/intel/QAT/quickassist/qat/drivers/crypto/qat/qat_common/adf_uio.c:467:28
[   13.572227] index 0 is out of range for type 'adf_uio_control_bundle *[*]'
[   13.573044] CPU: 49 PID: 2211 Comm: adf_ctl Tainted: G           OE      6.8.0-45-generic #45-Ubuntu
[   13.573051] Hardware name: Penguin Computing Relion 2900/MD90-FS0-ZB-XX, BIOS R16 12/05/2019
[   13.573053] Call Trace:
[   13.573056]  <TASK>
[   13.573059]  dump_stack_lvl+0x76/0xa0
[   13.573068]  dump_stack+0x10/0x20
[   13.573074]  __ubsan_handle_out_of_bounds+0xc6/0x110
[   13.573083]  adf_uio_init_bundle_dev+0x95/0x360 [intel_qat]
[   13.573141]  ? adf_uio_sysfs_bundle_create+0xc6/0x160 [intel_qat]
[   13.573193]  adf_uio_register+0x25e/0x450 [intel_qat]
[   13.573247]  adf_dev_start+0x1e6/0x3b0 [intel_qat]
[   13.573291]  adf_ctl_ioctl+0x44a/0xd10 [intel_qat]
[   13.573328]  ? __x64_sys_ioctl+0xa3/0xf0
[   13.573336]  ? syscall_exit_to_user_mode+0x89/0x260
[   13.573345]  __x64_sys_ioctl+0xa3/0xf0
[   13.573352]  x64_sys_call+0x143b/0x25c0
[   13.573358]  do_syscall_64+0x7f/0x180
[   13.573365]  ? bio_free+0x4a/0x60
[   13.573372]  ? bio_put+0x29/0x50
[   13.573379]  ? __read_end_io+0xfa/0x230
[   13.573386]  ? sbitmap_queue_clear+0x55/0xc0
[   13.573393]  ? __pfx_read_tsc+0x10/0x10
[   13.573401]  ? blk_queue_exit+0x23/0x50
[   13.573407]  ? __blk_mq_free_request+0x89/0x120
[   13.573416]  ? blk_mq_free_request+0x95/0xd0
[   13.573421]  ? __blk_mq_end_request+0xef/0x140
[   13.573426]  ? scsi_end_request+0x103/0x1c0
[   13.573432]  ? scsi_io_completion+0x6e/0x1a0
[   13.573439]  ? scsi_finish_command+0xc3/0x110
[   13.573445]  ? scsi_complete+0x74/0x110
[   13.573451]  ? blk_complete_reqs+0x44/0x60
[   13.573457]  ? blk_done_softirq+0x1d/0x30
[   13.573465]  ? handle_softirqs+0xdb/0x340
[   13.573472]  ? irqentry_exit_to_user_mode+0x7e/0x260
[   13.573481]  ? irqentry_exit+0x43/0x50
[   13.573487]  ? common_interrupt+0x54/0xb0
[   13.573493]  entry_SYSCALL_64_after_hwframe+0x78/0x80
[   13.573502] RIP: 0033:0x71abb3324ded
[   13.573517] Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00
[   13.573521] RSP: 002b:00007ffe4f7842a0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   13.573527] RAX: ffffffffffffffda RBX: 00007ffe4f784420 RCX: 000071abb3324ded
[   13.573530] RDX: 00007ffe4f784420 RSI: 00000000400c6102 RDI: 0000000000000003
[   13.573533] RBP: 00007ffe4f7842f0 R08: 000063c1251fb010 R09: 0000000000000007
[   13.573536] R10: 000063c125212500 R11: 0000000000000246 R12: 000063c125219e30
[   13.573540] R13: 000071abb38736d0 R14: 000071abb3873680 R15: 000071abb3873720
[   13.573545]  </TASK>
[   13.573548] ---[ end trace ]---
[   13.576524] ------------[ cut here ]------------
[   13.576531] UBSAN: array-index-out-of-bounds in /opt/intel/QAT/quickassist/qat/drivers/crypto/qat/qat_common/adf_uio.c:71:41
[   13.577468] index 0 is out of range for type 'adf_uio_control_bundle *[*]'
[   13.578272] CPU: 0 PID: 2211 Comm: adf_ctl Tainted: G           OE      6.8.0-45-generic #45-Ubuntu
[   13.578279] Hardware name: Penguin Computing Relion 2900/MD90-FS0-ZB-XX, BIOS R16 12/05/2019
[   13.578283] Call Trace:
[   13.578287]  <TASK>
[   13.578291]  dump_stack_lvl+0x76/0xa0
[   13.578308]  dump_stack+0x10/0x20
[   13.578314]  __ubsan_handle_out_of_bounds+0xc6/0x110
[   13.578327]  adf_uio_register+0x2f9/0x450 [intel_qat]
[   13.578390]  adf_dev_start+0x1e6/0x3b0 [intel_qat]
[   13.578428]  adf_ctl_ioctl+0x44a/0xd10 [intel_qat]
[   13.578463]  ? __x64_sys_ioctl+0xa3/0xf0
[   13.578475]  ? syscall_exit_to_user_mode+0x89/0x260
[   13.578486]  __x64_sys_ioctl+0xa3/0xf0
[   13.578492]  x64_sys_call+0x143b/0x25c0
[   13.578500]  do_syscall_64+0x7f/0x180
[   13.578507]  ? bio_free+0x4a/0x60
[   13.578517]  ? bio_put+0x29/0x50
[   13.578523]  ? __read_end_io+0xfa/0x230
[   13.578532]  ? sbitmap_queue_clear+0x55/0xc0
[   13.578539]  ? __pfx_read_tsc+0x10/0x10
[   13.578551]  ? blk_queue_exit+0x23/0x50
[   13.578559]  ? __blk_mq_free_request+0x89/0x120
[   13.578570]  ? blk_mq_free_request+0x95/0xd0
[   13.578575]  ? __blk_mq_end_request+0xef/0x140
[   13.578580]  ? scsi_end_request+0x103/0x1c0
[   13.578590]  ? scsi_io_completion+0x6e/0x1a0
[   13.578597]  ? scsi_finish_command+0xc3/0x110
[   13.578605]  ? scsi_complete+0x74/0x110
[   13.578611]  ? blk_complete_reqs+0x44/0x60
[   13.578618]  ? blk_done_softirq+0x1d/0x30
[   13.578625]  ? handle_softirqs+0xdb/0x340
[   13.578636]  ? irqentry_exit_to_user_mode+0x7e/0x260
[   13.578644]  ? irqentry_exit+0x43/0x50
[   13.578651]  ? common_interrupt+0x54/0xb0
[   13.578657]  entry_SYSCALL_64_after_hwframe+0x78/0x80
[   13.578671] RIP: 0033:0x71abb3324ded
[   13.578714] Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00
[   13.578719] RSP: 002b:00007ffe4f7842a0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   13.578727] RAX: ffffffffffffffda RBX: 00007ffe4f784420 RCX: 000071abb3324ded
[   13.578731] RDX: 00007ffe4f784420 RSI: 00000000400c6102 RDI: 0000000000000003
[   13.578734] RBP: 00007ffe4f7842f0 R08: 000063c1251fb010 R09: 0000000000000007
[   13.578738] R10: 000063c125212500 R11: 0000000000000246 R12: 000063c125219e30
[   13.578741] R13: 000071abb38736d0 R14: 000071abb3873680 R15: 000071abb3873720
[   13.578747]  </TASK>
[   13.578760] ---[ end trace ]---
[   13.578767] ------------[ cut here ]------------
[   13.578770] UBSAN: array-index-out-of-bounds in /opt/intel/QAT/quickassist/qat/drivers/crypto/qat/qat_common/adf_uio.c:73:36
[   13.579575] index 0 is out of range for type 'adf_uio_control_bundle *[*]'
[   13.580390] CPU: 0 PID: 2211 Comm: adf_ctl Tainted: G           OE      6.8.0-45-generic #45-Ubuntu
[   13.580396] Hardware name: Penguin Computing Relion 2900/MD90-FS0-ZB-XX, BIOS R16 12/05/2019
[   13.580398] Call Trace:
[   13.580400]  <TASK>
[   13.580403]  dump_stack_lvl+0x76/0xa0
[   13.580411]  dump_stack+0x10/0x20
[   13.580416]  __ubsan_handle_out_of_bounds+0xc6/0x110
[   13.580425]  adf_uio_register+0x3c9/0x450 [intel_qat]
[   13.580474]  adf_dev_start+0x1e6/0x3b0 [intel_qat]
[   13.580511]  adf_ctl_ioctl+0x44a/0xd10 [intel_qat]
[   13.580545]  ? __x64_sys_ioctl+0xa3/0xf0
[   13.580552]  ? syscall_exit_to_user_mode+0x89/0x260
[   13.580561]  __x64_sys_ioctl+0xa3/0xf0
[   13.580567]  x64_sys_call+0x143b/0x25c0
[   13.580572]  do_syscall_64+0x7f/0x180
[   13.580579]  ? bio_free+0x4a/0x60
[   13.580586]  ? bio_put+0x29/0x50
[   13.580593]  ? __read_end_io+0xfa/0x230
[   13.580599]  ? sbitmap_queue_clear+0x55/0xc0
[   13.580606]  ? __pfx_read_tsc+0x10/0x10
[   13.580614]  ? blk_queue_exit+0x23/0x50
[   13.580619]  ? __blk_mq_free_request+0x89/0x120
[   13.580628]  ? blk_mq_free_request+0x95/0xd0
[   13.580633]  ? __blk_mq_end_request+0xef/0x140
[   13.580638]  ? scsi_end_request+0x103/0x1c0
[   13.580644]  ? scsi_io_completion+0x6e/0x1a0
[   13.580651]  ? scsi_finish_command+0xc3/0x110
[   13.580657]  ? scsi_complete+0x74/0x110
[   13.580662]  ? blk_complete_reqs+0x44/0x60
[   13.580669]  ? blk_done_softirq+0x1d/0x30
[   13.580676]  ? handle_softirqs+0xdb/0x340
[   13.580683]  ? irqentry_exit_to_user_mode+0x7e/0x260
[   13.580691]  ? irqentry_exit+0x43/0x50
[   13.580698]  ? common_interrupt+0x54/0xb0
[   13.580703]  entry_SYSCALL_64_after_hwframe+0x78/0x80
[   13.580712] RIP: 0033:0x71abb3324ded
[   13.580725] Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00
[   13.580729] RSP: 002b:00007ffe4f7842a0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   13.580735] RAX: ffffffffffffffda RBX: 00007ffe4f784420 RCX: 000071abb3324ded
[   13.580738] RDX: 00007ffe4f784420 RSI: 00000000400c6102 RDI: 0000000000000003
[   13.580742] RBP: 00007ffe4f7842f0 R08: 000063c1251fb010 R09: 0000000000000007
[   13.580745] R10: 000063c125212500 R11: 0000000000000246 R12: 000063c125219e30
[   13.580748] R13: 000071abb38736d0 R14: 000071abb3873680 R15: 000071abb3873720
[   13.580754]  </TASK>
[   13.580774] ---[ end trace ]---
[   13.580777] ------------[ cut here ]------------
[   13.580779] UBSAN: array-index-out-of-bounds in /opt/intel/QAT/quickassist/qat/drivers/crypto/qat/qat_common/adf_uio.c:74:35
[   13.581593] index 6 is out of range for type 'adf_uio_control_bundle *[*]'
[   13.582416] CPU: 0 PID: 2211 Comm: adf_ctl Tainted: G           OE      6.8.0-45-generic #45-Ubuntu
[   13.582421] Hardware name: Penguin Computing Relion 2900/MD90-FS0-ZB-XX, BIOS R16 12/05/2019
[   13.582424] Call Trace:
[   13.582426]  <TASK>
[   13.582429]  dump_stack_lvl+0x76/0xa0
[   13.582436]  dump_stack+0x10/0x20
[   13.582442]  __ubsan_handle_out_of_bounds+0xc6/0x110
[   13.582451]  adf_uio_register+0x3ea/0x450 [intel_qat]
[   13.582498]  adf_dev_start+0x1e6/0x3b0 [intel_qat]
[   13.582536]  adf_ctl_ioctl+0x44a/0xd10 [intel_qat]
[   13.582570]  ? __x64_sys_ioctl+0xa3/0xf0
[   13.582579]  ? syscall_exit_to_user_mode+0x89/0x260
[   13.582587]  __x64_sys_ioctl+0xa3/0xf0
[   13.582594]  x64_sys_call+0x143b/0x25c0
[   13.582599]  do_syscall_64+0x7f/0x180
[   13.582606]  ? bio_free+0x4a/0x60
[   13.582613]  ? bio_put+0x29/0x50
[   13.582620]  ? __read_end_io+0xfa/0x230
[   13.582626]  ? sbitmap_queue_clear+0x55/0xc0
[   13.582634]  ? __pfx_read_tsc+0x10/0x10
[   13.582641]  ? blk_queue_exit+0x23/0x50
[   13.582646]  ? __blk_mq_free_request+0x89/0x120
[   13.582654]  ? blk_mq_free_request+0x95/0xd0
[   13.582659]  ? __blk_mq_end_request+0xef/0x140
[   13.582664]  ? scsi_end_request+0x103/0x1c0
[   13.582670]  ? scsi_io_completion+0x6e/0x1a0
[   13.582676]  ? scsi_finish_command+0xc3/0x110
[   13.582682]  ? scsi_complete+0x74/0x110
[   13.582688]  ? blk_complete_reqs+0x44/0x60
[   13.582694]  ? blk_done_softirq+0x1d/0x30
[   13.582701]  ? handle_softirqs+0xdb/0x340
[   13.582708]  ? irqentry_exit_to_user_mode+0x7e/0x260
[   13.582716]  ? irqentry_exit+0x43/0x50
[   13.582723]  ? common_interrupt+0x54/0xb0
[   13.582728]  entry_SYSCALL_64_after_hwframe+0x78/0x80
[   13.582737] RIP: 0033:0x71abb3324ded
[   13.582749] Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00
[   13.582753] RSP: 002b:00007ffe4f7842a0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   13.582758] RAX: ffffffffffffffda RBX: 00007ffe4f784420 RCX: 000071abb3324ded
[   13.582761] RDX: 00007ffe4f784420 RSI: 00000000400c6102 RDI: 0000000000000003
[   13.582764] RBP: 00007ffe4f7842f0 R08: 000063c1251fb010 R09: 0000000000000007
[   13.582768] R10: 000063c125212500 R11: 0000000000000246 R12: 000063c125219e30
[   13.582771] R13: 000071abb38736d0 R14: 000071abb3873680 R15: 000071abb3873720
[   13.582776]  </TASK>
[   13.582786] ---[ end trace ]---

 

 

 

 

0 Kudos
Reply