linice-2.5 doesn't run on i586 PC ?

1 view
Skip to first unread message

gavinux

unread,
Feb 25, 2005, 4:27:30 PM2/25/05
to lin...@googlegroups.com
I tried to compile it at redhat 7.3 running 2.4.18-3 kernel
# tar -zxf /linice-2.5.tar.gz
# cd linice/build
# ./make_2.4
# cd ../bin
# ./linsym -i -m /boot/System.map-2.4.18-3 -v 3

........
insmod -f linice_`uname -r`/linice.o ......
Unable to handle kernel paging request at virtual
address c4800008
printing eip:
c48cbdf6
*pde = 03fc4067
*pte = 00328061
Oops: 0003
......
EIP is at HookIdt [linice] 0x26 (2.4.18-3)
eax: 00000001 ebx:......
...............
Stack: 00000001 ffffffea c1a0bef0 ff6da000 c4800000 c48f78fc c1a0bf00
c48c259a
c48c2460 00000144 c1a0bf20 c48cbf86 c4800000 00000001 00000001 c48d423b
00000004 c48f97a0 c1a0bf20 c48c4a1d 00000020 ffffffea c1a0bf50 c48c444e

Call Trace: [<c48f78fc>] Init [linice] 0x1ebc
[<c48c259a>] CalcMemAccessChecksum [linice] 0x1e
[<c48c2460>] AddrIsPresent [linice] 0x0
[<c48cbf86>] HookDebuger [linice] 0x1a
[<c48d423b>] InitBreakpoints [linice] 0x1b
[<c48f97a0>] sInitialHistoryLine [linice] 0x0
[<c48c4a1d>] HookSyscall [linice] 0x8d
[<c48c444e>] InitPacket [linice] 0x32e
[<c48f78fc>] Init [linice] 0x1ebc
[<c48fe1a4>] Cmd [linice] 0xc24
[<c48c43cd>] InitPacket [linice] 0x2ad
[<c48c1452>] DriverIOCTL [linice] 0xb2
[<c48f5a40>] Init [linice] 0x0
[<c0142a2e>] sys_ioctl [kernel] 0x26e
[<c0135a95>] sys_open [kernel] 0x79
[<c01085f7>] system_call [kernel] 0x33

Code: 66 89 33 c1 ee 10 66 89 73 06 e8 31 64 ff ff 66 89 43 02 8d
Segmentation fault

AND I also compiled linux-2.4.27 kernel on RH7.3, and boot linux-2.4.27
correctly, then I recompile linice-2.5, and load it. The same result I
got, and crash at the same place, the same code.

Finally, I figured out it crashes at HookIdt in interrupt.c, so I added
save_flags(), cli() at the function entry and resotre_flags() just
befor it exits, Then, I rebuild it, it still crashes at the same
location.
I tried on different type of i586 motherboards, all got the same
result.
The important thing is the same binary runs good on PII, PIII, PIV and
celeron.

Is it just not be able to run on i586?

Reply all
Reply to author
Forward
0 new messages