This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Hurd".

The branch, master has been updated
       via  fdcefe705eea2918dd4b4460c106f49ac8bdc2dc (commit)
       via  48b7efa1473b1f74177d98ed2a63e14cea6f97ee (commit)
      from  50d2aff4ff5862a1c7aca817c240a62e54c412f1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fdcefe705eea2918dd4b4460c106f49ac8bdc2dc
Author: Sophiel Zhou <[email protected]>
Date:   Mon Jun 8 02:41:01 2026 +0800

    pfinet: check MAP_FAILED immediately after mmap in S_pfinet_getroutes
    
    The MAP_FAILED check for rtable was placed after get_routing_table
    and memset had already dereferenced the pointer.  If mmap failed
    under memory pressure, pfinet would crash.  Move the check to
    immediately after mmap, release global_lock and return ENOMEM.
    Also defer setting *dealloc_data until after confirming mmap
    succeeded.
    
    * pfinet/pfinet-ops.c (S_pfinet_getroutes): Check rtable for
    MAP_FAILED right after mmap; set *dealloc_data only on success.
    Message-ID: <[email protected]>

commit 48b7efa1473b1f74177d98ed2a63e14cea6f97ee
Author: Sophiel Zhou <[email protected]>
Date:   Mon Jun 8 02:41:00 2026 +0800

    pfinet: add MAP_FAILED check after mmap in S_pfinet_siocgifconf
    
    The mmap call to allocate a buffer for SIOCGIFCONF had no
    MAP_FAILED check before the buffer was passed to dev_ifconf.
    If mmap fails under memory pressure, pfinet would crash
    writing to address (void *)-1.
    
    * pfinet/pfinet-ops.c (S_pfinet_siocgifconf): Check ifc.ifc_buf
    for MAP_FAILED immediately after mmap, release global_lock and
    return ENOMEM on failure.
    Message-ID: <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 pfinet/pfinet-ops.c | 33 +++++++++++++++++++--------------
 1 file changed, 19 insertions(+), 14 deletions(-)


hooks/post-receive
-- 
Hurd

Reply via email to