The HyperNews Linux KHG Discussion Pages

Feedback: possible reason for segmentation fault

Forum: The Linux Kernel Hackers' Guide
Re: Question Problem creating a new system call
Re: Question system call returns "Bad Address". Why?
Re: Question Re:return values (C.H.Gopinath)
Date: Thu, 16 Oct 1997 18:52:04 GMT
From: <unknown>

I tried to implement the system call, the way you did. That is
passing 2 strings s1, s2 and finding out their lengths. It did 
give me segmentation fault.
     I even tried to just print the strings within sys_print_data () 
using printk() as well as sys_write(), it did the same thing. 
     The message it gave was that the kernel was unable to
do paging at virtual address xxxxx.. 
     I suppose there must be another way to pass strings to 
the system call, but I don't know at this point. If I do in the
future, I will let you know.

saurabh desai.