AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/10/30 18:27 flow patch-triage
0m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch exclusively modifies user-space kselftests under tools/testing/selftests/ (vfio and kvm), which does not affect the compiled kernel image (vmlinux) or kernel modules. Therefore, it is not worth fuzzing.",
  "WorthFuzzing": false
}

1/1 2026/10/30 18:27 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit deec79f6bbae23a59dc1af0b6d0446549b494dc4\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Fri Oct 30 18:27:40 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/tools/testing/selftests/kvm/irq_test.c b/tools/testing/selftests/kvm/irq_test.c\nindex 791e576c334cdb..f9c11d80a3063b 100644\n--- a/tools/testing/selftests/kvm/irq_test.c\n+++ b/tools/testing/selftests/kvm/irq_test.c\n@@ -148,22 +148,6 @@ static void kvm_set_empty_gsi_routing(struct kvm_vm *vm)\n \tvm_ioctl(vm, KVM_SET_GSI_ROUTING, \u0026routing);\n }\n \n-static const char *probe_iommu_type(void)\n-{\n-\tint io_fd;\n-\n-\tio_fd = open(\"/dev/iommu\", O_RDONLY);\n-\tif (io_fd \u003e= 0) {\n-\t\tclose(io_fd);\n-\t\treturn MODE_IOMMUFD;\n-\t}\n-\n-\tio_fd = __open_path_or_exit(\"/dev/vfio/vfio\", O_RDONLY,\n-\t\t\t\t    \"Is VFIO (or IOMMUFD) loaded and enabled?\");\n-\tclose(io_fd);\n-\treturn MODE_VFIO_TYPE1_IOMMU;\n-}\n-\n static void help(const char *name)\n {\n \tprintf(\"Usage: %s [-a] [-d \u003csegment:bus:device.function\u003e] [-e] [-h] [-i nr_irqs] [-m] [-n] [-t iommu_type] [-v nr_vcpus] [-x]\\n\", name);\n@@ -266,8 +250,7 @@ int main(int argc, char **argv)\n \t}\n \n \tif (device_bdf) {\n-\t\tif (!iommu_type)\n-\t\t\tiommu_type = probe_iommu_type();\n+\t\tTEST_REQUIRE(iommu_mode_is_available(iommu_type));\n \t\tiommu = iommu_init(iommu_type);\n \t\tdevice = vfio_pci_device_init(device_bdf, iommu);\n \t\tmsix = vfio_setup_msi(device);\ndiff --git a/tools/testing/selftests/vfio/lib/include/libvfio/iommu.h b/tools/testing/selftests/vfio/lib/include/libvfio/iommu.h\nindex e9a3386a47193a..04b0377a0f8fc2 100644\n--- a/tools/testing/selftests/vfio/lib/include/libvfio/iommu.h\n+++ b/tools/testing/selftests/vfio/lib/include/libvfio/iommu.h\n@@ -15,8 +15,6 @@ struct iommu_mode {\n \tunsigned long iommu_type;\n };\n \n-extern const char *default_iommu_mode;\n-\n struct dma_region {\n \tstruct list_head link;\n \tvoid *vaddr;\n@@ -32,9 +30,20 @@ struct iommu {\n \tstruct list_head dma_regions;\n };\n \n+/*\n+ * Pass NULL for iommu_mode to automatically pick the mode most likely to work\n+ * on the current system. Use iommu_mode_is_available() to check that the mode\n+ * is available before calling iommu_init(), e.g. to skip the test if not.\n+ */\n struct iommu *iommu_init(const char *iommu_mode);\n void iommu_cleanup(struct iommu *iommu);\n \n+/*\n+ * Returns true if the given IOMMU mode is usable on the current system. If\n+ * iommu_mode is NULL, returns true if any IOMMU mode is usable.\n+ */\n+bool iommu_mode_is_available(const char *iommu_mode);\n+\n int __iommu_map(struct iommu *iommu, struct dma_region *region);\n \n static inline void iommu_map(struct iommu *iommu, struct dma_region *region)\n@@ -79,4 +88,21 @@ FIXTURE_VARIANT_ADD_IOMMU_MODE(iommufd_compat_type1, ##__VA_ARGS__); \\\n FIXTURE_VARIANT_ADD_IOMMU_MODE(iommufd_compat_type1v2, ##__VA_ARGS__); \\\n FIXTURE_VARIANT_ADD_IOMMU_MODE(iommufd, ##__VA_ARGS__)\n \n+/*\n+ * Skip the current kselftest harness test if the given IOMMU mode is not\n+ * available on the current system, or if no IOMMU mode is available if\n+ * _iommu_mode is NULL. Like SKIP(), statement is executed after marking the\n+ * test as skipped (e.g. \"return\"), and this can be used anywhere SKIP() can be\n+ * used.\n+ */\n+#define SKIP_IF_IOMMU_MODE_UNAVAILABLE(statement, _iommu_mode) do {\t\t\\\n+\tconst char *__iommu_mode = (_iommu_mode);\t\t\t\t\\\n+\t\t\t\t\t\t\t\t\t\t\\\n+\tif (!iommu_mode_is_available(__iommu_mode))\t\t\t\t\\\n+\t\tSKIP(statement, \"%s%s\",\t\t\t\t\t\t\\\n+\t\t     __iommu_mode ? \"IOMMU mode not available: \" :\t\t\\\n+\t\t\t\t    \"No IOMMU mode is available\",\t\t\\\n+\t\t     __iommu_mode ?: \"\");\t\t\t\t\t\\\n+} while (0)\n+\n #endif /* SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_IOMMU_H */\ndiff --git a/tools/testing/selftests/vfio/lib/iommu.c b/tools/testing/selftests/vfio/lib/iommu.c\nindex b6f3c5c84e01aa..2c7cf6dc919a7e 100644\n--- a/tools/testing/selftests/vfio/lib/iommu.c\n+++ b/tools/testing/selftests/vfio/lib/iommu.c\n@@ -20,14 +20,15 @@\n #include \"../../../kselftest.h\"\n #include \u003clibvfio.h\u003e\n \n-const char *default_iommu_mode = MODE_IOMMUFD;\n-\n-/* Reminder: Keep in sync with FIXTURE_VARIANT_ADD_ALL_IOMMU_MODES(). */\n+/*\n+ * Ordered by preference, i.e. iommu_init(NULL) picks the first mode in this\n+ * list that is available on the current system.\n+ *\n+ * Reminder: Keep in sync with FIXTURE_VARIANT_ADD_ALL_IOMMU_MODES().\n+ */\n static const struct iommu_mode iommu_modes[] = {\n \t{\n-\t\t.name = MODE_VFIO_TYPE1_IOMMU,\n-\t\t.container_path = \"/dev/vfio/vfio\",\n-\t\t.iommu_type = VFIO_TYPE1_IOMMU,\n+\t\t.name = MODE_IOMMUFD,\n \t},\n \t{\n \t\t.name = MODE_VFIO_TYPE1V2_IOMMU,\n@@ -35,8 +36,8 @@ static const struct iommu_mode iommu_modes[] = {\n \t\t.iommu_type = VFIO_TYPE1v2_IOMMU,\n \t},\n \t{\n-\t\t.name = MODE_IOMMUFD_COMPAT_TYPE1,\n-\t\t.container_path = \"/dev/iommu\",\n+\t\t.name = MODE_VFIO_TYPE1_IOMMU,\n+\t\t.container_path = \"/dev/vfio/vfio\",\n \t\t.iommu_type = VFIO_TYPE1_IOMMU,\n \t},\n \t{\n@@ -45,16 +46,56 @@ static const struct iommu_mode iommu_modes[] = {\n \t\t.iommu_type = VFIO_TYPE1v2_IOMMU,\n \t},\n \t{\n-\t\t.name = MODE_IOMMUFD,\n+\t\t.name = MODE_IOMMUFD_COMPAT_TYPE1,\n+\t\t.container_path = \"/dev/iommu\",\n+\t\t.iommu_type = VFIO_TYPE1_IOMMU,\n \t},\n };\n \n-static const struct iommu_mode *lookup_iommu_mode(const char *iommu_mode)\n+static bool iommu_mode_probe(const struct iommu_mode *mode)\n+{\n+\tconst char *path = mode-\u003econtainer_path ?: \"/dev/iommu\";\n+\tbool available;\n+\tint fd;\n+\n+\t/* iommufd mode requires VFIO device cdevs (CONFIG_VFIO_DEVICE_CDEV). */\n+\tif (!mode-\u003econtainer_path \u0026\u0026 access(\"/dev/vfio/devices\", F_OK))\n+\t\treturn false;\n+\n+\tfd = open(path, O_RDWR);\n+\tif (fd \u003c 0)\n+\t\treturn false;\n+\n+\tavailable = !mode-\u003econtainer_path ||\n+\t\t    ioctl(fd, VFIO_CHECK_EXTENSION, mode-\u003eiommu_type) \u003e 0;\n+\n+\tclose(fd);\n+\treturn available;\n+}\n+\n+/* Returns the most preferred IOMMU mode that is available, or NULL if none. */\n+static const struct iommu_mode *iommu_mode_detect(void)\n+{\n+\tint i;\n+\n+\tfor (i = 0; i \u003c ARRAY_SIZE(iommu_modes); i++) {\n+\t\tif (iommu_mode_probe(\u0026iommu_modes[i]))\n+\t\t\treturn \u0026iommu_modes[i];\n+\t}\n+\n+\treturn NULL;\n+}\n+\n+/*\n+ * Returns the IOMMU mode with the given name, or if iommu_mode is NULL, the\n+ * most preferred IOMMU mode that is available (or NULL if none).\n+ */\n+static const struct iommu_mode *iommu_mode_lookup(const char *iommu_mode)\n {\n \tint i;\n \n \tif (!iommu_mode)\n-\t\tiommu_mode = default_iommu_mode;\n+\t\treturn iommu_mode_detect();\n \n \tfor (i = 0; i \u003c ARRAY_SIZE(iommu_modes); i++) {\n \t\tif (strcmp(iommu_mode, iommu_modes[i].name))\n@@ -66,6 +107,14 @@ static const struct iommu_mode *lookup_iommu_mode(const char *iommu_mode)\n \tVFIO_FAIL(\"Unrecognized IOMMU mode: %s\\n\", iommu_mode);\n }\n \n+bool iommu_mode_is_available(const char *iommu_mode)\n+{\n+\tif (!iommu_mode)\n+\t\treturn iommu_mode_detect();\n+\n+\treturn iommu_mode_probe(iommu_mode_lookup(iommu_mode));\n+}\n+\n int __iommu_hva2iova(struct iommu *iommu, void *vaddr, iova_t *iova)\n {\n \tstruct dma_region *region;\n@@ -425,7 +474,9 @@ struct iommu *iommu_init(const char *iommu_mode)\n \n \tINIT_LIST_HEAD(\u0026iommu-\u003edma_regions);\n \n-\tiommu-\u003emode = lookup_iommu_mode(iommu_mode);\n+\tiommu-\u003emode = iommu_mode_lookup(iommu_mode);\n+\tVFIO_ASSERT_NOT_NULL(iommu-\u003emode,\n+\t\t\t     \"No IOMMU mode available. Is VFIO (or IOMMUFD) loaded and enabled?\\n\");\n \n \tcontainer_path = iommu-\u003emode-\u003econtainer_path;\n \tif (container_path) {\ndiff --git a/tools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c b/tools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c\nindex d7f25ef7767158..add7d388193029 100644\n--- a/tools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c\n+++ b/tools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c\n@@ -64,6 +64,8 @@ FIXTURE_VARIANT_ADD_ALL_IOMMU_MODES();\n \n FIXTURE_SETUP(vfio_dma_mapping_mmio_test)\n {\n+\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant-\u003eiommu_mode);\n+\n \tself-\u003eiommu = iommu_init(variant-\u003eiommu_mode);\n \tself-\u003edevice = vfio_pci_device_init(device_bdf, self-\u003eiommu);\n \tself-\u003eiova_allocator = iova_allocator_init(self-\u003eiommu);\ndiff --git a/tools/testing/selftests/vfio/vfio_dma_mapping_test.c b/tools/testing/selftests/vfio/vfio_dma_mapping_test.c\nindex 7d0de8c79de13f..e42170aecf6eeb 100644\n--- a/tools/testing/selftests/vfio/vfio_dma_mapping_test.c\n+++ b/tools/testing/selftests/vfio/vfio_dma_mapping_test.c\n@@ -119,6 +119,8 @@ FIXTURE_VARIANT_ADD_ALL_IOMMU_MODES(anonymous_hugetlb_1gb, SZ_1G, MAP_HUGETLB |\n \n FIXTURE_SETUP(vfio_dma_mapping_test)\n {\n+\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant-\u003eiommu_mode);\n+\n \tself-\u003eiommu = iommu_init(variant-\u003eiommu_mode);\n \tself-\u003edevice = vfio_pci_device_init(device_bdf, self-\u003eiommu);\n \tself-\u003eiova_allocator = iova_allocator_init(self-\u003eiommu);\n@@ -228,6 +230,8 @@ FIXTURE_SETUP(vfio_dma_map_limit_test)\n \tiova_t last_iova;\n \tu32 nranges;\n \n+\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant-\u003eiommu_mode);\n+\n \t/*\n \t * Over-allocate mmap by double the size to provide enough backing vaddr\n \t * for overflow tests\ndiff --git a/tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c b/tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c\nindex e1a54e153cd340..8a98c86096be8a 100644\n--- a/tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c\n+++ b/tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c\n@@ -44,6 +44,8 @@ FIXTURE_SETUP(vfio_pci_device_init_perf_test)\n {\n \tint i;\n \n+\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant-\u003eiommu_mode);\n+\n \tself-\u003eiommu = iommu_init(variant-\u003eiommu_mode);\n \tself-\u003ethreads = calloc_assert(nr_devices, sizeof(self-\u003ethreads[0]));\n \tself-\u003ethread_args = calloc_assert(nr_devices, sizeof(self-\u003ethread_args[0]));\ndiff --git a/tools/testing/selftests/vfio/vfio_pci_device_test.c b/tools/testing/selftests/vfio/vfio_pci_device_test.c\nindex 93c11fd5e08182..1b1baa1e1c854a 100644\n--- a/tools/testing/selftests/vfio/vfio_pci_device_test.c\n+++ b/tools/testing/selftests/vfio/vfio_pci_device_test.c\n@@ -29,7 +29,9 @@ FIXTURE(vfio_pci_device_test) {\n \n FIXTURE_SETUP(vfio_pci_device_test)\n {\n-\tself-\u003eiommu = iommu_init(default_iommu_mode);\n+\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, NULL);\n+\n+\tself-\u003eiommu = iommu_init(NULL);\n \tself-\u003edevice = vfio_pci_device_init(device_bdf, self-\u003eiommu);\n }\n \n@@ -121,7 +123,9 @@ FIXTURE_VARIANT_ADD(vfio_pci_irq_test, msix) {\n \n FIXTURE_SETUP(vfio_pci_irq_test)\n {\n-\tself-\u003eiommu = iommu_init(default_iommu_mode);\n+\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, NULL);\n+\n+\tself-\u003eiommu = iommu_init(NULL);\n \tself-\u003edevice = vfio_pci_device_init(device_bdf, self-\u003eiommu);\n }\n \ndiff --git a/tools/testing/selftests/vfio/vfio_pci_driver_test.c b/tools/testing/selftests/vfio/vfio_pci_driver_test.c\nindex 9538a3a436a6fd..710f9e7684d953 100644\n--- a/tools/testing/selftests/vfio/vfio_pci_driver_test.c\n+++ b/tools/testing/selftests/vfio/vfio_pci_driver_test.c\n@@ -80,6 +80,8 @@ FIXTURE_SETUP(vfio_pci_driver_test)\n {\n \tstruct vfio_pci_driver *driver;\n \n+\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant-\u003eiommu_mode);\n+\n \tself-\u003eiommu = iommu_init(variant-\u003eiommu_mode);\n \tself-\u003edevice = vfio_pci_device_init(device_bdf, self-\u003eiommu);\n \tself-\u003eiova_allocator = iova_allocator_init(self-\u003eiommu);\n@@ -255,7 +257,7 @@ static bool device_has_selftests_driver(const char *bdf)\n \tstruct iommu *iommu;\n \tbool has_driver;\n \n-\tiommu = iommu_init(default_iommu_mode);\n+\tiommu = iommu_init(NULL);\n \tdevice = vfio_pci_device_init(device_bdf, iommu);\n \n \thas_driver = !!device-\u003edriver.ops;\n@@ -270,6 +272,11 @@ int main(int argc, char *argv[])\n {\n \tdevice_bdf = vfio_selftests_get_bdf(\u0026argc, argv);\n \n+\tif (!iommu_mode_is_available(NULL)) {\n+\t\tfprintf(stderr, \"No IOMMU mode is available\\n\");\n+\t\treturn KSFT_SKIP;\n+\t}\n+\n \tif (!device_has_selftests_driver(device_bdf)) {\n \t\tfprintf(stderr, \"No driver found for device %s\\n\", device_bdf);\n \t\treturn KSFT_SKIP;\ndiff --git a/tools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c b/tools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c\nindex f3a018b8699d7a..32a1e651c81533 100644\n--- a/tools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c\n+++ b/tools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c\n@@ -90,6 +90,8 @@ FIXTURE_VARIANT_ADD_ALL_IOMMU_MODES(null_uuid, NULL);\n \n FIXTURE_SETUP(vfio_pci_sriov_uapi_test)\n {\n+\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant-\u003eiommu_mode);\n+\n \tself-\u003eiommu = iommu_init(variant-\u003eiommu_mode);\n \n \tself-\u003epf_token = UUID_1;\n@@ -163,6 +165,8 @@ TEST(failed_second_open_does_not_clobber_token)\n \tstruct iommu *iommu;\n \tint ret;\n \n+\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, MODE_IOMMUFD);\n+\n \tiommu = iommu_init(MODE_IOMMUFD);\n \n \t/* Create and bind PF using UUID_1 */\n"
}

2/1 2026/10/30 18:27 agent patch-evaluator
0m Model:
core

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch exclusively modifies user-space kselftests under tools/testing/selftests/ (vfio and kvm), which does not affect the compiled kernel image (vmlinux) or kernel modules. Therefore, it is not worth fuzzing.",
  "WorthFuzzing": false
}

Instruction:
You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.

================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.

- REACHABILITY IS THE PRIMARY GATE:
  Fuzzing can only discover bugs in code that can actually execute in standard virtualized
  environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
  If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
  regardless of whether it adds assertions or complex logic.

- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
  Patch authors routinely label changes as "cleanups", "refactorings", or state
  "No functional change intended". Do NOT take these claims at face value.
  Code refactorings that rearrange logic, introduce helper functions, or alter state management
  in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
  If reachable executable code is modified or refactored, it MUST be fuzzed.

- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
  When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
  BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
  Even if the author believes the invariant always holds, fuzzing is essential to verify whether
  an unusual sequence of operations can violate it.

================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:

- Non-kernel and non-executable changes:
  * Modifications to Documentation/, comments, or spelling fixes.
  * User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
    that do not affect the compiled kernel image (vmlinux) or kernel modules.
  * Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
    that do not alter control flow or data structures.
  * Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
  * Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
    ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
  * Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
    physical PCI hot-unplug or manual sysfs driver unbinding.
  * Code paths exclusive to architectures other than the target architecture.

================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
  * Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
    BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
  * Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
  * Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
  * Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).

================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:

- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
  Do NOT list generic, ubiquitous functions called by almost every program in the corpus
  (including, but not limited to: general memory allocators and deallocators, page fault
  and trap handlers, or core synchronization primitives; this is not an exhaustive list).
  Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
  which severely dilutes fuzzing effort away from the actual changes.

- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
  List functions that specifically implement the logic being added or altered, or direct API entrypoints
  for the subsystem feature under review.

- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
  Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
  distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
  If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
  functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).

================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
Target architecture: amd64

For your convenience, here is the diff of the changes:
commit deec79f6bbae23a59dc1af0b6d0446549b494dc4
Author: syz-cluster <triage@syzkaller.com>
Date:   Fri Oct 30 18:27:40 2026 +0000

    syz-cluster: applied patch under review

diff --git a/tools/testing/selftests/kvm/irq_test.c b/tools/testing/selftests/kvm/irq_test.c
index 791e576c334cdb..f9c11d80a3063b 100644
--- a/tools/testing/selftests/kvm/irq_test.c
+++ b/tools/testing/selftests/kvm/irq_test.c
@@ -148,22 +148,6 @@ static void kvm_set_empty_gsi_routing(struct kvm_vm *vm)
 	vm_ioctl(vm, KVM_SET_GSI_ROUTING, &routing);
 }
 
-static const char *probe_iommu_type(void)
-{
-	int io_fd;
-
-	io_fd = open("/dev/iommu", O_RDONLY);
-	if (io_fd >= 0) {
-		close(io_fd);
-		return MODE_IOMMUFD;
-	}
-
-	io_fd = __open_path_or_exit("/dev/vfio/vfio", O_RDONLY,
-				    "Is VFIO (or IOMMUFD) loaded and enabled?");
-	close(io_fd);
-	return MODE_VFIO_TYPE1_IOMMU;
-}
-
 static void help(const char *name)
 {
 	printf("Usage: %s [-a] [-d <segment:bus:device.function>] [-e] [-h] [-i nr_irqs] [-m] [-n] [-t iommu_type] [-v nr_vcpus] [-x]\n", name);
@@ -266,8 +250,7 @@ int main(int argc, char **argv)
 	}
 
 	if (device_bdf) {
-		if (!iommu_type)
-			iommu_type = probe_iommu_type();
+		TEST_REQUIRE(iommu_mode_is_available(iommu_type));
 		iommu = iommu_init(iommu_type);
 		device = vfio_pci_device_init(device_bdf, iommu);
 		msix = vfio_setup_msi(device);
diff --git a/tools/testing/selftests/vfio/lib/include/libvfio/iommu.h b/tools/testing/selftests/vfio/lib/include/libvfio/iommu.h
index e9a3386a47193a..04b0377a0f8fc2 100644
--- a/tools/testing/selftests/vfio/lib/include/libvfio/iommu.h
+++ b/tools/testing/selftests/vfio/lib/include/libvfio/iommu.h
@@ -15,8 +15,6 @@ struct iommu_mode {
 	unsigned long iommu_type;
 };
 
-extern const char *default_iommu_mode;
-
 struct dma_region {
 	struct list_head link;
 	void *vaddr;
@@ -32,9 +30,20 @@ struct iommu {
 	struct list_head dma_regions;
 };
 
+/*
+ * Pass NULL for iommu_mode to automatically pick the mode most likely to work
+ * on the current system. Use iommu_mode_is_available() to check that the mode
+ * is available before calling iommu_init(), e.g. to skip the test if not.
+ */
 struct iommu *iommu_init(const char *iommu_mode);
 void iommu_cleanup(struct iommu *iommu);
 
+/*
+ * Returns true if the given IOMMU mode is usable on the current system. If
+ * iommu_mode is NULL, returns true if any IOMMU mode is usable.
+ */
+bool iommu_mode_is_available(const char *iommu_mode);
+
 int __iommu_map(struct iommu *iommu, struct dma_region *region);
 
 static inline void iommu_map(struct iommu *iommu, struct dma_region *region)
@@ -79,4 +88,21 @@ FIXTURE_VARIANT_ADD_IOMMU_MODE(iommufd_compat_type1, ##__VA_ARGS__); \
 FIXTURE_VARIANT_ADD_IOMMU_MODE(iommufd_compat_type1v2, ##__VA_ARGS__); \
 FIXTURE_VARIANT_ADD_IOMMU_MODE(iommufd, ##__VA_ARGS__)
 
+/*
+ * Skip the current kselftest harness test if the given IOMMU mode is not
+ * available on the current system, or if no IOMMU mode is available if
+ * _iommu_mode is NULL. Like SKIP(), statement is executed after marking the
+ * test as skipped (e.g. "return"), and this can be used anywhere SKIP() can be
+ * used.
+ */
+#define SKIP_IF_IOMMU_MODE_UNAVAILABLE(statement, _iommu_mode) do {		\
+	const char *__iommu_mode = (_iommu_mode);				\
+										\
+	if (!iommu_mode_is_available(__iommu_mode))				\
+		SKIP(statement, "%s%s",						\
+		     __iommu_mode ? "IOMMU mode not available: " :		\
+				    "No IOMMU mode is available",		\
+		     __iommu_mode ?: "");					\
+} while (0)
+
 #endif /* SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_IOMMU_H */
diff --git a/tools/testing/selftests/vfio/lib/iommu.c b/tools/testing/selftests/vfio/lib/iommu.c
index b6f3c5c84e01aa..2c7cf6dc919a7e 100644
--- a/tools/testing/selftests/vfio/lib/iommu.c
+++ b/tools/testing/selftests/vfio/lib/iommu.c
@@ -20,14 +20,15 @@
 #include "../../../kselftest.h"
 #include <libvfio.h>
 
-const char *default_iommu_mode = MODE_IOMMUFD;
-
-/* Reminder: Keep in sync with FIXTURE_VARIANT_ADD_ALL_IOMMU_MODES(). */
+/*
+ * Ordered by preference, i.e. iommu_init(NULL) picks the first mode in this
+ * list that is available on the current system.
+ *
+ * Reminder: Keep in sync with FIXTURE_VARIANT_ADD_ALL_IOMMU_MODES().
+ */
 static const struct iommu_mode iommu_modes[] = {
 	{
-		.name = MODE_VFIO_TYPE1_IOMMU,
-		.container_path = "/dev/vfio/vfio",
-		.iommu_type = VFIO_TYPE1_IOMMU,
+		.name = MODE_IOMMUFD,
 	},
 	{
 		.name = MODE_VFIO_TYPE1V2_IOMMU,
@@ -35,8 +36,8 @@ static const struct iommu_mode iommu_modes[] = {
 		.iommu_type = VFIO_TYPE1v2_IOMMU,
 	},
 	{
-		.name = MODE_IOMMUFD_COMPAT_TYPE1,
-		.container_path = "/dev/iommu",
+		.name = MODE_VFIO_TYPE1_IOMMU,
+		.container_path = "/dev/vfio/vfio",
 		.iommu_type = VFIO_TYPE1_IOMMU,
 	},
 	{
@@ -45,16 +46,56 @@ static const struct iommu_mode iommu_modes[] = {
 		.iommu_type = VFIO_TYPE1v2_IOMMU,
 	},
 	{
-		.name = MODE_IOMMUFD,
+		.name = MODE_IOMMUFD_COMPAT_TYPE1,
+		.container_path = "/dev/iommu",
+		.iommu_type = VFIO_TYPE1_IOMMU,
 	},
 };
 
-static const struct iommu_mode *lookup_iommu_mode(const char *iommu_mode)
+static bool iommu_mode_probe(const struct iommu_mode *mode)
+{
+	const char *path = mode->container_path ?: "/dev/iommu";
+	bool available;
+	int fd;
+
+	/* iommufd mode requires VFIO device cdevs (CONFIG_VFIO_DEVICE_CDEV). */
+	if (!mode->container_path && access("/dev/vfio/devices", F_OK))
+		return false;
+
+	fd = open(path, O_RDWR);
+	if (fd < 0)
+		return false;
+
+	available = !mode->container_path ||
+		    ioctl(fd, VFIO_CHECK_EXTENSION, mode->iommu_type) > 0;
+
+	close(fd);
+	return available;
+}
+
+/* Returns the most preferred IOMMU mode that is available, or NULL if none. */
+static const struct iommu_mode *iommu_mode_detect(void)
+{
+	int i;
+
+	for (i = 0; i < ARRAY_SIZE(iommu_modes); i++) {
+		if (iommu_mode_probe(&iommu_modes[i]))
+			return &iommu_modes[i];
+	}
+
+	return NULL;
+}
+
+/*
+ * Returns the IOMMU mode with the given name, or if iommu_mode is NULL, the
+ * most preferred IOMMU mode that is available (or NULL if none).
+ */
+static const struct iommu_mode *iommu_mode_lookup(const char *iommu_mode)
 {
 	int i;
 
 	if (!iommu_mode)
-		iommu_mode = default_iommu_mode;
+		return iommu_mode_detect();
 
 	for (i = 0; i < ARRAY_SIZE(iommu_modes); i++) {
 		if (strcmp(iommu_mode, iommu_modes[i].name))
@@ -66,6 +107,14 @@ static const struct iommu_mode *lookup_iommu_mode(const char *iommu_mode)
 	VFIO_FAIL("Unrecognized IOMMU mode: %s\n", iommu_mode);
 }
 
+bool iommu_mode_is_available(const char *iommu_mode)
+{
+	if (!iommu_mode)
+		return iommu_mode_detect();
+
+	return iommu_mode_probe(iommu_mode_lookup(iommu_mode));
+}
+
 int __iommu_hva2iova(struct iommu *iommu, void *vaddr, iova_t *iova)
 {
 	struct dma_region *region;
@@ -425,7 +474,9 @@ struct iommu *iommu_init(const char *iommu_mode)
 
 	INIT_LIST_HEAD(&iommu->dma_regions);
 
-	iommu->mode = lookup_iommu_mode(iommu_mode);
+	iommu->mode = iommu_mode_lookup(iommu_mode);
+	VFIO_ASSERT_NOT_NULL(iommu->mode,
+			     "No IOMMU mode available. Is VFIO (or IOMMUFD) loaded and enabled?\n");
 
 	container_path = iommu->mode->container_path;
 	if (container_path) {
diff --git a/tools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c b/tools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c
index d7f25ef7767158..add7d388193029 100644
--- a/tools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c
+++ b/tools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c
@@ -64,6 +64,8 @@ FIXTURE_VARIANT_ADD_ALL_IOMMU_MODES();
 
 FIXTURE_SETUP(vfio_dma_mapping_mmio_test)
 {
+	SKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant->iommu_mode);
+
 	self->iommu = iommu_init(variant->iommu_mode);
 	self->device = vfio_pci_device_init(device_bdf, self->iommu);
 	self->iova_allocator = iova_allocator_init(self->iommu);
diff --git a/tools/testing/selftests/vfio/vfio_dma_mapping_test.c b/tools/testing/selftests/vfio/vfio_dma_mapping_test.c
index 7d0de8c79de13f..e42170aecf6eeb 100644
--- a/tools/testing/selftests/vfio/vfio_dma_mapping_test.c
+++ b/tools/testing/selftests/vfio/vfio_dma_mapping_test.c
@@ -119,6 +119,8 @@ FIXTURE_VARIANT_ADD_ALL_IOMMU_MODES(anonymous_hugetlb_1gb, SZ_1G, MAP_HUGETLB |
 
 FIXTURE_SETUP(vfio_dma_mapping_test)
 {
+	SKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant->iommu_mode);
+
 	self->iommu = iommu_init(variant->iommu_mode);
 	self->device = vfio_pci_device_init(device_bdf, self->iommu);
 	self->iova_allocator = iova_allocator_init(self->iommu);
@@ -228,6 +230,8 @@ FIXTURE_SETUP(vfio_dma_map_limit_test)
 	iova_t last_iova;
 	u32 nranges;
 
+	SKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant->iommu_mode);
+
 	/*
 	 * Over-allocate mmap by double the size to provide enough backing vaddr
 	 * for overflow tests
diff --git a/tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c b/tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
index e1a54e153cd340..8a98c86096be8a 100644
--- a/tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
+++ b/tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
@@ -44,6 +44,8 @@ FIXTURE_SETUP(vfio_pci_device_init_perf_test)
 {
 	int i;
 
+	SKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant->iommu_mode);
+
 	self->iommu = iommu_init(variant->iommu_mode);
 	self->threads = calloc_assert(nr_devices, sizeof(self->threads[0]));
 	self->thread_args = calloc_assert(nr_devices, sizeof(self->thread_args[0]));
diff --git a/tools/testing/selftests/vfio/vfio_pci_device_test.c b/tools/testing/selftests/vfio/vfio_pci_device_test.c
index 93c11fd5e08182..1b1baa1e1c854a 100644
--- a/tools/testing/selftests/vfio/vfio_pci_device_test.c
+++ b/tools/testing/selftests/vfio/vfio_pci_device_test.c
@@ -29,7 +29,9 @@ FIXTURE(vfio_pci_device_test) {
 
 FIXTURE_SETUP(vfio_pci_device_test)
 {
-	self->iommu = iommu_init(default_iommu_mode);
+	SKIP_IF_IOMMU_MODE_UNAVAILABLE(return, NULL);
+
+	self->iommu = iommu_init(NULL);
 	self->device = vfio_pci_device_init(device_bdf, self->iommu);
 }
 
@@ -121,7 +123,9 @@ FIXTURE_VARIANT_ADD(vfio_pci_irq_test, msix) {
 
 FIXTURE_SETUP(vfio_pci_irq_test)
 {
-	self->iommu = iommu_init(default_iommu_mode);
+	SKIP_IF_IOMMU_MODE_UNAVAILABLE(return, NULL);
+
+	self->iommu = iommu_init(NULL);
 	self->device = vfio_pci_device_init(device_bdf, self->iommu);
 }
 
diff --git a/tools/testing/selftests/vfio/vfio_pci_driver_test.c b/tools/testing/selftests/vfio/vfio_pci_driver_test.c
index 9538a3a436a6fd..710f9e7684d953 100644
--- a/tools/testing/selftests/vfio/vfio_pci_driver_test.c
+++ b/tools/testing/selftests/vfio/vfio_pci_driver_test.c
@@ -80,6 +80,8 @@ FIXTURE_SETUP(vfio_pci_driver_test)
 {
 	struct vfio_pci_driver *driver;
 
+	SKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant->iommu_mode);
+
 	self->iommu = iommu_init(variant->iommu_mode);
 	self->device = vfio_pci_device_init(device_bdf, self->iommu);
 	self->iova_allocator = iova_allocator_init(self->iommu);
@@ -255,7 +257,7 @@ static bool device_has_selftests_driver(const char *bdf)
 	struct iommu *iommu;
 	bool has_driver;
 
-	iommu = iommu_init(default_iommu_mode);
+	iommu = iommu_init(NULL);
 	device = vfio_pci_device_init(device_bdf, iommu);
 
 	has_driver = !!device->driver.ops;
@@ -270,6 +272,11 @@ int main(int argc, char *argv[])
 {
 	device_bdf = vfio_selftests_get_bdf(&argc, argv);
 
+	if (!iommu_mode_is_available(NULL)) {
+		fprintf(stderr, "No IOMMU mode is available\n");
+		return KSFT_SKIP;
+	}
+
 	if (!device_has_selftests_driver(device_bdf)) {
 		fprintf(stderr, "No driver found for device %s\n", device_bdf);
 		return KSFT_SKIP;
diff --git a/tools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c b/tools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c
index f3a018b8699d7a..32a1e651c81533 100644
--- a/tools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c
+++ b/tools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c
@@ -90,6 +90,8 @@ FIXTURE_VARIANT_ADD_ALL_IOMMU_MODES(null_uuid, NULL);
 
 FIXTURE_SETUP(vfio_pci_sriov_uapi_test)
 {
+	SKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant->iommu_mode);
+
 	self->iommu = iommu_init(variant->iommu_mode);
 
 	self->pf_token = UUID_1;
@@ -163,6 +165,8 @@ TEST(failed_second_open_does_not_clobber_token)
 	struct iommu *iommu;
 	int ret;
 
+	SKIP_IF_IOMMU_MODE_UNAVAILABLE(return, MODE_IOMMUFD);
+
 	iommu = iommu_init(MODE_IOMMUFD);
 
 	/* Create and bind PF using UUID_1 */

3/2 2026/10/30 18:27 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 8329
							output: 26
							thoughts: 933
						

Thoughts:
**Reviewing the Patch Commit for WorthFuzzing Determination**

Okay, let's dive into this patch commit, `deec79f6bbae23a59dc1af0b6d0446549b494dc4`, titled "syz-cluster: applied patch under review". My primary concern is whether this warrants further fuzzing, so I need to quickly assess if it meets the "WorthFuzzing=false" criteria. The files touched are all located within `tools/testing/selftests/`, which immediately raises a flag for me.

My immediate thought is, "Self-tests? That's usually a good sign we *don't* need to prioritize this for fuzzing." Now, I'll go through the instructions (Section 2, in this case) to confirm this. The negative criteria specifically list:

*   User-space directories, self-tests, samples, or scripts that do *not* affect the compiled kernel image (vmlinux) or kernel modules.

Bingo! The changes are confined to `tools/testing/selftests/`, therefore, it doesn't seem to affect the core kernel image or modules.

Let's do a quick double-check to be sure nothing else was modified, just to be thorough. I don't see any obvious tooling to use (like `git log --stat` or `git diff`) but I do have `grepper` and `read-file` which might do the job. However, I can clearly see the diff in the prompt, and the listed files are:

*   `tools/testing/selftests/kvm/irq_test.c`
*   `tools/testing/selftests/vfio/lib/include/libvfio/iommu.h`
*   `tools/testing/selftests/vfio/lib/iommu.c`
*   `tools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c`
*   `tools/testing/selftests/vfio/vfio_dma_mapping_test.c`
*   `tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c`
*   `tools/testing/selftests/vfio/vfio_pci_device_test.c`
*   `tools/testing/selftests/vfio/vfio_pci_driver_test.c`
*   `tools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c`

Okay, everything remains within `tools/testing/selftests/`. I am ready to conclude. Given all the changes are within this self-test directory, and nothing indicates any kernel-level modification, I'm confident in saying that this commit likely warrants a `WorthFuzzing=false` designation. I'll just do a final check using `grepper` just to ensure that the change of `SKIP_IF_IOMMU_MODE_UNAVAILABLE` does not appear anywhere outside of `tools/`.



4/2 2026/10/30 18:27 tool grepper
0m Args:
{
  "Expression": "SKIP_IF_IOMMU_MODE_UNAVAILABLE"
}

Results:
{
  "Output": "tools/testing/selftests/vfio/lib/include/libvfio/iommu.h=89=FIXTURE_VARIANT_ADD_IOMMU_MODE(iommufd, ##__VA_ARGS__)\n--\ntools/testing/selftests/vfio/lib/include/libvfio/iommu.h-97- */\ntools/testing/selftests/vfio/lib/include/libvfio/iommu.h:98:#define SKIP_IF_IOMMU_MODE_UNAVAILABLE(statement, _iommu_mode) do {\t\t\\\ntools/testing/selftests/vfio/lib/include/libvfio/iommu.h-99-\tconst char *__iommu_mode = (_iommu_mode);\t\t\t\t\\\n--\ntools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c=65=FIXTURE_SETUP(vfio_dma_mapping_mmio_test)\ntools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c-66-{\ntools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c:67:\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant-\u003eiommu_mode);\ntools/testing/selftests/vfio/vfio_dma_mapping_mmio_test.c-68-\n--\ntools/testing/selftests/vfio/vfio_dma_mapping_test.c=120=FIXTURE_SETUP(vfio_dma_mapping_test)\ntools/testing/selftests/vfio/vfio_dma_mapping_test.c-121-{\ntools/testing/selftests/vfio/vfio_dma_mapping_test.c:122:\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant-\u003eiommu_mode);\ntools/testing/selftests/vfio/vfio_dma_mapping_test.c-123-\n--\ntools/testing/selftests/vfio/vfio_dma_mapping_test.c=225=FIXTURE_SETUP(vfio_dma_map_limit_test)\n--\ntools/testing/selftests/vfio/vfio_dma_mapping_test.c-232-\ntools/testing/selftests/vfio/vfio_dma_mapping_test.c:233:\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant-\u003eiommu_mode);\ntools/testing/selftests/vfio/vfio_dma_mapping_test.c-234-\n--\ntools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c=43=FIXTURE_SETUP(vfio_pci_device_init_perf_test)\n--\ntools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c-46-\ntools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c:47:\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant-\u003eiommu_mode);\ntools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c-48-\n--\ntools/testing/selftests/vfio/vfio_pci_device_test.c=30=FIXTURE_SETUP(vfio_pci_device_test)\ntools/testing/selftests/vfio/vfio_pci_device_test.c-31-{\ntools/testing/selftests/vfio/vfio_pci_device_test.c:32:\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, NULL);\ntools/testing/selftests/vfio/vfio_pci_device_test.c-33-\n--\ntools/testing/selftests/vfio/vfio_pci_device_test.c=124=FIXTURE_SETUP(vfio_pci_irq_test)\ntools/testing/selftests/vfio/vfio_pci_device_test.c-125-{\ntools/testing/selftests/vfio/vfio_pci_device_test.c:126:\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, NULL);\ntools/testing/selftests/vfio/vfio_pci_device_test.c-127-\n--\ntools/testing/selftests/vfio/vfio_pci_driver_test.c=79=FIXTURE_SETUP(vfio_pci_driver_test)\n--\ntools/testing/selftests/vfio/vfio_pci_driver_test.c-82-\ntools/testing/selftests/vfio/vfio_pci_driver_test.c:83:\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant-\u003eiommu_mode);\ntools/testing/selftests/vfio/vfio_pci_driver_test.c-84-\n--\ntools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c=91=FIXTURE_SETUP(vfio_pci_sriov_uapi_test)\ntools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c-92-{\ntools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c:93:\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, variant-\u003eiommu_mode);\ntools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c-94-\n--\ntools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c=162=TEST(failed_second_open_does_not_clobber_token)\n--\ntools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c-167-\ntools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c:168:\tSKIP_IF_IOMMU_MODE_UNAVAILABLE(return, MODE_IOMMUFD);\ntools/testing/selftests/vfio/vfio_pci_sriov_uapi_test.c-169-\n"
}

5/2 2026/10/30 18:27 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 11636
							output: 84
							thoughts: 227
						

Thoughts:
**My Assessment of the Patch's Fuzzing Suitability**

Okay, let's break this down. This patch is *clearly* limited to self-tests, specifically within `tools/testing/selftests/kvm/` and `tools/testing/selftests/vfio/`. That's the only scope.

The key criteria here – and I understand this intimately – is the "WorthFuzzing" decision. The documentation I'm referring to is explicit: `WorthFuzzing=false` is appropriate *only* when the changes are confined to certain categories. Specifically, these categories exclude any modifications that would be relevant to fuzzing.

My reading of the relevant documentation confirms this; specifically: "Non-kernel and non-executable changes", which includes User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/) that do not affect the compiled kernel image (vmlinux) or kernel modules.

Consequently, given the location of this patch and the explicit exclusion criteria, `WorthFuzzing` has to be `false`. There is nothing here that impacts the kernel itself. The `FocusSymbols` and `EnableConfigs` are empty as they should be, because the patch's changes are confined to user-space self-tests, a category that is not relevant to kernel fuzzing. The reasoning is straightforward: user-space tests are *designed* to exercise functionality *outside* of the core kernel image and modules. Therefore, this patch is definitively *not* worth fuzzing.



6/2 2026/10/30 18:28 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch exclusively modifies user-space kselftests under tools/testing/selftests/ (vfio and kvm), which does not affect the compiled kernel image (vmlinux) or kernel modules. Therefore, it is not worth fuzzing.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch exclusively modifies user-space kselftests under tools/testing/selftests/ (vfio and kvm), which does not affect the compiled kernel image (vmlinux) or kernel modules. Therefore, it is not worth fuzzing.",
  "WorthFuzzing": false
}

7/1 2026/10/30 18:28 action If
0m Args:
{
  "WorthFuzzing": false
}

Results:
null

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)