You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

为何GDB回溯的系统调用地址与系统调用表地址不一致?

关于系统调用地址的疑惑及Hook实现代码

我最近在研究系统调用Hook,已经成功用fake_sendto替换了系统调用表sct[__NR_sendto]中的真实sendto调用,功能运行正常,但目前对系统调用地址存在疑惑。相关实现代码如下:

#define fm_alert(fmt, ...) fm_printk(KERN_ALERT, fmt, ##__VA_ARGS__)
void print_ascii(void *addr, size_t count, const char *prompt) {
    size_t index;
    fm_alert("%s:\n", prompt);
    for (index = 0; index < count; index += 1) {
        pr_cont("%c", *((unsigned char *)addr + index));
    }
    return;
}
asmlinkage long fake_sendto(int fd, void __user *buff, size_t len, unsig...

内容的提问来源于stack exchange,提问作者lidawei

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 08:58:16