aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2022-01-19 18:54:52 +0100
committerThomas Gleixner <tglx@linutronix.de>2022-01-21 02:14:46 +0100
commita0af3d1104f752b6d0dba71788e3fddd67c857a7 (patch)
tree36825fdf15c9fd187c10b64c6ed3e63768db549a /tools/testing/selftests/bpf/prog_tests/autoload.c
parentMerge tag 'f2fs-for-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs (diff)
downloadwireguard-linux-a0af3d1104f752b6d0dba71788e3fddd67c857a7.tar.xz
wireguard-linux-a0af3d1104f752b6d0dba71788e3fddd67c857a7.zip
PCI/MSI: Prevent UAF in error path
When the core MSI allocation fails, then the PCI/MSI code uses an already freed MSI descriptor to unmask the MSI mask register in order to bring it back into reset state. Remove MSI_FLAG_FREE_MSI_DESCS from the PCI/MSI irqdomain flags and let the PCI/MSI code free the MSI descriptors after usage. Fixes: 0f62d941acf9 ("genirq/msi: Provide msi_domain_alloc/free_irqs_descs_locked()") Reported-by: Tong Zhang <ztong0001@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Tong Zhang <ztong0001@gmail.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://lore.kernel.org/r/87r1938vbn.ffs@tglx
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions