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

查看:20
本文介绍了如何获取使用 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天全站免登陆