Granary / granary

Dynamic binary translation framework for instrumenting the Linux kernel and its modules
Other
76 stars 6 forks source link

[TEST] while test granary with ext3.ko, OS crashed. #30

Closed renzhengeek closed 10 years ago

renzhengeek commented 10 years ago

Hi, I want to see how granary works with real kernel module.

So, I did the following:

  1. sudo insmod granary.ko
  2. sudo touch /dev/granary
  3. sudo modprobe ext3.ko, instead of insmod, because sudo insmod ext3.ko says:
insmod: ERROR: could not insert module ext3.ko: Unknown symbol in module

4.dmesg, everything seems ok 5.But when sudo mount /dev/sda6 /mnt(want to invoke ext3), the kernel crashed with a black screen full with debug message. here is the error report picture:

20140605_170723 6.I also did a comparing test, skip step 1-2, then the rest step works alright.

pgoodman commented 10 years ago

Is it a watchpoints client?

renzhengeek commented 10 years ago

I use bound_check client.

从三星移动设备发送

-------- 原始邮件 -------- 发件人: Peter Goodman notifications@github.com 日期: 2014-06-05 19:35 (GMT+08:00) 收件人: Granary/granary granary@noreply.github.com 抄送: Ren Zhen renzhengeek@gmail.com 主题: Re: [granary] [TEST] while test granary with ext3.ko, OS crashed. (#30)

Is it a watchpoints client?

— Reply to this email directly or view it on GitHub.

pgoodman commented 10 years ago

Did you make the necessary changes to wake.c, or has the implementation of bit waitqueues changed? They are sensitive to watched addresses. A quick check would be to try to run with the null or watchpoint_null client.

renzhengeek commented 10 years ago

I did not make changes and do not know how to change. OK,I will have try.

从三星移动设备发送

-------- 原始邮件 -------- 发件人: Peter Goodman notifications@github.com 日期: 2014-06-06 1:14 (GMT+08:00) 收件人: Granary/granary granary@noreply.github.com 抄送: Ren Zhen renzhengeek@gmail.com 主题: Re: [granary] [TEST] while test granary with ext3.ko, OS crashed. (#30)

Did you make the necessary changes to wake.c, or has the implementation of bit waitqueues changed? They are sensitive to watched addresses. A quick check would be to try to run with the null or watchpoint_null client.

— Reply to this email directly or view it on GitHub.

pgoodman commented 10 years ago

Take a look at the change history to the Granary/linux repo and you will see some changes to wake.c.

renzhengeek commented 10 years ago

clone https://github.com/Granary/linux, then build kernel from it, finally everythings works fun.

Thanks :)