> > >Subject: Calling syscalls from x86-64 kernel results in a crash on Opteron machines >Date: Mon, 13 Sep 2004 17:04:17 +0300 >From: Constantine Gavrilov >To: bugs@x86-64.org, linux-kernel@vger.kernel.org > >Hello: > >We have a piece of kernel code that calls some system calls in kernel >context (from a process with mm and a daemonized kernel thread that does >not have mm). This works fine on IA64 and i386 architectures. > .............. >Attached please find a test module that tries to call the umask() (JUST >TO DEMONSTRATE a problem) via the syscall machanism. Both methods (the >_syscall1() marco and GLIBC INLINE_SYCALL() were used. > > I forgot to attach a header file with glibc version of syscall inline implementation. -- ---------------------------------------- Constantine Gavrilov Kernel Developer Qlusters Software Ltd 1 Azrieli Center, Tel-Aviv Phone: +972-3-6081977 Fax: +972-3-6081841 ----------------------------------------