You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the s2n-quic-xdp code, the Ring::flags and Ring::flags_mut methods allow creating shared/mutable references to the flags u32. The flags u32 is shared with the kernel and written to by the kernel. This means creating a reference to the u32 violates Rust's aliasing rules.
Problem:
In the
s2n-quic-xdp
code, theRing::flags
andRing::flags_mut
methods allow creating shared/mutable references to the flagsu32
. The flagsu32
is shared with the kernel and written to by the kernel. This means creating a reference to theu32
violates Rust's aliasing rules.Solution:
The flags
u32
can be read using pointerstd::ptr::read
.The text was updated successfully, but these errors were encountered: