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 "GNU Mach".

The branch, master has been updated
       via  6bc70c5211702af29b6dcb686d9fd7f763d0c336 (commit)
       via  5a3b182cdc25e3574d49cb7fe0877164677ff72a (commit)
      from  90199be69e58bb80869165f648a4542e12f41c79 (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 6bc70c5211702af29b6dcb686d9fd7f763d0c336
Author: 7778777 <[email protected]>
Date:   Thu Nov 19 09:07:00 2026 +0100

    libbpf: refuse a null or dead receive port in net_set_filter
    
    In the filter list, an entry whose rcv_port is MACH_PORT_NULL is the
    header of a hash table: net_set_filter, remove_dead_filter and the
    delivery code cast such an entry to net_hash_header_t and walk its
    table.  net_set_filter stored whatever port its caller passed, so a
    filter installed for MACH_PORT_NULL was later read as a header, beyond
    the end of its allocation.
    
    eth-multiplexer does not get this far, because its dead-name request
    fails first.  A caller that does not make that request, or goes on
    after it failed, reached it.

commit 5a3b182cdc25e3574d49cb7fe0877164677ff72a
Author: 7778777 <[email protected]>
Date:   Thu Nov 19 09:00:34 2026 +0100

    libbpf: reject jumps that go backwards
    
    bpf_validate checked a BPF_JA instruction with `from + p->k >= len'.
    K is a signed int, so a negative value passed, although the comment
    above the check says that jumps must be forward.  bpf_do_filter then
    runs `pc += pc->k' and the filter can loop for ever: one instruction,
    BPF_JA with k = -1, is enough.  Whoever can open a network device node
    could stall the thread that delivers frames, in eth-multiplexer and in
    every driver that links libbpf.
    
    The check now refuses a negative K, and compares K with the distance to
    the end of the program so that the sum cannot overflow.

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

Summary of changes:
 device/net_io.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GNU Mach

Reply via email to