lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <18945.47047.877878.307515@robur.slu.se>
Date:	Wed, 6 May 2009 18:16:07 +0200
From:	Robert Olsson <robert@...ur.slu.se>
To:	netdev@...r.kernel.org
Cc:	David@...ur.slu.se, "Miller <davem"@davemloft.net,
	Matheos.Worku@....COM, Jens.Laas@....uu.se, robert@...ur.slu.se
Subject: SUN Neptune byte order bug in TCAM filter/ethtool


David Miller writes:

 > >  FYI byte order seems reversed on Intel meaning you have to reverse
 > >  byte order for address and ports when adding TCAM entries via
 > >  ethtool.
 > 
 > Please report this formally with a reproduction script/commands/etc.
 > with netdev CC:'d as this is a very serious bug and exactly what I
 > tried to avoid have happen when I was so anal about the endian
 > oriented typing of the ethtool structures. :-//////////


First a disclaimer this our production system 2.6.29-rc2 but I haven't 
seen any patches since.


# This rule makes the TCAM drop pkts with IP-src 10.10.10.1 
# Note the reversed byte-order. Machine is Opteron little Endian.

ethtool -N  eth0  rx-class-rule-add ip4 udp sip 1.10.10.10 drop  

# The rule listed

ethtool  -n eth0  rx-class-rule-all 
Total 1 rules

      IPv4 Rule:   ID[84] Target[Discard]
      IP src addr[1.10.10.10] mask[255.255.255.255]
      IP dst addr[0.0.0.0] mask[0.0.0.0]
      L4 proto[UDP]
      L4 src port[0] mask[0x0]
      L4 dst port[0] mask[0x0]
      IP TOS[0x0] mask[0x0]

# The rule deleted

ethtool  -N eth0  rx-class-rule-del 84 


Cheers
					--ro

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ