[Bug 266316] u_int32_t* dereferencing of unaligned address in ng_bridge.c

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 09 Sep 2022 13:16:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266316

            Bug ID: 266316
           Summary: u_int32_t* dereferencing of unaligned address in
                    ng_bridge.c
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: mcingel@tachyum.com

'ETHER_EQUAL' performs dereferencing of leading data to 'u_int32_t' for
comparison while passed address of 'ether_header->ether_shost' cannot be 4B
aligned (has 6B offset from 4B aligned 'ether_header' struct).
Fails at "ng_bridge_get" function while running "/usr/tests/sys/netgraph/bridge
basic" in strict aligned mode.

-- 
You are receiving this mail because:
You are the assignee for the bug.