The branch stable/14 has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=9b4c38bb8948557fe1983280ac0e78db4209eb8d

commit 9b4c38bb8948557fe1983280ac0e78db4209eb8d
Author:     Konrad Witaszczyk <[email protected]>
AuthorDate: 2025-10-28 16:09:24 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2025-11-04 13:24:42 +0000

    dtrace/arm64: properly traverse the symbol table
    
    LINKER_EACH_FUNCTION_NAMEVAL() stops processing the symbol table if a
    callback function returns a non-zero value.
    
    The fbt_provide_module_function() callback should not return 1 when
    ignoring symbols. Instead, always return 0, as in dtrace/x86.
    
    Fixes:          30b68ecda84e ("Changes that improve DTrace FBT reliability 
on freebsd/arm64:")
    Reviewed by:    markj, oshogbo
    Approved by:    oshogbo (mentor)
    Obtained from:  CheriBSD
    Differential Revision: https://reviews.freebsd.org/D53399
    
    (cherry picked from commit 2acdec9e4d915ec61d0ca45b408f9beb7aa4b772)
---
 sys/cddl/dev/fbt/aarch64/fbt_isa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/cddl/dev/fbt/aarch64/fbt_isa.c 
b/sys/cddl/dev/fbt/aarch64/fbt_isa.c
index fd666770d3a2..b265f6a1e23e 100644
--- a/sys/cddl/dev/fbt/aarch64/fbt_isa.c
+++ b/sys/cddl/dev/fbt/aarch64/fbt_isa.c
@@ -105,7 +105,7 @@ fbt_provide_module_function(linker_file_t lf, int symindx,
         */
         if (strcmp(name, "handle_el1h_sync") == 0 ||
            strcmp(name, "do_el1h_sync") == 0)
-               return (1);
+               return (0);
 
        instr = (uint32_t *)(symval->value);
        limit = (uint32_t *)(symval->value + symval->size);

Reply via email to