Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新版dpvs crash问题 #911

Open
fangkm opened this issue Sep 11, 2023 · 1 comment
Open

新版dpvs crash问题 #911

fangkm opened this issue Sep 11, 2023 · 1 comment
Assignees
Labels
issue/solved the issue is solved, and would be closed later

Comments

@fangkm
Copy link

fangkm commented Sep 11, 2023

调用./ipvsadm -a -t 192.168.93.100:8080 -r 192.168.93.130 -b时dpvs crash。
代码crash在dp_vs_service_set方法内:
static int dp_vs_service_set(sockoptid_t opt, const void *user, size_t len)
{
int ret;
unsigned char arg[MAX_ARG_LEN];
...
rte_memcpy(arg, user, len);
...
}
MAX_ARG_LEN值为376,但是传入的len值为392,导致栈溢出。这个问题有没有人遇到过,请指点。

@fangkm
Copy link
Author

fangkm commented Sep 12, 2023

应该是编译ipvsadm的时候定义了_HAVE_IPVS_TUN_TYPE_宏,编译dpvs主程序时没定义,导致sizeof(dp_vs_dest_compat)计算结果不一样

@ywc689 ywc689 added the issue/to-solve issues await answers tobe solved label Sep 14, 2023
@ywc689 ywc689 self-assigned this Sep 14, 2023
ywc689 added a commit to ywc689/dpvs that referenced this issue Sep 21, 2023
Signed-off-by: ywc689 <ywc689@163.com>
ywc689 added a commit to ywc689/dpvs that referenced this issue Oct 19, 2023
Signed-off-by: ywc689 <ywc689@163.com>
ywc689 added a commit that referenced this issue Dec 8, 2023
Signed-off-by: ywc689 <ywc689@163.com>
ywc689 added a commit that referenced this issue Dec 8, 2023
Signed-off-by: ywc689 <ywc689@163.com>
@ywc689 ywc689 added issue/solved the issue is solved, and would be closed later and removed issue/to-solve issues await answers tobe solved labels Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/solved the issue is solved, and would be closed later
Projects
None yet
Development

No branches or pull requests

2 participants