Operating System - HP-UX
1752798 Members
5952 Online
108789 Solutions
New Discussion

Re: how to access syscall parameter data in uarea in DLKM of hpux 11iv3(IA64)?

 
EricRen
Established Member

how to access syscall parameter data in uarea in DLKM of hpux 11iv3(IA64)?

I replace open syscall with my function , in my function access original open syscall  parameters( scall_argp()). when I printf the first parameter string, the kernel happens crash !!!! Help me !!!!

1 REPLY 1
Laurent Menase
Honored Contributor

Re: how to access syscall parameter data in uarea in DLKM of hpux 11iv3(IA64)?

looks like it tried to deref an address in a wrong space,

looks like you passed 32bit aapplication on stack address  to printf.

 

you should copyin the buffer to a kernel buffer before printing it I suppose

 

But this is pure crystalball guess, because without seeing either the code or the crash, difficult to tell.