Bug 684700 - peth0: received packet with own address as source address
Summary: peth0: received packet with own address as source address
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xen
Version: 5.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Michal Novotny
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-14 09:34 UTC by Qixiang Wan
Modified: 2014-02-02 22:38 UTC (History)
7 users (show)

Fixed In Version: xen-3.0.3-126.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-21 09:15:34 UTC
Target Upstream Version:


Attachments (Terms of Use)
Generate random MAC (1.31 KB, patch)
2011-03-14 13:21 UTC, Michal Novotny
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1070 0 normal SHIPPED_LIVE xen bug fix and enhancement update 2011-07-21 09:12:56 UTC

Description Qixiang Wan 2011-03-14 09:34:12 UTC
Description of problem:
We are seeing 'peth0: received packet with own address as source address' in dmesg while there is a HVM guest (which has vif) exist, this is not a duplicate of bug 509789, because it's cause by tap0 has the MAC addr 'FE:FF:FF:FF:FF:FF'.

Version-Release number of selected component (if applicable):
xen-3.0.3-125.el5

How reproducible:
100%

Steps to Reproduce:
1. update xen to xen-3.0.3-125.el5
2. change network-script to 'network-bridge-mac' in /etc/xen/xend-config.sxp
(network-script network-bridge-mac)
3. start a HVM guest with at least one vif attached
  
Actual results:
Will see lot of 'peth0: received packet with own address as source address' in dmesg.

Expected results:
No such messages reported.

Additional info:

Comment 2 Paolo Bonzini 2011-03-14 12:31:48 UTC
We can use

printf "fe:%02x:%02x:%02x:%02x:%02x" \
   $(($RANDOM % 256)) $(($RANDOM % 256)) $(($RANDOM % 256)) \
   $(($RANDOM % 256)) $(($RANDOM % 256))

to create a random MAC address instead.

Comment 3 Michal Novotny 2011-03-14 13:21:08 UTC
Created attachment 484180 [details]
Generate random MAC

Well, after discussing this with Paolo I used his code to generate the random MAC address and implemented this into tools/ioemu/target-i386-dm/qemu-ifup script to generate the MAC address randomly for any network interface of HVM guest and here's the example output in dom0:

# ifconfig | grep tap
tap0      Link encap:Ethernet  HWaddr FE:7A:71:A2:29:0D  
tap1      Link encap:Ethernet  HWaddr FE:4F:FE:4D:6E:D5  

So the MAC addresses are generated randomly. I'm putting the patch here for testing but according to my testing I can see no messages as mentioned in description.

Michal

Comment 5 Miroslav Rezanina 2011-03-17 09:55:33 UTC
Fix built into xen-3.0.3-126.el5

Comment 7 Qixiang Wan 2011-03-30 09:09:47 UTC
VERIFIED with xen-3.0.3-126.el5.

The message of 'peth0: received packet with own address as source address' isn't present in dmesg after the fix applied. 
(Use 'network-bridge-mac' as the network-script in xend-config.sxp before test this.)

Comment 8 Tomas Capek 2011-07-13 13:23:38 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
When an HVM guest was started with at least one virtual interface attached to it and with the network-script option set to "network-bridge-mac", a lot of "peth0: received packet with own address as source address" error messages appeared in the dmesg command output. With this update, a random MAC address is generated for TAP devices, and this bug no longer occurs.

Comment 9 Paolo Bonzini 2011-07-13 14:36:03 UTC
I removed the technical notes, because the bug was introduced in the development of RHEL5.7 and was never in a released version.

Comment 10 Paolo Bonzini 2011-07-13 14:36:03 UTC
Deleted Technical Notes Contents.

Old Contents:
When an HVM guest was started with at least one virtual interface attached to it and with the network-script option set to "network-bridge-mac", a lot of "peth0: received packet with own address as source address" error messages appeared in the dmesg command output. With this update, a random MAC address is generated for TAP devices, and this bug no longer occurs.

Comment 11 errata-xmlrpc 2011-07-21 09:15:34 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1070.html

Comment 12 errata-xmlrpc 2011-07-21 12:08:11 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1070.html


Note You need to log in before you can comment on or make changes to this bug.