In the Linux kernel, the following vulnerability has been resolved: iouring/io-wq: Use setbit() and testbit() at worker->flags Utilize setbit() and testbit() on worker->flags within iouring/io-wq to address potential data races. The structure ioworker->flags may be accessed through various data paths, leading to concurrency issues. When KCSAN is enabled, it reveals data races occurring in ioworkerhandlework and iowqactivatefreeworker functions. BUG: KCSAN: data-race in ioworkerhandlework / iowqactivatefreeworker write to 0xffff8885c4246404 of 4 bytes by task 49071 on cpu 28: ioworkerhandlework (iouring/io-wq.c:434 iouring/io-wq.c:569) iowqworker (iouring/io-wq.c:?) <snip> read to 0xffff8885c4246404 of 4 bytes by task 49024 on cpu 5: iowqactivatefreeworker (iouring/io-wq.c:? iouring/io-wq.c:285) iowqenqueue (iouring/io-wq.c:947) ioqueueiowq (iouring/iouring.c:524) ioreqtasksubmit (iouring/iouring.c:1511) iohandletwlist (iouring/iouring.c:1198) <snip> Line numbers against commit 18daea77cca6 ("Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm"). These races involve writes and reads to the same memory location by different tasks running on different CPUs. To mitigate this, refactor the code to use atomic operations such as setbit(), testbit(), and clear_bit() instead of basic "and" and "or" operations. This ensures thread-safe manipulation of worker flags. Also, move create_index
to avoid holes in the structure.
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-image-unsigned-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1~22.04.1", "linux-image-unsigned-6.8.0-44-lowlatency-64k-dbgsym": "6.8.0-44.44.1~22.04.1", "linux-tools-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1~22.04.1", "linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-44": "6.8.0-44.44.1~22.04.1", "linux-modules-iwlwifi-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-modules-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1~22.04.1", "linux-tools-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-image-unsigned-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-headers-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1~22.04.1", "linux-modules-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-buildinfo-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1~22.04.1", "linux-lowlatency-hwe-6.8-lib-rust-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-lowlatency-hwe-6.8-headers-6.8.0-44": "6.8.0-44.44.1~22.04.1", "linux-buildinfo-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-lowlatency-hwe-6.8-tools-6.8.0-44": "6.8.0-44.44.1~22.04.1", "linux-headers-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-cloud-tools-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-image-unsigned-6.8.0-44-lowlatency-dbgsym": "6.8.0-44.44.1~22.04.1" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-buildinfo-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-modules-6.8.0-1013-nvidia-64k": "6.8.0-1013.14~22.04.1", "linux-modules-nvidia-fs-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-image-unsigned-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-tools-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-modules-extra-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-headers-6.8.0-1013-nvidia-64k": "6.8.0-1013.14~22.04.1", "linux-buildinfo-6.8.0-1013-nvidia-64k": "6.8.0-1013.14~22.04.1", "linux-image-unsigned-6.8.0-1013-nvidia-64k": "6.8.0-1013.14~22.04.1", "linux-modules-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-image-unsigned-6.8.0-1013-nvidia-dbgsym": "6.8.0-1013.14~22.04.1", "linux-image-unsigned-6.8.0-1013-nvidia-64k-dbgsym": "6.8.0-1013.14~22.04.1", "linux-modules-nvidia-fs-6.8.0-1013-nvidia-64k": "6.8.0-1013.14~22.04.1", "linux-nvidia-6.8-headers-6.8.0-1013": "6.8.0-1013.14~22.04.1", "linux-nvidia-6.8-tools-6.8.0-1013": "6.8.0-1013.14~22.04.1", "linux-headers-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-tools-6.8.0-1013-nvidia-64k": "6.8.0-1013.14~22.04.1" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-buildinfo-6.8.0-44-generic": "6.8.0-44.44.1~22.04.1", "linux-riscv-6.8-tools-6.8.0-44": "6.8.0-44.44.1~22.04.1", "linux-image-6.8.0-44-generic": "6.8.0-44.44.1~22.04.1", "linux-riscv-6.8-headers-6.8.0-44": "6.8.0-44.44.1~22.04.1", "linux-image-6.8.0-44-generic-dbgsym": "6.8.0-44.44.1~22.04.1", "linux-tools-6.8.0-44-generic": "6.8.0-44.44.1~22.04.1", "linux-modules-6.8.0-44-generic": "6.8.0-44.44.1~22.04.1", "linux-headers-6.8.0-44-generic": "6.8.0-44.44.1~22.04.1" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-cloud-tools-common": "6.8.0-44.44", "linux-lib-rust-6.8.0-44-generic": "6.8.0-44.44", "linux-libc-dev": "6.8.0-44.44", "linux-headers-6.8.0-44": "6.8.0-44.44", "linux-source-6.8.0": "6.8.0-44.44", "linux-image-6.8.0-44-generic": "6.8.0-44.44", "linux-doc": "6.8.0-44.44", "linux-headers-6.8.0-44-generic": "6.8.0-44.44", "linux-buildinfo-6.8.0-44-generic-64k": "6.8.0-44.44", "linux-image-unsigned-6.8.0-44-generic": "6.8.0-44.44", "linux-cloud-tools-6.8.0-44-generic": "6.8.0-44.44", "linux-cloud-tools-6.8.0-44": "6.8.0-44.44", "linux-modules-6.8.0-44-generic-64k": "6.8.0-44.44", "linux-modules-ipu6-6.8.0-44-generic": "6.8.0-44.44", "linux-tools-6.8.0-44-generic": "6.8.0-44.44", "linux-tools-6.8.0-44-generic-64k": "6.8.0-44.44", "linux-image-6.8.0-44-generic-dbgsym": "6.8.0-44.44", "linux-modules-usbio-6.8.0-44-generic": "6.8.0-44.44", "linux-modules-iwlwifi-6.8.0-44-generic": "6.8.0-44.44", "linux-tools-6.8.0-44": "6.8.0-44.44", "linux-tools-host": "6.8.0-44.44", "linux-image-unsigned-6.8.0-44-generic-dbgsym": "6.8.0-44.44", "linux-headers-6.8.0-44-generic-64k": "6.8.0-44.44", "linux-buildinfo-6.8.0-44-generic": "6.8.0-44.44", "linux-tools-common": "6.8.0-44.44", "linux-image-unsigned-6.8.0-44-generic-64k": "6.8.0-44.44", "linux-modules-extra-6.8.0-44-generic": "6.8.0-44.44", "linux-image-unsigned-6.8.0-44-generic-64k-dbgsym": "6.8.0-44.44", "linux-modules-6.8.0-44-generic": "6.8.0-44.44" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-tools-6.8.0-1015-aws": "6.8.0-1015.16", "linux-cloud-tools-6.8.0-1015-aws": "6.8.0-1015.16", "linux-headers-6.8.0-1015-aws": "6.8.0-1015.16", "linux-aws-cloud-tools-6.8.0-1015": "6.8.0-1015.16", "linux-image-unsigned-6.8.0-1015-aws-dbgsym": "6.8.0-1015.16", "linux-aws-headers-6.8.0-1015": "6.8.0-1015.16", "linux-buildinfo-6.8.0-1015-aws": "6.8.0-1015.16", "linux-aws-tools-6.8.0-1015": "6.8.0-1015.16", "linux-image-unsigned-6.8.0-1015-aws": "6.8.0-1015.16", "linux-modules-extra-6.8.0-1015-aws": "6.8.0-1015.16", "linux-modules-6.8.0-1015-aws": "6.8.0-1015.16" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-azure-tools-6.8.0-1014": "6.8.0-1014.16", "linux-headers-6.8.0-1014-azure": "6.8.0-1014.16", "linux-modules-iwlwifi-6.8.0-1014-azure": "6.8.0-1014.16", "linux-modules-extra-6.8.0-1014-azure": "6.8.0-1014.16", "linux-tools-6.8.0-1014-azure": "6.8.0-1014.16", "linux-azure-cloud-tools-6.8.0-1014": "6.8.0-1014.16", "linux-azure-headers-6.8.0-1014": "6.8.0-1014.16", "linux-image-unsigned-6.8.0-1014-azure": "6.8.0-1014.16", "linux-image-unsigned-6.8.0-1014-azure-dbgsym": "6.8.0-1014.16", "linux-modules-involflt-6.8.0-1014-azure": "6.8.0-1014.16", "linux-modules-6.8.0-1014-azure": "6.8.0-1014.16", "linux-cloud-tools-6.8.0-1014-azure": "6.8.0-1014.16", "linux-buildinfo-6.8.0-1014-azure": "6.8.0-1014.16" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-tools-6.8.0-1014-gcp": "6.8.0-1014.16", "linux-buildinfo-6.8.0-1014-gcp": "6.8.0-1014.16", "linux-gcp-tools-6.8.0-1014": "6.8.0-1014.16", "linux-headers-6.8.0-1014-gcp": "6.8.0-1014.16", "linux-gcp-headers-6.8.0-1014": "6.8.0-1014.16", "linux-modules-6.8.0-1014-gcp": "6.8.0-1014.16", "linux-image-unsigned-6.8.0-1014-gcp": "6.8.0-1014.16", "linux-modules-extra-6.8.0-1014-gcp": "6.8.0-1014.16", "linux-image-unsigned-6.8.0-1014-gcp-dbgsym": "6.8.0-1014.16" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-gke-tools-6.8.0-1010": "6.8.0-1010.13", "linux-modules-extra-6.8.0-1010-gke": "6.8.0-1010.13", "linux-image-unsigned-6.8.0-1010-gke-dbgsym": "6.8.0-1010.13", "linux-modules-iwlwifi-6.8.0-1010-gke": "6.8.0-1010.13", "linux-headers-6.8.0-1010-gke": "6.8.0-1010.13", "linux-image-unsigned-6.8.0-1010-gke": "6.8.0-1010.13", "linux-tools-6.8.0-1010-gke": "6.8.0-1010.13", "linux-modules-6.8.0-1010-gke": "6.8.0-1010.13", "linux-gke-headers-6.8.0-1010": "6.8.0-1010.13", "linux-buildinfo-6.8.0-1010-gke": "6.8.0-1010.13" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-ibm-tools-6.8.0-1012": "6.8.0-1012.12", "linux-ibm-source-6.8.0": "6.8.0-1012.12", "linux-modules-extra-6.8.0-1012-ibm": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-ibm": "6.8.0-1012.12", "linux-ibm-headers-6.8.0-1012": "6.8.0-1012.12", "linux-tools-6.8.0-1012-ibm": "6.8.0-1012.12", "linux-headers-6.8.0-1012-ibm": "6.8.0-1012.12", "linux-buildinfo-6.8.0-1012-ibm": "6.8.0-1012.12", "linux-modules-iwlwifi-6.8.0-1012-ibm": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-ibm-dbgsym": "6.8.0-1012.12", "linux-ibm-cloud-tools-common": "6.8.0-1012.12", "linux-modules-6.8.0-1012-ibm": "6.8.0-1012.12" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-image-unsigned-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1", "linux-image-unsigned-6.8.0-44-lowlatency-64k-dbgsym": "6.8.0-44.44.1", "linux-lowlatency-headers-6.8.0-44": "6.8.0-44.44.1", "linux-tools-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1", "linux-lowlatency-tools-common": "6.8.0-44.44.1", "linux-modules-iwlwifi-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-modules-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1", "linux-lowlatency-tools-host": "6.8.0-44.44.1", "linux-tools-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-lowlatency-cloud-tools-common": "6.8.0-44.44.1", "linux-headers-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1", "linux-modules-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-image-unsigned-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-buildinfo-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1", "linux-lowlatency-cloud-tools-6.8.0-44": "6.8.0-44.44.1", "linux-lowlatency-tools-6.8.0-44": "6.8.0-44.44.1", "linux-buildinfo-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-headers-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-lowlatency-lib-rust-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-cloud-tools-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-image-unsigned-6.8.0-44-lowlatency-dbgsym": "6.8.0-44.44.1" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-buildinfo-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-modules-6.8.0-1013-nvidia-64k": "6.8.0-1013.14", "linux-modules-nvidia-fs-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-image-unsigned-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-tools-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-modules-extra-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-headers-6.8.0-1013-nvidia-64k": "6.8.0-1013.14", "linux-buildinfo-6.8.0-1013-nvidia-64k": "6.8.0-1013.14", "linux-image-unsigned-6.8.0-1013-nvidia-64k": "6.8.0-1013.14", "linux-modules-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-image-unsigned-6.8.0-1013-nvidia-dbgsym": "6.8.0-1013.14", "linux-image-unsigned-6.8.0-1013-nvidia-64k-dbgsym": "6.8.0-1013.14", "linux-modules-nvidia-fs-6.8.0-1013-nvidia-64k": "6.8.0-1013.14", "linux-nvidia-headers-6.8.0-1013": "6.8.0-1013.14", "linux-nvidia-tools-6.8.0-1013": "6.8.0-1013.14", "linux-headers-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-nvidia-tools-host": "6.8.0-1013.14", "linux-tools-6.8.0-1013-nvidia-64k": "6.8.0-1013.14" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-nvidia-lowlatency-tools-host": "6.8.0-1013.14.1", "linux-buildinfo-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-nvidia-lowlatency-tools-6.8.0-1013": "6.8.0-1013.14.1", "linux-image-unsigned-6.8.0-1013-nvidia-lowlatency-64k-dbgsym": "6.8.0-1013.14.1", "linux-buildinfo-6.8.0-1013-nvidia-lowlatency-64k": "6.8.0-1013.14.1", "linux-modules-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-image-unsigned-6.8.0-1013-nvidia-lowlatency-dbgsym": "6.8.0-1013.14.1", "linux-tools-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-modules-extra-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-modules-nvidia-fs-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-image-unsigned-6.8.0-1013-nvidia-lowlatency-64k": "6.8.0-1013.14.1", "linux-nvidia-lowlatency-headers-6.8.0-1013": "6.8.0-1013.14.1", "linux-headers-6.8.0-1013-nvidia-lowlatency-64k": "6.8.0-1013.14.1", "linux-image-unsigned-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-headers-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-tools-6.8.0-1013-nvidia-lowlatency-64k": "6.8.0-1013.14.1", "linux-modules-6.8.0-1013-nvidia-lowlatency-64k": "6.8.0-1013.14.1", "linux-modules-nvidia-fs-6.8.0-1013-nvidia-lowlatency-64k": "6.8.0-1013.14.1" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-image-unsigned-6.8.0-1012-oem": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-oem-dbgsym": "6.8.0-1012.12", "linux-modules-ipu6-6.8.0-1012-oem": "6.8.0-1012.12", "linux-headers-6.8.0-1012-oem": "6.8.0-1012.12", "linux-oem-6.8-headers-6.8.0-1012": "6.8.0-1012.12", "linux-modules-6.8.0-1012-oem": "6.8.0-1012.12", "linux-modules-usbio-6.8.0-1012-oem": "6.8.0-1012.12", "linux-tools-6.8.0-1012-oem": "6.8.0-1012.12", "linux-modules-iwlwifi-6.8.0-1012-oem": "6.8.0-1012.12", "linux-oem-6.8-tools-6.8.0-1012": "6.8.0-1012.12", "linux-buildinfo-6.8.0-1012-oem": "6.8.0-1012.12" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-oracle-headers-6.8.0-1012": "6.8.0-1012.12", "linux-modules-iwlwifi-6.8.0-1012-oracle": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-oracle-64k": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-oracle-dbgsym": "6.8.0-1012.12", "linux-modules-6.8.0-1012-oracle-64k": "6.8.0-1012.12", "linux-modules-extra-6.8.0-1012-oracle": "6.8.0-1012.12", "linux-modules-extra-6.8.0-1012-oracle-64k": "6.8.0-1012.12", "linux-tools-6.8.0-1012-oracle": "6.8.0-1012.12", "linux-buildinfo-6.8.0-1012-oracle": "6.8.0-1012.12", "linux-buildinfo-6.8.0-1012-oracle-64k": "6.8.0-1012.12", "linux-headers-6.8.0-1012-oracle-64k": "6.8.0-1012.12", "linux-modules-6.8.0-1012-oracle": "6.8.0-1012.12", "linux-oracle-tools-6.8.0-1012": "6.8.0-1012.12", "linux-tools-6.8.0-1012-oracle-64k": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-oracle-64k-dbgsym": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-oracle": "6.8.0-1012.12", "linux-headers-6.8.0-1012-oracle": "6.8.0-1012.12" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-buildinfo-6.8.0-44-generic": "6.8.0-44.44.1", "linux-riscv-headers-6.8.0-44": "6.8.0-44.44.1", "linux-image-6.8.0-44-generic": "6.8.0-44.44.1", "linux-tools-6.8.0-44-generic": "6.8.0-44.44.1", "linux-image-6.8.0-44-generic-dbgsym": "6.8.0-44.44.1", "linux-modules-6.8.0-44-generic": "6.8.0-44.44.1", "linux-headers-6.8.0-44-generic": "6.8.0-44.44.1", "linux-riscv-tools-6.8.0-44": "6.8.0-44.44.1" } ] }