Bug 1746198

Summary: ovn-controller crashes when DNS is configured and a (specific/malformed) DNS packet is received
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Flavio Leitner <fleitner>
Component: openvswitchAssignee: Dumitru Ceara <dceara>
openvswitch sub component: daemons and tools QA Contact: haidong li <haili>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: atragler, ctrautma, dceara, fleitner, haili, jhsiao, kfida, qding, yinxu
Version: FDP 19.F   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openvswitch-2.9.0-117.el7fdp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1744991 Environment:
Last Closed: 2019-10-01 07:22:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1744991    
Bug Blocks: 1744994    

Comment 2 haidong li 2019-09-09 10:30:27 UTC
reproduced on the old version:

[root@dell-per730-19 ~]# uname -a
Linux dell-per730-19.rhts.eng.pek2.redhat.com 3.10.0-1062.el7.x86_64 #1 SMP Thu Jul 18 20:25:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@dell-per730-19 ~]# rpm -qa | grep openvswitch
openvswitch-ovn-common-2.9.0-114.el7fdp.x86_64
kernel-kernel-networking-openvswitch-ovn-1.0-138.noarch
openvswitch-2.9.0-114.el7fdp.x86_64
openvswitch-ovn-central-2.9.0-114.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-13.el7fdp.noarch
openvswitch-ovn-host-2.9.0-114.el7fdp.x86_64
[root@dell-per730-19 ~]#

sendp(Ether(src="00:de:ad:01:00:01", dst="00:de:ad:ff:01:02")/IP(src="172.16.102.11", dst="172.16.102.254")/UDP(dport=53)/('a'*364) , iface="eth1")

top - 06:03:16 up 4 days,  7:05,  4 users,  load average: 0.68, 0.29, 0.21
Tasks: 469 total,   1 running, 468 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1.2 us,  2.0 sy,  0.0 ni, 96.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem : 65708808 total, 16177572 free, 43718768 used,  5812468 buff/cache
KiB Swap: 29241340 total, 29241340 free,        0 used. 21418008 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND     
22109 root      10 -10   49.2g  38.5g   1496 S  99.7 61.4   0:20.96 ovn-contro+ 
 4953 openvsw+  10 -10 2316056  97892  13748 S   1.3  0.1   0:21.58 ovs-vswitc+ 
22114 root      20   0  162296   2620   1580 R   0.7  0.0   0:00.14 top         
  601 root      20   0       0      0      0 S   0.3  0.0   0:16.47 kworker/26+ 
    1 root      20   0  202004  15140   4216 S   0.0  0.0   0:20.13 systemd     
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.17 kthreadd    
    4 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:+ 
    6 root      20   0       0      0      0 S   0.0  0.0   0:01.55 ksoftirqd/0 
    7 root      rt   0       0      0      0 S   0.0  0.0   0:01.30 migration/0 
    8 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh      
    9 root      20   0       0      0      0 S   0.0  0.0   5:55.27 rcu_sched   
   10 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 lru-add-dr+ 
   11 root      rt   0       0      0      0 S   0.0  0.0   0:01.24 watchdog/0  
   12 root      rt   0       0      0      0 S   0.0  0.0   0:01.13 watchdog/1  
   13 root      rt   0       0      0      0 S   0.0  0.0   0:02.96 migration/1 
   14 root      20   0       0      0      0 S   0.0  0.0   0:21.64 ksoftirqd/1 
   16 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:+ 

[root@dell-per730-19 ~]# 

===========================================================================================


verified on the latest version:
[root@dell-per730-19 ~]# uname -a
Linux dell-per730-19.rhts.eng.pek2.redhat.com 3.10.0-1062.el7.x86_64 #1 SMP Thu Jul 18 20:25:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@dell-per730-19 ~]# rpm -qa | grep openvswitch
openvswitch-ovn-central-2.9.0-117.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-13.el7fdp.noarch
openvswitch-ovn-common-2.9.0-117.el7fdp.x86_64
openvswitch-ovn-host-2.9.0-117.el7fdp.x86_64
openvswitch-2.9.0-117.el7fdp.x86_64
[root@dell-per730-19 ~]# 
>>> sendp(Ether(src="00:de:ad:01:00:01", dst="00:de:ad:ff:01:02")/IP(src="172.16.102.11", dst="172.16.102.254")/UDP(dport=53)/('a'*364) , iface="eth1")
.
Sent 1 packets.                                                   
>>> 
>>> 
>>> 
>>> sendp(Ether(src="00:de:ad:01:00:01", dst="00:de:ad:ff:01:02")/IP(src="172.16.102.11", dst="172.16.102.254")/UDP(dport=53)/('a'*364) , iface="eth1")
.
Sent 1 packets.
>>> 

top 
- 05:28:13 up 4 days,  6:30,  4 users,  load average: 0.00, 0.01, 0.05
Tasks: 470 total,   1 running, 469 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.2 us,  0.3 sy,  0.0 ni, 99.5 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem : 65708808 total, 56381264 free,  3508144 used,  5819400 buff/cache
KiB Swap: 29241340 total, 29241340 free,        0 used. 61628648 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND     
 3427 root      20   0  162296   2520   1524 R  11.8  0.0   0:00.03 top         
    1 root      20   0  202004  15140   4216 S   0.0  0.0   0:18.66 systemd     
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.17 kthreadd    
    4 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:+ 
    6 root      20   0       0      0      0 S   0.0  0.0   0:01.53 ksoftirqd/0 
    7 root      rt   0       0      0      0 S   0.0  0.0   0:01.30 migration/0 
    8 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh      
    9 root      20   0       0      0      0 S   0.0  0.0   5:54.23 rcu_sched

Comment 4 errata-xmlrpc 2019-10-01 07:22:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2942