Bug 266316 - u_int32_t* dereferencing of unaligned address in ng_bridge.c
Summary: u_int32_t* dereferencing of unaligned address in ng_bridge.c
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-09 13:16 UTC by Marian Cingel
Modified: 2022-09-09 13:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Cingel 2022-09-09 13:16:33 UTC
'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.