 possible reason for segmentation fault
possible reason for segmentation fault Problem creating a new system call
  
   Problem creating a new system call  system call returns "Bad Address". Why?
  
   system call returns "Bad Address". Why?  Re:return values  (C.H.Gopinath)
  
   Re:return values  (C.H.Gopinath)
| 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. 
 |