History

xfrm: Add dir validation to "out" data path lookup

Introduces validation for the x->dir attribute within the XFRM output data lookup path. If the configured direction does not match the expected direction, output, increment the XfrmOutStateDirError counter and drop the packet to ensure data integrity and correct flow handling. grep -vw 0 /proc/net/xfrm_stat XfrmOutPolError 1 XfrmOutStateDirError 1

Antony Antony committed 2 years ago

Commit 601a0861 parent a4a87fa4 files · +11 −0Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/snmp.h+1−0
@@ -337,6 +337,7 @@ enum · 336 unmodified lines
337337 LINUX_MIB_XFRMFWDHDRERROR, /* XfrmFwdHdrError*/
338338 LINUX_MIB_XFRMOUTSTATEINVALID, /* XfrmOutStateInvalid */
339339 LINUX_MIB_XFRMACQUIREERROR, /* XfrmAcquireError */
340+ LINUX_MIB_XFRMOUTSTATEDIRERROR, /* XfrmOutStateDirError */
340341 __LINUX_MIB_XFRMMAX
341342 };
342343