2023年9月25日

semaphore互斥失败导致出core

摘要: 先看堆栈 (gdb) bt #0 bnet_neigh_event_thread (dummy=dummy@entry=0x0) at /vob/jenkins/workspace/_build_8.8.3/sdk/src/customer_smm/l3.c:1303 #1 0x0000000002 阅读全文

posted @ 2023-09-25 14:48 枝桠 阅读(9) 评论(0) 推荐(0) 编辑

函数重名和结构体出现两种定义

摘要: 这个Bug是在查另一个Bug时发现的,源Bug暂且按下不表 先说一下大致的情况 struct zebra_client_arg zebra_client是进程中的一个全局变量,struct zebra_client_arg的定义如下: struct zebra_client_arg { int lc 阅读全文

posted @ 2023-09-25 14:20 枝桠 阅读(11) 评论(0) 推荐(0) 编辑

core文件里的全局变量偏移了16字节

摘要: 源代码里面有这个几张表: 126 static struct avl_table *l2_addr_tree; 127 static struct avl_table *casa_neighbor_table; 128 static struct avl_table *casa_ecmp_table 阅读全文

posted @ 2023-09-25 14:00 枝桠 阅读(6) 评论(0) 推荐(0) 编辑

strncpy 出core

摘要: core 的堆栈是这样子的: (gdb) bt #0 0x00007ffff4a96a7c in pthread_kill () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007ffff4a42476 in raise () from /lib/x86_ 阅读全文

posted @ 2023-09-25 13:54 枝桠 阅读(26) 评论(0) 推荐(0) 编辑

printk格式错误出panic

摘要: 检查dmesg的时候发现有这么个panic,但是设备没有重启: [1691135418.681314] cpu-0 (014C64B3:1635): ffff8000205d1e4b: 3C010800 1851AC04 000118FF 6BF08100 *<....Q......k...* [1 阅读全文

posted @ 2023-09-25 13:47 枝桠 阅读(29) 评论(0) 推荐(0) 编辑

全局数组未加锁访问溢出导致踩内存

摘要: 在客户那里发现有些数据包被错误的转到了standby SMM上,后面查看 proc 发现是 knet.ko 中的 role 字段被踩 后面再检查发现有三个字段都被踩: zyc@fish smm_arm64 (/≧▽≦)/ ~/do_not_remove/aarch64-marvell-linux-g 阅读全文

posted @ 2023-09-25 11:41 枝桠 阅读(10) 评论(0) 推荐(0) 编辑

中断嵌套导致的panic

摘要: 串口日志: [0629_17:01:42]casa_switch_client_tx: ioctl rc -1 [0629_17:01:42]casa_switch_client_tx: ioctl rc -1 [0629_17:01:42]casa_switch_client_tx: ioctl 阅读全文

posted @ 2023-09-25 11:35 枝桠 阅读(14) 评论(0) 推荐(0) 编辑

访问空指针出panic

摘要: panic信息: <4>[1670581299] 15:Failed on write i2cdev=23(I2CDEV_RFSW0) <4>[1670581299] 15:tx retry failed <4>[1670581299] 15:Failed on write i2cdev=23(I2 阅读全文

posted @ 2023-09-25 11:06 枝桠 阅读(10) 评论(0) 推荐(0) 编辑

access口能转发其他tag报文

摘要: Sundray-SW / #bcmsh dump port 2 1 filter_enable en_ifilter # "2 1"含义:从PORT.ipipe0[2]开始,总共1条 excute : ovs-appctl plugin/bcmsh dump port 2 1 filter_enab 阅读全文

posted @ 2023-09-25 10:36 枝桠 阅读(17) 评论(0) 推荐(0) 编辑

mac_vlan条目没生效

摘要: 配置文件、数据库、MAC上都有这条mac_vlan,但实际上在芯片上bamsh l2 show对应的vlan是错误的 原因是端口类型不对,配置mac_vlan的端口一定得是hybrid口 阅读全文

posted @ 2023-09-25 10:34 枝桠 阅读(19) 评论(0) 推荐(0) 编辑

导航