Thanks Andrew for looking into it. In the crash I sent, I missed adding ACL. But I was working with 18.10 previously and there I am sure I added ACL, but there was still some thing amiss. I am now doing the testing once more in 18.10 and will get back with result.
Thanks and Regards, Raj On Mon, Mar 18, 2019 at 3:41 PM Andrew 👽 Yourtchenko <ayour...@gmail.com> wrote: > > Raj, > > yeah so looking further at it - the abf plugin does not handle the > error code correctly for the case when the ACL does not exist, and > rather than erroring out, just keeps going. Hence the assert later on > when it tries to perform the lookup in the context that has not been > properly setup.. > > --a > > On 3/18/19, Raj <rajlistu...@gmail.com> wrote: > > Hello all, > > > > I am testing ABF functionality and was able to crash VPP. > > > > I was using v19.04-rc0~458-g53ba544d7. Configured VPP using following > > commands: > > > > set int state GigabitEthernet86/0/3 up > > set int ip address GigabitEthernet86/0/3 xxx.xx.223.14/29 > > set int ip address GigabitEthernet86/0/3 2001:470:xxxx:xxx::600/64 > > > > ip route add 0.0.0.0/0 via xxx.xx.223.9 GigabitEthernet86/0/3 > > ip route add ::/0 via 2001:470:xxxx:xxx::1 GigabitEthernet86/0/3 > > > > set int state GigabitEthernet86/0/2 up > > set int ip address GigabitEthernet86/0/2 100.69.1.1/24 > > set int ip address GigabitEthernet86/0/2 2001:470:yyyy:yyy::1/56 > > > > set int ip addr GigabitEthernet86/0/0 192.168.20.1/29 > > set int state GigabitEthernet86/0/0 up > > > > abf policy add id 0 acl 0 via 192.168.20.2 GigabitEthernet86/0/0 > > abf attach ip4 policy 0 priority 1 GigabitEthernet86/0/2 > > > > Running VPP under gdb, the back trace is: > > > > Thread 1 "vpp_main" received signal SIGABRT, Aborted. > > __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 > > 51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. > > (gdb) > > (gdb) > > (gdb) bt > > #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 > > #1 0x00007ffff5912801 in __GI_abort () at abort.c:79 > > #2 0x000055555555c4c8 in os_panic () at > > /home/raj/vpp/src/vpp/vnet/main.c:335 > > #3 0x00007ffff5d0125f in debugger () at > > /home/raj/vpp/src/vppinfra/error.c:84 > > #4 0x00007ffff5d0169a in _clib_error (how_to_die=2, > > function_name=0x0, line_number=0, fmt=0x7fffb4860d40 "%s:%d (%s) > > assertion `%s' fails") at /home/raj/vpp/src/vppinfra/error.c:143 > > #5 0x00007fffb485a720 in hash_multi_acl_match_5tuple > > (p_acl_main=0x7fffb48513e0 <acl_main>, lc_index=0, > > pkt_5tuple=0x7fffb6bffac0, is_ip6=0, action=0x7fffb6bffa47 "", > > acl_pos_p=0x7fffb6bffa50, acl_match_p=0x7fffb6bffa4c, > > rule_match_p=0x7fffb6bffa54, trace_bitmap=0x7fffb6bffa58) at > > /home/raj/vpp/src/plugins/acl/public_inlines.h:636 > > #6 0x00007fffb485a95f in acl_plugin_match_5tuple_inline > > (p_acl_main=0x7fffb48513e0 <acl_main>, lc_index=0, > > pkt_5tuple=0x7fffb6bffac0, is_ip6=0, r_action=0x7fffb6bffa47 "", > > r_acl_pos_p=0x7fffb6bffa50, r_acl_match_p=0x7fffb6bffa4c, > > r_rule_match_p=0x7fffb6bffa54, trace_bitmap=0x7fffb6bffa58) at > > /home/raj/vpp/src/plugins/acl/public_inlines.h:675 > > #7 0x00007fffb485d214 in abf_input_inline (vm=0x7ffff6512600 > > <vlib_global_main>, node=0x7fffb5f36980, frame=0x7fffb6dfc400, > > fproto=FIB_PROTOCOL_IP4) > > at /home/raj/vpp/src/plugins/abf/abf_itf_attach.c:569 > > #8 0x00007fffb485d478 in abf_input_ip4 (vm=0x7ffff6512600 > > <vlib_global_main>, node=0x7fffb5f36980, frame=0x7fffb6dfc400) at > > /home/raj/vpp/src/plugins/abf/abf_itf_attach.c:625 > > #9 0x00007ffff6280614 in dispatch_node (vm=0x7ffff6512600 > > <vlib_global_main>, node=0x7fffb5f36980, type=VLIB_NODE_TYPE_INTERNAL, > > dispatch_state=VLIB_NODE_STATE_POLLING, > > frame=0x7fffb6dfc400, last_time_stamp=1082092493908744) at > > /home/raj/vpp/src/vlib/main.c:1209 > > #10 0x00007ffff6280dd5 in dispatch_pending_node (vm=0x7ffff6512600 > > <vlib_global_main>, pending_frame_index=2, > > last_time_stamp=1082092493908744) at > > /home/raj/vpp/src/vlib/main.c:1376 > > #11 0x00007ffff6282b01 in vlib_main_or_worker_loop (vm=0x7ffff6512600 > > <vlib_global_main>, is_main=1) at /home/raj/vpp/src/vlib/main.c:1820 > > #12 0x00007ffff628337c in vlib_main_loop (vm=0x7ffff6512600 > > <vlib_global_main>) at /home/raj/vpp/src/vlib/main.c:1922 > > #13 0x00007ffff6284109 in vlib_main (vm=0x7ffff6512600 > > <vlib_global_main>, input=0x7fffb6bfffb0) at > > /home/raj/vpp/src/vlib/main.c:2111 > > #14 0x00007ffff62e13c0 in thread0 (arg=140737325901312) at > > /home/raj/vpp/src/vlib/unix/main.c:612 > > #15 0x00007ffff5d24544 in clib_calljmp () from > > /home/raj/vpp/build-root/install-vpp_debug-native/vpp/lib/libvppinfra.so.19.04 > > #16 0x00007fffffffd170 in ?? () > > #17 0x00007ffff62e188d in vlib_unix_main (argc=43, > > argv=0x55555586f500) at /home/raj/vpp/src/vlib/unix/main.c:681 > > #18 0x000055555555bf0c in main (argc=43, argv=0x55555586f500) at > > /home/raj/vpp/src/vpp/vnet/main.c:274 > > > > Thanks and Regards, > > > > Raj > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12571): https://lists.fd.io/g/vpp-dev/message/12571 Mute This Topic: https://lists.fd.io/mt/30471670/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-