| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/10/17 12:56 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch modifies Documentation and SPARC64 architecture-specific files (arch/sparc/kernel/sys_sparc_64.c and arch/sparc/Kconfig) to add ELF ASLR support. Since the target architecture is amd64, all modified code is exclusive to the SPARC architecture and cannot be reached or executed on amd64.",
"WorthFuzzing": false
} |
| 1/1 | 2026/10/17 12:56 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit d3ddb5593f85f5ed8829cdc16244bafb1b707cbe\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Sat Oct 17 12:56:27 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/Documentation/features/vm/ELF-ASLR/arch-support.txt b/Documentation/features/vm/ELF-ASLR/arch-support.txt\nindex 57406c0d53531..d4a34c9fbae86 100644\n--- a/Documentation/features/vm/ELF-ASLR/arch-support.txt\n+++ b/Documentation/features/vm/ELF-ASLR/arch-support.txt\n@@ -24,7 +24,7 @@\n | riscv: | ok |\n | s390: | ok |\n | sh: | TODO |\n- | sparc: | TODO |\n+ | sparc: | ok |\n | um: | TODO |\n | x86: | ok |\n | xtensa: | TODO |\ndiff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig\nindex ab77d3f2536e1..82c989b9e7831 100644\n--- a/arch/sparc/Kconfig\n+++ b/arch/sparc/Kconfig\n@@ -71,6 +71,7 @@ config SPARC64\n \tdef_bool 64BIT\n \tselect ALTERNATE_USER_ADDRESS_SPACE\n \tselect ARCH_HAS_DELAY_TIMER\n+\tselect ARCH_HAS_ELF_RANDOMIZE\n \tselect HAVE_FUNCTION_TRACER\n \tselect HAVE_FUNCTION_GRAPH_TRACER\n \tselect HAVE_KRETPROBES\ndiff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c\nindex ecefcffcf7b10..2948d5769e768 100644\n--- a/arch/sparc/kernel/sys_sparc_64.c\n+++ b/arch/sparc/kernel/sys_sparc_64.c\n@@ -26,6 +26,8 @@\n #include \u003clinux/ipc.h\u003e\n #include \u003clinux/personality.h\u003e\n #include \u003clinux/random.h\u003e\n+#include \u003clinux/elf-randomize.h\u003e\n+#include \u003clinux/sizes.h\u003e\n #include \u003clinux/export.h\u003e\n #include \u003clinux/context_tracking.h\u003e\n #include \u003clinux/timex.h\u003e\n@@ -142,7 +144,7 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi\n \t}\n \n \tinfo.length = len;\n-\tinfo.low_limit = TASK_UNMAPPED_BASE;\n+\tinfo.low_limit = mm-\u003emmap_base;\n \tinfo.high_limit = min(task_size, VA_EXCLUDE_START);\n \tinfo.align_mask = get_align_mask(filp, flags);\n \tif (!file_hugepage)\n@@ -151,7 +153,7 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi\n \n \tif ((addr \u0026 ~PAGE_MASK) \u0026\u0026 task_size \u003e VA_EXCLUDE_END) {\n \t\tVM_BUG_ON(addr != -ENOMEM);\n-\t\tinfo.low_limit = VA_EXCLUDE_END;\n+\t\tinfo.low_limit = max(mm-\u003emmap_base, VA_EXCLUDE_END);\n \t\tinfo.high_limit = task_size;\n \t\taddr = vm_unmapped_area(\u0026info);\n \t}\n@@ -280,7 +282,7 @@ unsigned long get_fb_unmapped_area(struct file *filp, unsigned long orig_addr, u\n EXPORT_SYMBOL(get_fb_unmapped_area);\n \n /* Essentially the same as PowerPC. */\n-static unsigned long mmap_rnd(void)\n+unsigned long arch_mmap_rnd(void)\n {\n \tunsigned long rnd = 0UL;\n \n@@ -294,9 +296,17 @@ static unsigned long mmap_rnd(void)\n \treturn rnd \u003c\u003c PAGE_SHIFT;\n }\n \n+unsigned long arch_randomize_brk(struct mm_struct *mm)\n+{\n+\tif (test_thread_flag(TIF_32BIT))\n+\t\treturn randomize_page(mm-\u003ebrk, SZ_32M);\n+\n+\treturn randomize_page(mm-\u003ebrk, SZ_1G);\n+}\n+\n void arch_pick_mmap_layout(struct mm_struct *mm, const struct rlimit *rlim_stack)\n {\n-\tunsigned long random_factor = mmap_rnd();\n+\tunsigned long random_factor = arch_mmap_rnd();\n \tunsigned long gap;\n \n \t/*\n"
} |
| 2/1 | 2026/10/17 12:56 | agent | patch-evaluator |
0mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies Documentation and SPARC64 architecture-specific files (arch/sparc/kernel/sys_sparc_64.c and arch/sparc/Kconfig) to add ELF ASLR support. Since the target architecture is amd64, all modified code is exclusive to the SPARC architecture and cannot be reached or executed on amd64.",
"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 d3ddb5593f85f5ed8829cdc16244bafb1b707cbe
Author: syz-cluster <triage@syzkaller.com>
Date: Sat Oct 17 12:56:27 2026 +0000
syz-cluster: applied patch under review
diff --git a/Documentation/features/vm/ELF-ASLR/arch-support.txt b/Documentation/features/vm/ELF-ASLR/arch-support.txt
index 57406c0d53531..d4a34c9fbae86 100644
--- a/Documentation/features/vm/ELF-ASLR/arch-support.txt
+++ b/Documentation/features/vm/ELF-ASLR/arch-support.txt
@@ -24,7 +24,7 @@
| riscv: | ok |
| s390: | ok |
| sh: | TODO |
- | sparc: | TODO |
+ | sparc: | ok |
| um: | TODO |
| x86: | ok |
| xtensa: | TODO |
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index ab77d3f2536e1..82c989b9e7831 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -71,6 +71,7 @@ config SPARC64
def_bool 64BIT
select ALTERNATE_USER_ADDRESS_SPACE
select ARCH_HAS_DELAY_TIMER
+ select ARCH_HAS_ELF_RANDOMIZE
select HAVE_FUNCTION_TRACER
select HAVE_FUNCTION_GRAPH_TRACER
select HAVE_KRETPROBES
diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c
index ecefcffcf7b10..2948d5769e768 100644
--- a/arch/sparc/kernel/sys_sparc_64.c
+++ b/arch/sparc/kernel/sys_sparc_64.c
@@ -26,6 +26,8 @@
#include <linux/ipc.h>
#include <linux/personality.h>
#include <linux/random.h>
+#include <linux/elf-randomize.h>
+#include <linux/sizes.h>
#include <linux/export.h>
#include <linux/context_tracking.h>
#include <linux/timex.h>
@@ -142,7 +144,7 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
}
info.length = len;
- info.low_limit = TASK_UNMAPPED_BASE;
+ info.low_limit = mm->mmap_base;
info.high_limit = min(task_size, VA_EXCLUDE_START);
info.align_mask = get_align_mask(filp, flags);
if (!file_hugepage)
@@ -151,7 +153,7 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
if ((addr & ~PAGE_MASK) && task_size > VA_EXCLUDE_END) {
VM_BUG_ON(addr != -ENOMEM);
- info.low_limit = VA_EXCLUDE_END;
+ info.low_limit = max(mm->mmap_base, VA_EXCLUDE_END);
info.high_limit = task_size;
addr = vm_unmapped_area(&info);
}
@@ -280,7 +282,7 @@ unsigned long get_fb_unmapped_area(struct file *filp, unsigned long orig_addr, u
EXPORT_SYMBOL(get_fb_unmapped_area);
/* Essentially the same as PowerPC. */
-static unsigned long mmap_rnd(void)
+unsigned long arch_mmap_rnd(void)
{
unsigned long rnd = 0UL;
@@ -294,9 +296,17 @@ static unsigned long mmap_rnd(void)
return rnd << PAGE_SHIFT;
}
+unsigned long arch_randomize_brk(struct mm_struct *mm)
+{
+ if (test_thread_flag(TIF_32BIT))
+ return randomize_page(mm->brk, SZ_32M);
+
+ return randomize_page(mm->brk, SZ_1G);
+}
+
void arch_pick_mmap_layout(struct mm_struct *mm, const struct rlimit *rlim_stack)
{
- unsigned long random_factor = mmap_rnd();
+ unsigned long random_factor = arch_mmap_rnd();
unsigned long gap;
/*
|
| 3/2 | 2026/10/17 12:56 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 3999 output: 28 thoughts: 325 Thoughts: **Worth Fuzzing Evaluation** Okay, so I need to decide if this patch is a good candidate for fuzzing with syzkaller. Let's be methodical. First, I need to check the patch details and instructions carefully. The target architecture is amd64, which is important to keep in mind. Right, let's look at the files modified: *Documentation/features/vm/ELF-ASLR/arch-support.txt*, *arch/sparc/Kconfig*, and *arch/sparc/kernel/sys_sparc_64.c*. Wait a second... all of the code changes seem to be in `arch/sparc/` or `Documentation/`. But the target is amd64! This is suspicious. Okay, let me check the negative criteria in Section 2 of the instructions. The relevant one here is, and I quote, "Code paths exclusive to architectures other than the target architecture." Bingo. This looks like a prime candidate for `WorthFuzzing=false`. However, before I jump to a conclusion, I need to be absolutely sure. Is there *any* overlap, any shared code or logic, anywhere? Even if the bulk of the changes are arch-specific, maybe a tiny bit is generic. I need to be certain. I'll need to use `git log` and `git diff` to double-check, verify there's no common ground. Let's see what the diff *really* shows. I will verify it. |
| 4/2 | 2026/10/17 12:56 | tool | grepper |
0mArgs:{
"Expression": "ELF_RANDOMIZE",
"PathPrefixes": [
"include/"
]
}Results: {
"Output": "include/linux/elf-randomize.h-1-/* SPDX-License-Identifier: GPL-2.0 */\ninclude/linux/elf-randomize.h:2:#ifndef _ELF_RANDOMIZE_H\ninclude/linux/elf-randomize.h:3:#define _ELF_RANDOMIZE_H\ninclude/linux/elf-randomize.h-4-\ninclude/linux/elf-randomize.h=5=struct mm_struct;\ninclude/linux/elf-randomize.h-6-\ninclude/linux/elf-randomize.h:7:#ifndef CONFIG_ARCH_HAS_ELF_RANDOMIZE\ninclude/linux/elf-randomize.h-8-static inline unsigned long arch_mmap_rnd(void) { return 0; }\n"
} |
| 5/2 | 2026/10/17 12:56 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 4862 output: 107 thoughts: 1759 Thoughts: **Analysis of the Provided Commit** Okay, so I've been given a diff and need to determine its fuzzing worthiness. The immediate thing that jumps out is that I have the *entire* diff, no hunting for files needed. Excellent. Now, looking at the changes, I see: 1. `Documentation/features/vm/ELF-ASLR/arch-support.txt`: This is a documentation update. It appears to be an update to which architectures support ELF-ASLR. 2. `arch/sparc/Kconfig`: This is the Kconfig file for the SPARC architecture. Specifically, it seems like there are options relating to ELF randomization. 3. `arch/sparc/kernel/sys_sparc_64.c`: This is SPARC-specific kernel code. This file implements functions used in the sparc64 architecture, like memory mapping randomization and unmapped area allocation. My understanding is that I need to determine if these changes are relevant to fuzzing the *amd64* architecture. The instructions tell me that I can exclude it from fuzzing if it meets certain criteria. Looking at the guidelines I see two criteria that apply here: * "Non-kernel and non-executable changes": Documentation qualifies. * "Code paths exclusive to architectures other than the target architecture": SPARC code qualifies. Since all the modifications are either documentation or SPARC-specific code, which is not compiled for or executed on amd64, this commit is **not** worth fuzzing. I can therefore confidently set `WorthFuzzing` to `false`, with an empty `FocusSymbols` and `EnableConfigs`. The reasoning for this would be: "The patch modifies Documentation and SPARC64 architecture-specific files to add ELF ASLR support. Because the target architecture is amd64, all modified code is structurally unreachable." I should be ready to submit the results. |
| 6/2 | 2026/10/17 12:56 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch modifies Documentation and SPARC64 architecture-specific files (arch/sparc/kernel/sys_sparc_64.c and arch/sparc/Kconfig) to add ELF ASLR support. Since the target architecture is amd64, all modified code is exclusive to the SPARC architecture and cannot be reached or executed on amd64.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies Documentation and SPARC64 architecture-specific files (arch/sparc/kernel/sys_sparc_64.c and arch/sparc/Kconfig) to add ELF ASLR support. Since the target architecture is amd64, all modified code is exclusive to the SPARC architecture and cannot be reached or executed on amd64.",
"WorthFuzzing": false
} |
| 7/1 | 2026/10/17 12:56 | action | If |
0mArgs:{
"WorthFuzzing": false
}Results: null |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|