NIKSS-vSwitch / nikss

Native In-Kernel P4-programmable Software Switch for Software-Defined Networking (previously PSA-eBPF)
Apache License 2.0
47 stars 4 forks source link

Invalid byte order on single entry get in Counter, Meter and Register #88

Closed tatry closed 1 year ago

tatry commented 1 year ago

Externs: Counter (rather to impossible to exploit), Meter and Register might return invalid byte order of fields wider than 8 bytes if single entry was requested using index/key. These externs returns field data using internal raw buffer (not data provided by user) where byte order was not correct.

PTF tests: https://github.com/tatry/p4c/pull/30