| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/07/19 13:46 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": [
"KVM"
],
"FocusSymbols": [
"uv_alloc_stor_var",
"uv_free_stor_var",
"do_secure_storage_access",
"ex_handler_zeropad"
],
"Reasoning": "The patch introduces new memory allocation logic for s390 KVM Protected Virtualization (PV) VMs and adds support for DCACHE_WORD_ACCESS with a new exception handler for unaligned zero-padded loads. These are functional changes in reachable core kernel and KVM code.",
"WorthFuzzing": true
} |
| 1/1 | 2026/07/19 13:46 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 8f6df8b72d8cc6f489b7228e09b64d1e1f551962\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Sun Jul 19 13:46:12 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/arch/s390/Kconfig b/arch/s390/Kconfig\nindex 84404e6778d504..fe81c539ef2ffc 100644\n--- a/arch/s390/Kconfig\n+++ b/arch/s390/Kconfig\n@@ -163,6 +163,7 @@ config S390\n \tselect ARCH_WANTS_THP_SWAP\n \tselect BUILDTIME_TABLE_SORT\n \tselect CLONE_BACKWARDS2\n+\tselect DCACHE_WORD_ACCESS if !KMSAN\n \tselect DYNAMIC_FTRACE if FUNCTION_TRACER\n \tselect FUNCTION_ALIGNMENT_8B if CC_IS_GCC\n \tselect FUNCTION_ALIGNMENT_16B if !CC_IS_GCC\ndiff --git a/arch/s390/include/asm/asm-extable.h b/arch/s390/include/asm/asm-extable.h\nindex 99748c20e76713..d23ea0c94e4ea6 100644\n--- a/arch/s390/include/asm/asm-extable.h\n+++ b/arch/s390/include/asm/asm-extable.h\n@@ -12,6 +12,7 @@\n #define EX_TYPE_UA_FAULT\t3\n #define EX_TYPE_UA_LOAD_REG\t5\n #define EX_TYPE_UA_LOAD_REGPAIR\t6\n+#define EX_TYPE_ZEROPAD\t\t7\n #define EX_TYPE_FPC\t\t8\n #define EX_TYPE_UA_MVCOS_TO\t9\n #define EX_TYPE_UA_MVCOS_FROM\t10\n@@ -79,6 +80,9 @@\n #define EX_TABLE_UA_LOAD_REGPAIR(_fault, _target, _regerr, _regzero)\t\\\n \t__EX_TABLE(__ex_table, _fault, _target, EX_TYPE_UA_LOAD_REGPAIR, _regerr, _regzero, 0)\n \n+#define EX_TABLE_ZEROPAD(_fault, _target, _regdata, _regaddr)\t\t\\\n+\t__EX_TABLE(__ex_table, _fault, _target, EX_TYPE_ZEROPAD, _regdata, _regaddr, 0)\n+\n #define EX_TABLE_FPC(_fault, _target)\t\t\t\t\t\\\n \t__EX_TABLE(__ex_table, _fault, _target, EX_TYPE_FPC, __stringify(%%r0), __stringify(%%r0), 0)\n \ndiff --git a/arch/s390/include/asm/uv.h b/arch/s390/include/asm/uv.h\nindex d919e69662f584..153fed63adda3c 100644\n--- a/arch/s390/include/asm/uv.h\n+++ b/arch/s390/include/asm/uv.h\n@@ -635,6 +635,8 @@ int s390_wiggle_split_folio(struct mm_struct *mm, struct folio *folio);\n int __make_folio_secure(struct folio *folio, struct uv_cb_header *uvcb);\n int uv_convert_from_secure(unsigned long paddr);\n int uv_convert_from_secure_folio(struct folio *folio);\n+void *uv_alloc_stor_var(unsigned long size);\n+void uv_free_stor_var(void *stor_var);\n \n void setup_uv(void);\n \ndiff --git a/arch/s390/include/asm/word-at-a-time.h b/arch/s390/include/asm/word-at-a-time.h\nindex e9287036392d08..eaa19dee769941 100644\n--- a/arch/s390/include/asm/word-at-a-time.h\n+++ b/arch/s390/include/asm/word-at-a-time.h\n@@ -4,6 +4,7 @@\n \n #include \u003clinux/bitops.h\u003e\n #include \u003clinux/wordpart.h\u003e\n+#include \u003casm/asm-extable.h\u003e\n #include \u003casm/bitsperlong.h\u003e\n \n struct word_at_a_time {\n@@ -40,4 +41,25 @@ static inline unsigned long zero_bytemask(unsigned long data)\n \treturn ~1UL \u003c\u003c data;\n }\n \n+/*\n+ * Load an unaligned word from kernel space.\n+ *\n+ * In the (very unlikely) case of the word being a page-crosser\n+ * and the next page not being mapped, take the exception and\n+ * return zeroes in the non-existing part.\n+ */\n+static inline unsigned long load_unaligned_zeropad(const void *addr)\n+{\n+\tunsigned long data;\n+\n+\tasm_inline volatile(\n+\t\t\"0:\tlg\t%[data],0(%[addr])\\n\"\n+\t\t\"1:\tnopr\t%%r7\\n\"\n+\t\tEX_TABLE_ZEROPAD(0b, 1b, %[data], %[addr])\n+\t\tEX_TABLE_ZEROPAD(1b, 1b, %[data], %[addr])\n+\t\t: [data] \"=d\" (data)\n+\t\t: [addr] \"a\" (addr), \"m\" (*(unsigned long *)addr));\n+\treturn data;\n+}\n+\n #endif /* _ASM_WORD_AT_A_TIME_H */\ndiff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c\nindex a284f98d971680..d1cdc5ae5e270c 100644\n--- a/arch/s390/kernel/uv.c\n+++ b/arch/s390/kernel/uv.c\n@@ -16,6 +16,7 @@\n #include \u003clinux/swap.h\u003e\n #include \u003clinux/pagewalk.h\u003e\n #include \u003clinux/backing-dev.h\u003e\n+#include \u003clinux/vmalloc.h\u003e\n #include \u003casm/facility.h\u003e\n #include \u003casm/sections.h\u003e\n #include \u003casm/uv.h\u003e\n@@ -209,6 +210,70 @@ int uv_convert_from_secure_pte(pte_t pte)\n \treturn uv_convert_from_secure_folio(pfn_folio(pte_pfn(pte)));\n }\n \n+static int uv_free_range_cb(pte_t *ptep, unsigned long addr, void *data)\n+{\n+\tpte_t pte = ptep_get(ptep);\n+\n+\tif (!pte_present(pte))\n+\t\treturn 0;\n+\t/*\n+\t * Note: do not update the pte here, since there is no code which\n+\t * accesses the memory range, besides bugs. The invalidation of ptes\n+\t * and TLB flushing is deferred like for regular vfree() calls.\n+\t */\n+\t__free_page(pte_page(pte));\n+\treturn 0;\n+}\n+\n+void uv_free_stor_var(void *stor_var)\n+{\n+\tunsigned long addr, size;\n+\tstruct vm_struct *area;\n+\n+\tif (!stor_var)\n+\t\treturn;\n+\tarea = find_vm_area(stor_var);\n+\tif (WARN_ON_ONCE(!area || !(area-\u003eflags \u0026 VM_SPARSE)))\n+\t\treturn;\n+\tsize = get_vm_area_size(area);\n+\taddr = (unsigned long)area-\u003eaddr;\n+\tapply_to_existing_page_range(\u0026init_mm, addr, size, uv_free_range_cb, NULL);\n+\tfree_vm_area(area);\n+}\n+EXPORT_SYMBOL_FOR_MODULES(uv_free_stor_var, \"kvm\");\n+\n+static int uv_alloc_range_cb(pte_t *ptep, unsigned long addr, void *data)\n+{\n+\tstruct page *page;\n+\tpte_t pte;\n+\n+\tpage = alloc_page(GFP_KERNEL_ACCOUNT | __GFP_ZERO);\n+\tif (!page)\n+\t\treturn -ENOMEM;\n+\tpte = __pte(page_to_phys(page) | pgprot_val(PAGE_KERNEL));\n+\tset_pte(ptep, pte);\n+\treturn 0;\n+}\n+\n+void *uv_alloc_stor_var(unsigned long size)\n+{\n+\tstruct vm_struct *area;\n+\tunsigned long addr;\n+\n+\tsize = PAGE_ALIGN(size);\n+\tarea = get_vm_area(size, VM_SPARSE);\n+\tif (!area)\n+\t\treturn NULL;\n+\taddr = (unsigned long)area-\u003eaddr;\n+\tif (apply_to_page_range(\u0026init_mm, addr, size, uv_alloc_range_cb, NULL))\n+\t\tgoto out;\n+\treturn area-\u003eaddr;\n+out:\n+\tuv_free_stor_var(area-\u003eaddr);\n+\treturn NULL;\n+}\n+EXPORT_SYMBOL_FOR_MODULES(uv_alloc_stor_var, \"kvm\");\n+\n /*\n * Calculate the expected ref_count for a folio that would otherwise have no\n * further pins. This was cribbed from similar functions in other places in\ndiff --git a/arch/s390/kvm/pv.c b/arch/s390/kvm/pv.c\nindex 1beacc841ca850..dc5ac29b4c3118 100644\n--- a/arch/s390/kvm/pv.c\n+++ b/arch/s390/kvm/pv.c\n@@ -337,7 +337,7 @@ int kvm_s390_pv_create_cpu(struct kvm_vcpu *vcpu, u16 *rc, u16 *rrc)\n /* only free resources when the destroy was successful */\n static void kvm_s390_pv_dealloc_vm(struct kvm *kvm)\n {\n-\tvfree(kvm-\u003earch.pv.stor_var);\n+\tuv_free_stor_var(kvm-\u003earch.pv.stor_var);\n \tfree_pages(kvm-\u003earch.pv.stor_base,\n \t\t get_order(uv_info.guest_base_stor_len));\n \tkvm_s390_clear_pv_state(kvm);\n@@ -369,7 +369,7 @@ static int kvm_s390_pv_alloc_vm(struct kvm *kvm)\n \t/* Allocate variable storage */\n \tvlen = ALIGN(virt * ((npages * PAGE_SIZE) / HPAGE_SIZE), PAGE_SIZE);\n \tvlen += uv_info.guest_virt_base_stor_len;\n-\tkvm-\u003earch.pv.stor_var = vzalloc(vlen);\n+\tkvm-\u003earch.pv.stor_var = uv_alloc_stor_var(vlen);\n \tif (!kvm-\u003earch.pv.stor_var)\n \t\tgoto out_err;\n \treturn 0;\n@@ -414,7 +414,7 @@ static int kvm_s390_pv_dispose_one_leftover(struct kvm *kvm,\n \t */\n \tfree_pages(leftover-\u003estor_base, get_order(uv_info.guest_base_stor_len));\n \tfree_pages(leftover-\u003eold_gmap_table, CRST_ALLOC_ORDER);\n-\tvfree(leftover-\u003estor_var);\n+\tuv_free_stor_var(leftover-\u003estor_var);\n done_fast:\n \tatomic_dec(\u0026kvm-\u003emm-\u003econtext.protected_count);\n \treturn 0;\ndiff --git a/arch/s390/mm/extable.c b/arch/s390/mm/extable.c\nindex 063b4346742d96..7498e858c40195 100644\n--- a/arch/s390/mm/extable.c\n+++ b/arch/s390/mm/extable.c\n@@ -50,6 +50,22 @@ static bool ex_handler_ua_load_reg(const struct exception_table_entry *ex,\n \treturn true;\n }\n \n+static bool ex_handler_zeropad(const struct exception_table_entry *ex, struct pt_regs *regs)\n+{\n+\tunsigned int reg_addr = FIELD_GET(EX_DATA_REG_ADDR, ex-\u003edata);\n+\tunsigned int reg_data = FIELD_GET(EX_DATA_REG_ERR, ex-\u003edata);\n+\tunsigned long data, addr, offset;\n+\n+\taddr = regs-\u003egprs[reg_addr];\n+\toffset = addr \u0026 (sizeof(unsigned long) - 1);\n+\taddr \u0026= ~(sizeof(unsigned long) - 1);\n+\tdata = *(unsigned long *)addr;\n+\tdata \u003c\u003c= BITS_PER_BYTE * offset;\n+\tregs-\u003egprs[reg_data] = data;\n+\tregs-\u003epsw.addr = extable_fixup(ex);\n+\treturn true;\n+}\n+\n static bool ex_handler_fpc(const struct exception_table_entry *ex, struct pt_regs *regs)\n {\n \tfpu_sfpc(0);\n@@ -118,6 +134,8 @@ bool fixup_exception(struct pt_regs *regs)\n \t\treturn ex_handler_ua_load_reg(ex, false, regs);\n \tcase EX_TYPE_UA_LOAD_REGPAIR:\n \t\treturn ex_handler_ua_load_reg(ex, true, regs);\n+\tcase EX_TYPE_ZEROPAD:\n+\t\treturn ex_handler_zeropad(ex, regs);\n \tcase EX_TYPE_FPC:\n \t\treturn ex_handler_fpc(ex, regs);\n \tcase EX_TYPE_UA_MVCOS_TO:\ndiff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c\nindex 028aeb9c48d6ff..776549d55c94a2 100644\n--- a/arch/s390/mm/fault.c\n+++ b/arch/s390/mm/fault.c\n@@ -409,9 +409,9 @@ void do_secure_storage_access(struct pt_regs *regs)\n {\n \tunion teid teid = { .val = regs-\u003eint_parm_long };\n \tunsigned long addr = get_fault_address(regs);\n+\tstruct mm_struct *mm = current-\u003emm;\n \tstruct vm_area_struct *vma;\n \tstruct folio_walk fw;\n-\tstruct mm_struct *mm;\n \tstruct folio *folio;\n \tint rc;\n \n@@ -438,13 +438,9 @@ void do_secure_storage_access(struct pt_regs *regs)\n \t\tpanic(\"Unexpected PGM 0x3d with TEID bit 61=0\");\n \t}\n \tif (is_kernel_fault(regs)) {\n-\t\tfolio = virt_to_folio((void *)addr);\n-\t\tif (unlikely(!folio_try_get(folio)))\n-\t\t\treturn;\n-\t\trc = uv_convert_from_secure(folio_to_phys(folio));\n-\t\tif (!rc)\n-\t\t\tclear_bit(PG_arch_1, \u0026folio-\u003eflags.f);\n-\t\tfolio_put(folio);\n+\t\tif (is_vmalloc_addr((void *)addr))\n+\t\t\treturn handle_fault_error_nolock(regs, 0);\n+\t\trc = uv_convert_from_secure(__pa(addr));\n \t\t/*\n \t\t * There are some valid fixup types for kernel\n \t\t * accesses to donated secure memory. zeropad is one\n@@ -453,13 +449,11 @@ void do_secure_storage_access(struct pt_regs *regs)\n \t\tif (rc)\n \t\t\treturn handle_fault_error_nolock(regs, 0);\n \t} else {\n-\t\tif (faulthandler_disabled())\n+\t\tif (faulthandler_disabled() || !mm)\n \t\t\treturn handle_fault_error_nolock(regs, 0);\n-\t\tmm = current-\u003emm;\n-\t\tmmap_read_lock(mm);\n-\t\tvma = find_vma(mm, addr);\n+\t\tvma = lock_mm_and_find_vma(mm, addr, regs);\n \t\tif (!vma)\n-\t\t\treturn handle_fault_error(regs, SEGV_MAPERR);\n+\t\t\treturn handle_fault_error_nolock(regs, SEGV_MAPERR);\n \t\tfolio = folio_walk_start(\u0026fw, vma, addr, 0);\n \t\tif (!folio) {\n \t\t\tmmap_read_unlock(mm);\n"
} |
| 2/1 | 2026/07/19 13:46 | agent | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: {
"EnableConfigs": [
"KVM"
],
"FocusSymbols": [
"uv_alloc_stor_var",
"uv_free_stor_var",
"do_secure_storage_access",
"ex_handler_zeropad"
],
"Reasoning": "The patch introduces new memory allocation logic for s390 KVM Protected Virtualization (PV) VMs and adds support for DCACHE_WORD_ACCESS with a new exception handler for unaligned zero-padded loads. These are functional changes in reachable core kernel and KVM code.",
"WorthFuzzing": true
}Instruction: You are an expert Linux kernel maintainer. Your job is to review a provided patch series and determine if it makes functional changes to the kernel that should be fuzzed. IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively use your code access tools to examine the actual source code and confirm any assumptions. Return WorthFuzzing=false if the patch only contains: - Modifications to Documentation/, Kconfig files, or code comments. - Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints. - Changes to numeric constants or macros that do not functionally alter execution flow. - Code paths that are impossible to reach in virtualized environments like GCE or QEMU, even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim). If it modifies reachable core kernel logic, drivers, or architectures, use your code search tools to verify the code can be executed, then return WorthFuzzing=true. When returning WorthFuzzing=true, you MUST ALSO: 1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols. Avoid listing generic hot-path functions to prevent skewed test distributions. 2. Identify any specific CONFIG_ options required to properly test this new/modified feature. Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions. Do not list too generic configs (we already have them enabled). Only list those that specifically cover the modified code. List them in the EnableConfigs output array, and DO NOT add a '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: For your convenience, here is the diff of the changes:
commit 8f6df8b72d8cc6f489b7228e09b64d1e1f551962
Author: syz-cluster <triage@syzkaller.com>
Date: Sun Jul 19 13:46:12 2026 +0000
syz-cluster: applied patch under review
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index 84404e6778d504..fe81c539ef2ffc 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -163,6 +163,7 @@ config S390
select ARCH_WANTS_THP_SWAP
select BUILDTIME_TABLE_SORT
select CLONE_BACKWARDS2
+ select DCACHE_WORD_ACCESS if !KMSAN
select DYNAMIC_FTRACE if FUNCTION_TRACER
select FUNCTION_ALIGNMENT_8B if CC_IS_GCC
select FUNCTION_ALIGNMENT_16B if !CC_IS_GCC
diff --git a/arch/s390/include/asm/asm-extable.h b/arch/s390/include/asm/asm-extable.h
index 99748c20e76713..d23ea0c94e4ea6 100644
--- a/arch/s390/include/asm/asm-extable.h
+++ b/arch/s390/include/asm/asm-extable.h
@@ -12,6 +12,7 @@
#define EX_TYPE_UA_FAULT 3
#define EX_TYPE_UA_LOAD_REG 5
#define EX_TYPE_UA_LOAD_REGPAIR 6
+#define EX_TYPE_ZEROPAD 7
#define EX_TYPE_FPC 8
#define EX_TYPE_UA_MVCOS_TO 9
#define EX_TYPE_UA_MVCOS_FROM 10
@@ -79,6 +80,9 @@
#define EX_TABLE_UA_LOAD_REGPAIR(_fault, _target, _regerr, _regzero) \
__EX_TABLE(__ex_table, _fault, _target, EX_TYPE_UA_LOAD_REGPAIR, _regerr, _regzero, 0)
+#define EX_TABLE_ZEROPAD(_fault, _target, _regdata, _regaddr) \
+ __EX_TABLE(__ex_table, _fault, _target, EX_TYPE_ZEROPAD, _regdata, _regaddr, 0)
+
#define EX_TABLE_FPC(_fault, _target) \
__EX_TABLE(__ex_table, _fault, _target, EX_TYPE_FPC, __stringify(%%r0), __stringify(%%r0), 0)
diff --git a/arch/s390/include/asm/uv.h b/arch/s390/include/asm/uv.h
index d919e69662f584..153fed63adda3c 100644
--- a/arch/s390/include/asm/uv.h
+++ b/arch/s390/include/asm/uv.h
@@ -635,6 +635,8 @@ int s390_wiggle_split_folio(struct mm_struct *mm, struct folio *folio);
int __make_folio_secure(struct folio *folio, struct uv_cb_header *uvcb);
int uv_convert_from_secure(unsigned long paddr);
int uv_convert_from_secure_folio(struct folio *folio);
+void *uv_alloc_stor_var(unsigned long size);
+void uv_free_stor_var(void *stor_var);
void setup_uv(void);
diff --git a/arch/s390/include/asm/word-at-a-time.h b/arch/s390/include/asm/word-at-a-time.h
index e9287036392d08..eaa19dee769941 100644
--- a/arch/s390/include/asm/word-at-a-time.h
+++ b/arch/s390/include/asm/word-at-a-time.h
@@ -4,6 +4,7 @@
#include <linux/bitops.h>
#include <linux/wordpart.h>
+#include <asm/asm-extable.h>
#include <asm/bitsperlong.h>
struct word_at_a_time {
@@ -40,4 +41,25 @@ static inline unsigned long zero_bytemask(unsigned long data)
return ~1UL << data;
}
+/*
+ * Load an unaligned word from kernel space.
+ *
+ * In the (very unlikely) case of the word being a page-crosser
+ * and the next page not being mapped, take the exception and
+ * return zeroes in the non-existing part.
+ */
+static inline unsigned long load_unaligned_zeropad(const void *addr)
+{
+ unsigned long data;
+
+ asm_inline volatile(
+ "0: lg %[data],0(%[addr])\n"
+ "1: nopr %%r7\n"
+ EX_TABLE_ZEROPAD(0b, 1b, %[data], %[addr])
+ EX_TABLE_ZEROPAD(1b, 1b, %[data], %[addr])
+ : [data] "=d" (data)
+ : [addr] "a" (addr), "m" (*(unsigned long *)addr));
+ return data;
+}
+
#endif /* _ASM_WORD_AT_A_TIME_H */
diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c
index a284f98d971680..d1cdc5ae5e270c 100644
--- a/arch/s390/kernel/uv.c
+++ b/arch/s390/kernel/uv.c
@@ -16,6 +16,7 @@
#include <linux/swap.h>
#include <linux/pagewalk.h>
#include <linux/backing-dev.h>
+#include <linux/vmalloc.h>
#include <asm/facility.h>
#include <asm/sections.h>
#include <asm/uv.h>
@@ -209,6 +210,70 @@ int uv_convert_from_secure_pte(pte_t pte)
return uv_convert_from_secure_folio(pfn_folio(pte_pfn(pte)));
}
+static int uv_free_range_cb(pte_t *ptep, unsigned long addr, void *data)
+{
+ pte_t pte = ptep_get(ptep);
+
+ if (!pte_present(pte))
+ return 0;
+ /*
+ * Note: do not update the pte here, since there is no code which
+ * accesses the memory range, besides bugs. The invalidation of ptes
+ * and TLB flushing is deferred like for regular vfree() calls.
+ */
+ __free_page(pte_page(pte));
+ return 0;
+}
+
+void uv_free_stor_var(void *stor_var)
+{
+ unsigned long addr, size;
+ struct vm_struct *area;
+
+ if (!stor_var)
+ return;
+ area = find_vm_area(stor_var);
+ if (WARN_ON_ONCE(!area || !(area->flags & VM_SPARSE)))
+ return;
+ size = get_vm_area_size(area);
+ addr = (unsigned long)area->addr;
+ apply_to_existing_page_range(&init_mm, addr, size, uv_free_range_cb, NULL);
+ free_vm_area(area);
+}
+EXPORT_SYMBOL_FOR_MODULES(uv_free_stor_var, "kvm");
+
+static int uv_alloc_range_cb(pte_t *ptep, unsigned long addr, void *data)
+{
+ struct page *page;
+ pte_t pte;
+
+ page = alloc_page(GFP_KERNEL_ACCOUNT | __GFP_ZERO);
+ if (!page)
+ return -ENOMEM;
+ pte = __pte(page_to_phys(page) | pgprot_val(PAGE_KERNEL));
+ set_pte(ptep, pte);
+ return 0;
+}
+
+void *uv_alloc_stor_var(unsigned long size)
+{
+ struct vm_struct *area;
+ unsigned long addr;
+
+ size = PAGE_ALIGN(size);
+ area = get_vm_area(size, VM_SPARSE);
+ if (!area)
+ return NULL;
+ addr = (unsigned long)area->addr;
+ if (apply_to_page_range(&init_mm, addr, size, uv_alloc_range_cb, NULL))
+ goto out;
+ return area->addr;
+out:
+ uv_free_stor_var(area->addr);
+ return NULL;
+}
+EXPORT_SYMBOL_FOR_MODULES(uv_alloc_stor_var, "kvm");
+
/*
* Calculate the expected ref_count for a folio that would otherwise have no
* further pins. This was cribbed from similar functions in other places in
diff --git a/arch/s390/kvm/pv.c b/arch/s390/kvm/pv.c
index 1beacc841ca850..dc5ac29b4c3118 100644
--- a/arch/s390/kvm/pv.c
+++ b/arch/s390/kvm/pv.c
@@ -337,7 +337,7 @@ int kvm_s390_pv_create_cpu(struct kvm_vcpu *vcpu, u16 *rc, u16 *rrc)
/* only free resources when the destroy was successful */
static void kvm_s390_pv_dealloc_vm(struct kvm *kvm)
{
- vfree(kvm->arch.pv.stor_var);
+ uv_free_stor_var(kvm->arch.pv.stor_var);
free_pages(kvm->arch.pv.stor_base,
get_order(uv_info.guest_base_stor_len));
kvm_s390_clear_pv_state(kvm);
@@ -369,7 +369,7 @@ static int kvm_s390_pv_alloc_vm(struct kvm *kvm)
/* Allocate variable storage */
vlen = ALIGN(virt * ((npages * PAGE_SIZE) / HPAGE_SIZE), PAGE_SIZE);
vlen += uv_info.guest_virt_base_stor_len;
- kvm->arch.pv.stor_var = vzalloc(vlen);
+ kvm->arch.pv.stor_var = uv_alloc_stor_var(vlen);
if (!kvm->arch.pv.stor_var)
goto out_err;
return 0;
@@ -414,7 +414,7 @@ static int kvm_s390_pv_dispose_one_leftover(struct kvm *kvm,
*/
free_pages(leftover->stor_base, get_order(uv_info.guest_base_stor_len));
free_pages(leftover->old_gmap_table, CRST_ALLOC_ORDER);
- vfree(leftover->stor_var);
+ uv_free_stor_var(leftover->stor_var);
done_fast:
atomic_dec(&kvm->mm->context.protected_count);
return 0;
diff --git a/arch/s390/mm/extable.c b/arch/s390/mm/extable.c
index 063b4346742d96..7498e858c40195 100644
--- a/arch/s390/mm/extable.c
+++ b/arch/s390/mm/extable.c
@@ -50,6 +50,22 @@ static bool ex_handler_ua_load_reg(const struct exception_table_entry *ex,
return true;
}
+static bool ex_handler_zeropad(const struct exception_table_entry *ex, struct pt_regs *regs)
+{
+ unsigned int reg_addr = FIELD_GET(EX_DATA_REG_ADDR, ex->data);
+ unsigned int reg_data = FIELD_GET(EX_DATA_REG_ERR, ex->data);
+ unsigned long data, addr, offset;
+
+ addr = regs->gprs[reg_addr];
+ offset = addr & (sizeof(unsigned long) - 1);
+ addr &= ~(sizeof(unsigned long) - 1);
+ data = *(unsigned long *)addr;
+ data <<= BITS_PER_BYTE * offset;
+ regs->gprs[reg_data] = data;
+ regs->psw.addr = extable_fixup(ex);
+ return true;
+}
+
static bool ex_handler_fpc(const struct exception_table_entry *ex, struct pt_regs *regs)
{
fpu_sfpc(0);
@@ -118,6 +134,8 @@ bool fixup_exception(struct pt_regs *regs)
return ex_handler_ua_load_reg(ex, false, regs);
case EX_TYPE_UA_LOAD_REGPAIR:
return ex_handler_ua_load_reg(ex, true, regs);
+ case EX_TYPE_ZEROPAD:
+ return ex_handler_zeropad(ex, regs);
case EX_TYPE_FPC:
return ex_handler_fpc(ex, regs);
case EX_TYPE_UA_MVCOS_TO:
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c
index 028aeb9c48d6ff..776549d55c94a2 100644
--- a/arch/s390/mm/fault.c
+++ b/arch/s390/mm/fault.c
@@ -409,9 +409,9 @@ void do_secure_storage_access(struct pt_regs *regs)
{
union teid teid = { .val = regs->int_parm_long };
unsigned long addr = get_fault_address(regs);
+ struct mm_struct *mm = current->mm;
struct vm_area_struct *vma;
struct folio_walk fw;
- struct mm_struct *mm;
struct folio *folio;
int rc;
@@ -438,13 +438,9 @@ void do_secure_storage_access(struct pt_regs *regs)
panic("Unexpected PGM 0x3d with TEID bit 61=0");
}
if (is_kernel_fault(regs)) {
- folio = virt_to_folio((void *)addr);
- if (unlikely(!folio_try_get(folio)))
- return;
- rc = uv_convert_from_secure(folio_to_phys(folio));
- if (!rc)
- clear_bit(PG_arch_1, &folio->flags.f);
- folio_put(folio);
+ if (is_vmalloc_addr((void *)addr))
+ return handle_fault_error_nolock(regs, 0);
+ rc = uv_convert_from_secure(__pa(addr));
/*
* There are some valid fixup types for kernel
* accesses to donated secure memory. zeropad is one
@@ -453,13 +449,11 @@ void do_secure_storage_access(struct pt_regs *regs)
if (rc)
return handle_fault_error_nolock(regs, 0);
} else {
- if (faulthandler_disabled())
+ if (faulthandler_disabled() || !mm)
return handle_fault_error_nolock(regs, 0);
- mm = current->mm;
- mmap_read_lock(mm);
- vma = find_vma(mm, addr);
+ vma = lock_mm_and_find_vma(mm, addr, regs);
if (!vma)
- return handle_fault_error(regs, SEGV_MAPERR);
+ return handle_fault_error_nolock(regs, SEGV_MAPERR);
folio = folio_walk_start(&fw, vma, addr, 0);
if (!folio) {
mmap_read_unlock(mm);
|
| 3/2 | 2026/07/19 13:46 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 5891 output: 33 thoughts: 569 Thoughts: **Analyzing the s390 Patch Series for Fuzzing Potential** Okay, so I've got this patch series targeting the `arch/s390` code. Let's break down what's being changed and see if we can get a fuzzing target out of this. First, I see some Kconfig modifications in `arch/s390/Kconfig`, selecting `DCACHE_WORD_ACCESS` if `KMSAN` isn't enabled. Interesting, but likely not directly fuzzable. Then there's an addition of some new exception table types (`EX_TYPE_ZEROPAD`, `EX_TABLE_ZEROPAD`) in `arch/s390/include/asm/asm-extable.h`. This is likely related to handling certain memory access patterns, which could be interesting to fuzz if the code involved can be triggered reliably. The inclusion of `uv_alloc_stor_var`, `uv_free_stor_var` in `arch/s390/include/asm/uv.h` and its implementation in `arch/s390/kernel/uv.c` alongside the addition of `load_unaligned_zeropad` in `arch/s390/include/asm/word-at-a-time.h` looks a bit more promising. This seems to be some kind of memory allocation and zeroing strategy. Crucially, the patch series modifies `arch/s390/kvm/pv.c`, replacing `vzalloc`/`vfree` with `uv_alloc_stor_var`/`uv_free_stor_var`. That's a direct KVM touchpoint, and that immediately gets my attention. We're talking about allocating memory for KVM's Protected Virtualization feature. The changes to `arch/s390/mm/fault.c`'s `do_secure_storage_access` function, specifically handling vmalloc addresses and using `lock_mm_and_find_vma`, strongly suggests this is memory management code related to virtualized environments, and likely related to the Protected Virtualization feature. And the `arch/s390/mm/extable.c` changes tie into the new exception table types. The important question now is, is this reachable in a virtualized environment? Yes! s390 KVM *is* fuzzable if we're fuzzing s390. And, syzkaller *does* support s390x, which is a big win. Then I remember that `do_secure_storage_access` is related to Secure Execution, which is Protected Virtualization (PV). And `uv_alloc_stor_var` allocates memory for KVM PV. So, let's confirm the fuzzability. Yes, KVM on s390x is definitely fuzzable. Now, let's track down the configs to double-check our work. `arch/s390/kvm/pv.c` is compiled under `CONFIG_KVM`, which is easy. We'll need to figure out what enables `arch/s390/kernel/uv.c` to confirm it is compiled with `CONFIG_PROTECTED_VIRTUALIZATION_GUEST`. |
| 4/2 | 2026/07/19 13:46 | tool | grepper |
0mArgs:{
"Expression": "uv\\.o",
"PathPrefix": "arch/s390/kernel/Makefile"
}Results: {
"Output": "arch/s390/kernel/Makefile=45=obj-y\t+= nospec-branch.o ipl_vmparm.o machine_kexec_reloc.o unwind_bc.o\narch/s390/kernel/Makefile:46:obj-y\t+= smp.o text_amode31.o stacktrace.o abs_lowcore.o facility.o uv.o wti.o\narch/s390/kernel/Makefile-47-obj-y\t+= diag/\n"
} |
| 5/2 | 2026/07/19 13:46 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 7333 output: 34 thoughts: 23 Thoughts: Okay, here's my take on those thoughts, framed as an expert's internal monologue: **Assessing Build Dependencies** Right, so `uv.o`... that's always built on s390, no question. It's a fundamental part of the environment there, I'm already aware of that. Now, the real question is: what about `pv.c`? Is it also rigidly tied to the s390 architecture, or is there some more flexibility there? I need to quickly assess the build configuration to understand its target environment. Does it rely on specific s390 intrinsics, assembly language, or platform-dependent libraries? Or is it written in a way that allows for broader portability with minimal effort? I have a hunch it might have broader implications for the build process depending on the answer... time to get some more context on that specific file. |
| 6/2 | 2026/07/19 13:46 | tool | grepper |
0mArgs:{
"Expression": "pv\\.o",
"PathPrefix": "arch/s390/kvm/Makefile"
}Results: {
"Output": "arch/s390/kvm/Makefile=10=kvm-y += kvm-s390.o intercept.o interrupt.o priv.o sigp.o\narch/s390/kvm/Makefile:11:kvm-y += diag.o gaccess.o guestdbg.o vsie.o pv.o\narch/s390/kvm/Makefile-12-kvm-y += dat.o gmap.o faultin.o\n"
} |
| 7/2 | 2026/07/19 13:46 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 7703 output: 39 thoughts: 46 Thoughts: Okay, here's my take on those thoughts, framed as an expert's internal monologue: **Investigating KVM and Secure Storage Access** Right, `pv.o` is only compiled if `CONFIG_KVM` is defined. That's good to know, and expected. I need to understand how the secure storage access is implemented, especially considering that condition. I'll need to check the code that handles these accesses. Let's dive into `arch/s390/mm/fault.c` and specifically look at the `do_secure_storage_access` function. That seems like the logical place to start digging into the details of the secure storage implementation within that architecture. I'm keen to understand the interactions with KVM in this area. It's time to see what this function actually does and where it gets called. |
| 8/2 | 2026/07/19 13:46 | tool | grepper |
0mArgs:{
"Expression": "do_secure_storage_access",
"PathPrefix": "arch/s390/mm/fault.c"
}Results: {
"Output": "arch/s390/mm/fault.c=404=NOKPROBE_SYMBOL(do_dat_exception);\n--\narch/s390/mm/fault.c-407-\narch/s390/mm/fault.c:408:void do_secure_storage_access(struct pt_regs *regs)\narch/s390/mm/fault.c-409-{\n--\narch/s390/mm/fault.c-471-}\narch/s390/mm/fault.c:472:NOKPROBE_SYMBOL(do_secure_storage_access);\narch/s390/mm/fault.c-473-\n"
} |
| 9/2 | 2026/07/19 13:46 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 8156 output: 34 thoughts: 19 Thoughts: Here's my thought process, as it stands: **Checking for Callers of `do_secure_storage_access`** Okay, so I need to understand the usage of `do_secure_storage_access`. It's a critical function, no doubt, and I need to determine where it's being invoked. Knowing its call sites is fundamental for analyzing its impact, potential security implications, and how it fits into the broader application architecture. I'll need to use my tools and knowledge to efficiently locate all instances where `do_secure_storage_access` is called. Are there any indirect calls? Any conditional usages? I'll need to consider those too, when I start my analysis. |
| 10/2 | 2026/07/19 13:46 | tool | grepper |
0mArgs:{
"Expression": "do_secure_storage_access",
"PathPrefix": "arch/s390/"
}Results: {
"Output": "arch/s390/kernel/entry.h=29=void do_dat_exception(struct pt_regs *regs);\narch/s390/kernel/entry.h:30:void do_secure_storage_access(struct pt_regs *regs);\narch/s390/kernel/entry.h-31-void do_non_secure_storage_access(struct pt_regs *regs);\n--\narch/s390/kernel/traps.c=401=static void (*pgm_check_table[128])(struct pt_regs *regs) = {\n--\narch/s390/kernel/traps.c-437-\t[0x3c]\t\t= default_trap_handler,\narch/s390/kernel/traps.c:438:\t[0x3d]\t\t= do_secure_storage_access,\narch/s390/kernel/traps.c-439-\t[0x3e]\t\t= default_trap_handler,\n--\narch/s390/kernel/traps.c-449-\narch/s390/kernel/traps.c:450:COND_TRAP(do_secure_storage_access);\n--\narch/s390/mm/fault.c=404=NOKPROBE_SYMBOL(do_dat_exception);\n--\narch/s390/mm/fault.c-407-\narch/s390/mm/fault.c:408:void do_secure_storage_access(struct pt_regs *regs)\narch/s390/mm/fault.c-409-{\n--\narch/s390/mm/fault.c-471-}\narch/s390/mm/fault.c:472:NOKPROBE_SYMBOL(do_secure_storage_access);\narch/s390/mm/fault.c-473-\n"
} |
| 11/2 | 2026/07/19 13:46 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 8849 output: 34 thoughts: 150 Thoughts: **Analyzing a Secure Storage Violation Trap** Okay, so I'm looking at a program check 0x3d, a Secure Storage Violation. My immediate assessment is that this is functional code, not just some test harness. We need to understand the root cause. My instinct is to trace this back to memory access issues. First, I should check `load_unaligned_zeropad` in `arch/s390/include/asm/word-at-a-time.h`. That's a likely point of interest. Looking deeper into the code, I see it's used by `DCACHE_WORD_ACCESS`, which is defined in `arch/s390/Kconfig`. Right. `DCACHE_WORD_ACCESS` enables optimized dcache lookups. This is important! This will directly affect dcache operations. For example, `fs/dcache.c`. This is potentially highly reachable. We are talking about something that is fundamental to file system access, so this is high value. Next, I need to investigate how secure storage variables are allocated and deallocated. I'll need to scrutinize `uv_alloc_stor_var` and `uv_free_stor_var`. |
| 12/2 | 2026/07/19 13:46 | tool | grepper |
0mArgs:{
"Expression": "uv_alloc_stor_var",
"PathPrefix": "arch/s390/"
}Results: {
"Output": "arch/s390/include/asm/uv.h=637=int uv_convert_from_secure_folio(struct folio *folio);\narch/s390/include/asm/uv.h:638:void *uv_alloc_stor_var(unsigned long size);\narch/s390/include/asm/uv.h-639-void uv_free_stor_var(void *stor_var);\n--\narch/s390/kernel/uv.c=245=static int uv_alloc_range_cb(pte_t *ptep, unsigned long addr, void *data)\n--\narch/s390/kernel/uv.c-257-\narch/s390/kernel/uv.c:258:void *uv_alloc_stor_var(unsigned long size)\narch/s390/kernel/uv.c-259-{\n--\narch/s390/kernel/uv.c-274-}\narch/s390/kernel/uv.c:275:EXPORT_SYMBOL_FOR_MODULES(uv_alloc_stor_var, \"kvm\");\narch/s390/kernel/uv.c-276-\n--\narch/s390/kvm/pv.c=346=static int kvm_s390_pv_alloc_vm(struct kvm *kvm)\n--\narch/s390/kvm/pv.c-371-\tvlen += uv_info.guest_virt_base_stor_len;\narch/s390/kvm/pv.c:372:\tkvm-\u003earch.pv.stor_var = uv_alloc_stor_var(vlen);\narch/s390/kvm/pv.c-373-\tif (!kvm-\u003earch.pv.stor_var)\n"
} |
| 13/2 | 2026/07/19 13:46 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 9760 output: 34 thoughts: 106 Thoughts: **Fuzzing Potential in PV VM Creation** Okay, so I'm looking at `kvm_s390_pv_alloc_vm`, which is, as the name suggests, called during the creation of a PV VM. My instinct, being who I am, immediately flags this as a potentially rich area for fuzzing. There's almost always something interesting to uncover during the allocation and setup phases of a virtual machine. My focus right now is narrowing. I'm going to pay close attention to the `uv_alloc_stor_var` and `uv_free_stor_var` functions, as memory management routines are often key. Also, I need to check `do_secure_storage_access`. Finally, I'm particularly interested in exception handling, so I'm going to dive deeper and look at `ex_handler_zeropad` within `arch/s390/mm/extable.c`. This could be really good. Let's see what that exception handler is doing... |
| 14/2 | 2026/07/19 13:46 | tool | grepper |
0mArgs:{
"Expression": "ex_handler_zeropad",
"PathPrefix": "arch/s390/"
}Results: {
"Output": "arch/s390/mm/extable.c=39=static bool ex_handler_ua_load_reg(const struct exception_table_entry *ex,\n--\narch/s390/mm/extable.c-52-\narch/s390/mm/extable.c:53:static bool ex_handler_zeropad(const struct exception_table_entry *ex, struct pt_regs *regs)\narch/s390/mm/extable.c-54-{\n--\narch/s390/mm/extable.c=119=bool fixup_exception(struct pt_regs *regs)\n--\narch/s390/mm/extable.c-137-\tcase EX_TYPE_ZEROPAD:\narch/s390/mm/extable.c:138:\t\treturn ex_handler_zeropad(ex, regs);\narch/s390/mm/extable.c-139-\tcase EX_TYPE_FPC:\n"
} |
| 15/2 | 2026/07/19 13:46 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 10379 output: 39 thoughts: 60 Thoughts: Okay, here's my take on those thoughts, framed as my own: **Analyzing Kernel Configurations for Virtualization Support** Right, `ex_handler_zeropad` – that's a solid symbol to key in on, particularly when looking at exception handling routines. It's a good starting point for tracing some low-level kernel behavior. Now, let's see how this ties into the bigger picture of virtualization. I'm thinking about the configurations we need to enable specific features, especially for the s390 architecture, which I've been working with. `CONFIG_KVM` is definitely on my radar; it's essential, of course, for KVM support, specifically for allocating virtual machines, and I know it's related to both `kvm_s390_pv_alloc_vm` and `pv.c` which makes sense given that it has to interact with the paravirtualization layer. But what about the Unikernel support file, `uv.c`? I want to make sure I've got all the configuration ducks in a row for that. I need to figure out if there are any specific configs that relate to `uv.c`. Is there a unique configuration or something that it depends on? If not, then I need to consider what features it borrows. |
| 16/2 | 2026/07/19 13:46 | tool | grepper |
0mError:no matches Args: {
"Expression": "CONFIG_PROTECTED_VIRTUALIZATION_GUEST",
"PathPrefix": "arch/s390/"
}Results: {
"error": "no matches"
} |
| 17/2 | 2026/07/19 13:46 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 10772 output: 33 thoughts: 11 Thoughts: Here's my thought process, as if I were considering this question: **Unraveling the `uv.c` Configuration** Okay, hold on a minute. I'm looking at this, and the question is, *what* exactly enables the inclusion or functionality of `uv.c`? It's not immediately obvious. This implies that this isn't a core component that's always present. It's conditionally compiled or included, right? I need to figure out what build configuration option, preprocessor definition, or conditional logic is responsible for bringing that file into the build process. My immediate assumption is that there must be some macro defined, or a flag passed to the compiler, that dictates whether or not this specific file is included, or at least its code is part of the final compilation. I need to trace back through the makefiles, build scripts, or project settings to identify the key that unlocks `uv.c`. Is it a feature flag? A target platform definition? A performance optimization switch? Gotta follow the breadcrumbs. |
| 18/2 | 2026/07/19 13:46 | tool | grepper |
0mArgs:{
"Expression": "uv\\.o",
"PathPrefix": "arch/s390/kernel/Makefile"
}Results: {
"Output": "arch/s390/kernel/Makefile=45=obj-y\t+= nospec-branch.o ipl_vmparm.o machine_kexec_reloc.o unwind_bc.o\narch/s390/kernel/Makefile:46:obj-y\t+= smp.o text_amode31.o stacktrace.o abs_lowcore.o facility.o uv.o wti.o\narch/s390/kernel/Makefile-47-obj-y\t+= diag/\n"
} |
| 19/2 | 2026/07/19 13:46 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 11169 output: 30 thoughts: 75 Thoughts: Okay, let me break this down. **Diving into the S390 Architecture and KMSAN Integration** Right, so I'm looking at this code and immediately I see that it's compiled. That's a fundamental assumption, isn't it? Everything in the kernel, ultimately, gets compiled. Now, my mind goes straight to `DCACHE_WORD_ACCESS`. What's the deal with that? Ah, yes, it's tied to the `S390` architecture. The condition is `if !KMSAN`, which means it’s enabled on s390 unless we are using KMSAN. That means `DCACHE_WORD_ACCESS` is *always* enabled on s390 unless the KernelMemorySanitizer is being utilized, which is useful to remember in case of debugging issues or optimizing performance. So, where does that leave us? To get the whole picture, let's switch gears and go over to `arch/s390/Kconfig`. I'll have a look for `KVM`, because that's where any interaction would be defined between the kernel and the hypervisor. This should give us a fuller understanding of the context. |
| 20/2 | 2026/07/19 13:46 | tool | grepper |
0mArgs:{
"Expression": "config KVM",
"PathPrefix": "arch/s390/"
}Results: {
"Output": "arch/s390/kvm/Kconfig=17=if VIRTUALIZATION\narch/s390/kvm/Kconfig-18-\narch/s390/kvm/Kconfig:19:config KVM\narch/s390/kvm/Kconfig-20-\tdef_tristate y\n--\narch/s390/kvm/Kconfig-46-\narch/s390/kvm/Kconfig:47:config KVM_S390_UCONTROL\narch/s390/kvm/Kconfig-48-\tbool \"Userspace controlled virtual machines\"\n"
} |
| 21/2 | 2026/07/19 13:46 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 11700 output: 39 thoughts: 46 Thoughts: Okay, here's my take on those thoughts, framed as my own reasoning: **Analyzing the Secure Storage Access in the S390 Architecture** Alright, the context is clearly about `KVM` configuration. The immediate question is how secure storage access is handled, specifically within the S390 architecture. My mind instantly jumps to `do_secure_storage_access`, located in `arch/s390/mm/fault.c`. The first thing I need to confirm is whether this function's execution or behavior is contingent on any specific kernel configuration options. Knowing this will immediately help determine the scope of a potential security issue or the availability of a specific feature. Essentially, I'm trying to identify a direct connection between `KVM` and this function, perhaps through a config option that enables or disables it. This is the starting point for understanding how securely data is being handled. |
| 22/2 | 2026/07/19 13:46 | tool | grepper |
0mArgs:{
"Expression": "do_secure_storage_access",
"PathPrefix": "arch/s390/mm/fault.c"
}Results: {
"Output": "arch/s390/mm/fault.c=404=NOKPROBE_SYMBOL(do_dat_exception);\n--\narch/s390/mm/fault.c-407-\narch/s390/mm/fault.c:408:void do_secure_storage_access(struct pt_regs *regs)\narch/s390/mm/fault.c-409-{\n--\narch/s390/mm/fault.c-471-}\narch/s390/mm/fault.c:472:NOKPROBE_SYMBOL(do_secure_storage_access);\narch/s390/mm/fault.c-473-\n"
} |
| 23/2 | 2026/07/19 13:46 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 12159 output: 131 thoughts: 342 Thoughts: **My Assessment of the Patch's Impact** Okay, so this isn't about interpreted code; it's compiled. That's a given. We're dealing with kernel modifications here, and the relevant config is `KVM`. Got it. My primary focus is on these symbols: `uv_alloc_stor_var`, `uv_free_stor_var`, `do_secure_storage_access`, and `ex_handler_zeropad`. I need to establish reachability. Let me see... `uv_alloc_stor_var` is called by `kvm_s390_pv_alloc_vm`, which is called by `kvm_s390_pv_init_vm`. `kvm_s390_pv_init_vm` is invoked during the initialization of a PV VM. So, if a user *creates* a Protected Virtualization (PV) VM, then this allocation path is hit. Good, it's reachable. Now, `load_unaligned_zeropad`… ah, it's a `static inline` function from `arch/s390/include/asm/word-at-a-time.h`. That means it will be inlined. It's not a symbol I can directly target, but the code it represents is significant, given its purpose. Overall, I think these changes are functional, reachable, and testable. They represent a significant modification in core kernel and KVM code. Here's my summary for the record: **WorthFuzzing: true** **Reasoning:** The patch introduces new memory allocation logic for s390 KVM Protected Virtualization (PV) VMs and adds support for DCACHE_WORD_ACCESS with a new exception handler for unaligned zero-padded loads. These are functional changes in reachable core kernel and KVM code. **FocusSymbols:** `uv_alloc_stor_var`, `uv_free_stor_var`, `do_secure_storage_access`, `ex_handler_zeropad` **EnableConfigs:** `KVM` |
| 24/2 | 2026/07/19 13:47 | tool | set-results |
0mArgs:{
"EnableConfigs": [
"KVM"
],
"FocusSymbols": [
"uv_alloc_stor_var",
"uv_free_stor_var",
"do_secure_storage_access",
"ex_handler_zeropad"
],
"Reasoning": "The patch introduces new memory allocation logic for s390 KVM Protected Virtualization (PV) VMs and adds support for DCACHE_WORD_ACCESS with a new exception handler for unaligned zero-padded loads. These are functional changes in reachable core kernel and KVM code.",
"WorthFuzzing": true
}Results: {
"EnableConfigs": [
"KVM"
],
"FocusSymbols": [
"uv_alloc_stor_var",
"uv_free_stor_var",
"do_secure_storage_access",
"ex_handler_zeropad"
],
"Reasoning": "The patch introduces new memory allocation logic for s390 KVM Protected Virtualization (PV) VMs and adds support for DCACHE_WORD_ACCESS with a new exception handler for unaligned zero-padded loads. These are functional changes in reachable core kernel and KVM code.",
"WorthFuzzing": true
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|