Date: Fri, 2 Jul 2004 20:49:16 +0400 From: "Kentucky Mandeloid Mo." <ky@df.ru> To: freebsd-hackers@freebsd.org Subject: Custom kernel syscall module & data validation Message-ID: <200407022049.16063.ky@df.ru>
next in thread | raw e-mail | index | archive | help
Hi, hackers! I wrote a small kernel module whch impliments some syscall. Syscall takes a char * as a parameter. Theoriticaly its posible to pass a bad pointer from userland. What should I do in orde to check the pointer from userland? I use copyout(9) to store data from kernel to userland but it doesn't seams to be enough - systems got panic if I pass a bad pounter. I think I'm missing something important about kernel programming.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407022049.16063.ky>