Re: [ovs-dev] crash in dst_cache_destroy

2021-03-24 Thread Gregory Rose




On 3/24/2021 12:48 AM, wanghan...@corp.netease.com wrote:

Hi ALL,
We found a kernel panic about ovs 2.8.2 with kernel 4.9.65.


That's a very old release on an old kernel.  Can you repro
with something more recent?  I suggest upgrading your OVS
version.

- Greg




[20655819.900423] BUG: unable to handle kernel NULL pointer dereference at 
0062
[20655819.909234] IP: [] dst_release+0x11/0x70
[20655819.915841] PGD 0
[20655819.917963]
[20655819.920779] Oops:  [#1] SMP
...
[20655820.072555] CPU: 13 PID: 585747 Comm: handler146 Tainted: G   O   
 4.9.65-k8s-netease3-1 #1
[20655820.082713] Hardware name: Inspur NF5280M4/YZMB-00689-101, BIOS 4.1.19 
02/27/2018
[20655820.091284] task: 9054dec880c0 task.stack: b77e799ec000
[20655820.098257] RIP: 0010:[]  [] 
dst_release+0x11/0x70
[20655820.107239] RSP: 0018:9034ff943ec8  EFLAGS: 00010202
[20655820.113627] RAX: 9034ff60 RBX:  RCX: 

[20655820.122013] RDX: 47293d0355f0 RSI: 0200 RDI: 
0002
[20655820.130183] RBP: 9034ae6465d8 R08:  R09: 
00ff
[20655820.138360] R10: 9034d9a9cb10 R11:  R12: 
b3d18e00
[20655820.146755] R13: 9034acad3d00 R14: 9054dec880c0 R15: 
9034ff9596c0
[20655820.154969] FS:  7f8a09ffb700() GS:9034ff94() 
knlGS:
[20655820.164098] CS:  0010 DS:  ES:  CR0: 80050033
[20655820.170910] CR2: 0062 CR3: 001fdef6e000 CR4: 
00360670
[20655820.179082] DR0:  DR1:  DR2: 

[20655820.187235] DR3:  DR6: fffe0ff0 DR7: 
0400
[20655820.195445] Stack:
[20655820.198492]   9034ae6465d8 b3529748 
9034ae646500
[20655820.207727]    b350c811 
b3c4fc00
[20655820.216333]  9034ff9596f8 0001 b350cb5a 
b30dd643
[20655820.224998] Call Trace:
[20655820.228487]  
[20655820.230688]  [] ? dst_cache_destroy+0x38/0x70
[20655820.237639]  [] ? dst_destroy+0x21/0x110
[20655820.244225]  [] ? dst_destroy_rcu+0xa/0x20
[20655820.250930]  [] ? rcu_process_callbacks+0x1e3/0x5b0
[20655820.258457]  [] ? __do_softirq+0x105/0x290
[20655820.265757]  [] ? irq_exit+0xae/0xb0
[20655820.272245]  [] ? smp_apic_timer_interrupt+0x3e/0x50
[20655820.280312]  [] ? apic_timer_interrupt+0x96/0xa0
[20655820.287534]  
[20655820.289734]  [] ? mutex_spin_on_owner.isra.1+0x28/0x40
[20655820.297580]  [] ? mutex_optimistic_spin+0x7f/0x1b0
[20655820.305032]  [] ? __mutex_lock_slowpath+0x3f/0x130
[20655820.312464]  [] ? mutex_lock+0x1b/0x30
[20655820.318831]  [] ? pcpu_alloc+0x48f/0x680
[20655820.325376]  [] ? dst_cache_init+0x1d/0x40
[20655820.332126]  [] ? validate_and_copy_set_tun+0xe0/0x360 
[openvswitch]
[20655820.341108]  [] ? validate_set+0x2b3/0x380 [openvswitch]
[20655820.349009]  [] ? __ovs_nla_copy_actions+0x2b1/0x680 
[openvswitch]
[20655820.357765]  [] ? __kmalloc_reserve.isra.35+0x2e/0x80
[20655820.365372]  [] ? kmem_cache_alloc_node+0xd4/0x530
[20655820.372684]  [] ? ovs_nla_copy_actions+0x6e/0x90 
[openvswitch]
[20655820.381064]  [] ? ovs_packet_cmd_execute+0x16d/0x290 
[openvswitch]
[20655820.389745]  [] ? genl_family_rcv_msg+0x1bc/0x360
[20655820.396972]  [] ? genl_family_rcv_msg+0x360/0x360
[20655820.404247]  [] ? genl_rcv_msg+0x82/0xc0
[20655820.410646]  [] ? netlink_rcv_skb+0xa1/0xc0
[20655820.417350]  [] ? genl_rcv+0x24/0x40
[20655820.423927]  [] ? netlink_unicast+0x184/0x230
[20655820.430773]  [] ? netlink_sendmsg+0x2f8/0x3b0
[20655820.437554]  [] ? sock_sendmsg+0x30/0x40
[20655820.443925]  [] ? ___sys_sendmsg+0x2c2/0x2d0
[20655820.450596]  [] ? ep_ptable_queue_proc+0x90/0x90
[20655820.457686]  [] ? 
ep_scan_ready_list.constprop.12+0x208/0x210
[20655820.465888]  [] ? ep_poll+0x192/0x350
[20655820.471919]  [] ? __sys_sendmsg+0x51/0x90
[20655820.478876]  [] ? system_call_fast_compare_end+0xc/0xb7

Regards,
Hanlin
___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


[ovs-dev] crash in dst_cache_destroy

2021-03-24 Thread wanghanlin
Hi ALL,
We found a kernel panic about ovs 2.8.2 with kernel 4.9.65.

[20655819.900423] BUG: unable to handle kernel NULL pointer dereference at 
0062
[20655819.909234] IP: [] dst_release+0x11/0x70
[20655819.915841] PGD 0
[20655819.917963]
[20655819.920779] Oops:  [#1] SMP
...
[20655820.072555] CPU: 13 PID: 585747 Comm: handler146 Tainted: G   O   
 4.9.65-k8s-netease3-1 #1
[20655820.082713] Hardware name: Inspur NF5280M4/YZMB-00689-101, BIOS 4.1.19 
02/27/2018
[20655820.091284] task: 9054dec880c0 task.stack: b77e799ec000
[20655820.098257] RIP: 0010:[]  [] 
dst_release+0x11/0x70
[20655820.107239] RSP: 0018:9034ff943ec8  EFLAGS: 00010202
[20655820.113627] RAX: 9034ff60 RBX:  RCX: 

[20655820.122013] RDX: 47293d0355f0 RSI: 0200 RDI: 
0002
[20655820.130183] RBP: 9034ae6465d8 R08:  R09: 
00ff
[20655820.138360] R10: 9034d9a9cb10 R11:  R12: 
b3d18e00
[20655820.146755] R13: 9034acad3d00 R14: 9054dec880c0 R15: 
9034ff9596c0
[20655820.154969] FS:  7f8a09ffb700() GS:9034ff94() 
knlGS:
[20655820.164098] CS:  0010 DS:  ES:  CR0: 80050033
[20655820.170910] CR2: 0062 CR3: 001fdef6e000 CR4: 
00360670
[20655820.179082] DR0:  DR1:  DR2: 

[20655820.187235] DR3:  DR6: fffe0ff0 DR7: 
0400
[20655820.195445] Stack:
[20655820.198492]   9034ae6465d8 b3529748 
9034ae646500
[20655820.207727]    b350c811 
b3c4fc00
[20655820.216333]  9034ff9596f8 0001 b350cb5a 
b30dd643
[20655820.224998] Call Trace:
[20655820.228487]  
[20655820.230688]  [] ? dst_cache_destroy+0x38/0x70
[20655820.237639]  [] ? dst_destroy+0x21/0x110
[20655820.244225]  [] ? dst_destroy_rcu+0xa/0x20
[20655820.250930]  [] ? rcu_process_callbacks+0x1e3/0x5b0
[20655820.258457]  [] ? __do_softirq+0x105/0x290
[20655820.265757]  [] ? irq_exit+0xae/0xb0
[20655820.272245]  [] ? smp_apic_timer_interrupt+0x3e/0x50
[20655820.280312]  [] ? apic_timer_interrupt+0x96/0xa0
[20655820.287534]  
[20655820.289734]  [] ? mutex_spin_on_owner.isra.1+0x28/0x40
[20655820.297580]  [] ? mutex_optimistic_spin+0x7f/0x1b0
[20655820.305032]  [] ? __mutex_lock_slowpath+0x3f/0x130
[20655820.312464]  [] ? mutex_lock+0x1b/0x30
[20655820.318831]  [] ? pcpu_alloc+0x48f/0x680
[20655820.325376]  [] ? dst_cache_init+0x1d/0x40
[20655820.332126]  [] ? validate_and_copy_set_tun+0xe0/0x360 
[openvswitch]
[20655820.341108]  [] ? validate_set+0x2b3/0x380 [openvswitch]
[20655820.349009]  [] ? __ovs_nla_copy_actions+0x2b1/0x680 
[openvswitch]
[20655820.357765]  [] ? __kmalloc_reserve.isra.35+0x2e/0x80
[20655820.365372]  [] ? kmem_cache_alloc_node+0xd4/0x530
[20655820.372684]  [] ? ovs_nla_copy_actions+0x6e/0x90 
[openvswitch]
[20655820.381064]  [] ? ovs_packet_cmd_execute+0x16d/0x290 
[openvswitch]
[20655820.389745]  [] ? genl_family_rcv_msg+0x1bc/0x360
[20655820.396972]  [] ? genl_family_rcv_msg+0x360/0x360
[20655820.404247]  [] ? genl_rcv_msg+0x82/0xc0
[20655820.410646]  [] ? netlink_rcv_skb+0xa1/0xc0
[20655820.417350]  [] ? genl_rcv+0x24/0x40
[20655820.423927]  [] ? netlink_unicast+0x184/0x230
[20655820.430773]  [] ? netlink_sendmsg+0x2f8/0x3b0
[20655820.437554]  [] ? sock_sendmsg+0x30/0x40
[20655820.443925]  [] ? ___sys_sendmsg+0x2c2/0x2d0
[20655820.450596]  [] ? ep_ptable_queue_proc+0x90/0x90
[20655820.457686]  [] ? 
ep_scan_ready_list.constprop.12+0x208/0x210
[20655820.465888]  [] ? ep_poll+0x192/0x350
[20655820.471919]  [] ? __sys_sendmsg+0x51/0x90
[20655820.478876]  [] ? system_call_fast_compare_end+0xc/0xb7

Regards,
Hanlin
___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev