如何获取使用insmod插入的内核模块的地址? [英] How to get the address of a kernel module that was inserted using insmod?

查看:126
本文介绍了如何获取使用insmod插入的内核模块的地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道内核模块的地址.实际上,从堆栈跟踪中可以看出,崩溃是由内核模块触发的(系统启动后已被破坏).我手动安装了几个模块.因此,我需要检测其中的哪个模块触发了崩溃.请让我知道如何获取使用insmod加载的每个模块的地址.

I would like to know the address of a kernel module. Actually, from stack trace it looks that the crash has been triggered from a kernel module (which have been insmoded after system boots up). There are several modules I insmod manually. So I need to detect which module among these is triggering the crash. Please let me know how to get the address of each modules loaded using insmod.

推荐答案

cat /proc/modules应该为您提供加载位置的粗略指南.通过查看/proc/kallsyms,您可能会更多地了解内核崩溃的确切位置.

cat /proc/modules should give you a rough guide to where things are loaded. You might get more of a clue about exactly where the kernel crash is by looking at /proc/kallsyms.

这篇关于如何获取使用insmod插入的内核模块的地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆