Re: Kernel Executable Pages

2008-07-15 Thread Asim
Thanks Peter for the great explanation! I'm working towards modifiying the kernel by adding a new layer so luckily I have the change_page_attr_set available to me. Thanks, Asim On 7/15/08, Peter Teoh <[EMAIL PROTECTED]> wrote: > This is a feature of the Intel CPU - called the NX bit. Once turn

Re: Building a kernel module for 2.6.23 kernel on a machine with 2.6.25 kernel.

2008-07-15 Thread Peter Teoh
are u sure? or is it modprobe -f? and modprobe have others like force-vermagic which i don't understand what is it. On Tue, Jul 15, 2008 at 1:42 PM, Mulyadi Santosa <[EMAIL PROTECTED]> wrote: > Hi Mark... > > On Mon, Jul 14, 2008 at 5:41 PM, Mark Ryden <[EMAIL PROTECTED]> wrote: >> Hello,

Re: Kernel Executable Pages

2008-07-15 Thread Peter Teoh
This is a feature of the Intel CPU - called the NX bit. Once turned on, it is a hardware feature whereby u can specify whether the code is made executeable or not. As of 2nd edition of Understanding Linux Kernel, it is still mentioned that x86 cannot distinguished between executeable and non-ex

Re: Assembly code for calling a function on amd machine

2008-07-15 Thread Erik Mouw
On Tue, Jul 15, 2008 at 06:51:46PM -0500, Asim wrote: > I have an AMD Opteron(tm) Processor. I want to write assembly code for > calling a function say f with n arguments already in stack and store > the result in res. I can write on Intel but on AMD machines the > arguments are not being passed co

Assembly code for calling a function on amd machine

2008-07-15 Thread Asim
Hi, I have an AMD Opteron(tm) Processor. I want to write assembly code for calling a function say f with n arguments already in stack and store the result in res. I can write on Intel but on AMD machines the arguments are not being passed correctly. Does anyone know what changes I need to make for

Graphic card for PowerPC platform

2008-07-15 Thread Bizhan Gholikhamseh (bgholikh)
Hi, I am trying to install a PCI Graphic card on an embedded PowerPC system (Freescale evaluation board) running Linux. We would like to run Flash application on the card. As you may know there are no BIOS for PowerPC board to enable the graphic card. Here are my questions: 1- Has anyone done

Re: How to trick the kernel for Ram size?

2008-07-15 Thread Robert P. J. Day
On Tue, 15 Jul 2008, Bizhan Gholikhamseh (bgholikh) wrote: > Hi, > Currently, we have a system with 512 M Ram system memory, how could I > trick the kernel to think the system memory is only 256 MByte? "mem=256M" at boot time rday -- =

How to trick the kernel for Ram size?

2008-07-15 Thread Bizhan Gholikhamseh (bgholikh)
Hi, Currently, we have a system with 512 M Ram system memory, how could I trick the kernel to think the system memory is only 256 MByte? Regards, Bizhan

Re: Kernel Executable Pages

2008-07-15 Thread Asim
I'm allocation some function pointers and they were not executable. I wanted to make them executable. I was able to fix my problem. Let me know if there is any bug in what I did. my_array_of _fn_pointers = kmalloc(sizeof your_favourite_fn_ptr_struct_here, GFP_KERNEL); addr = my_array_of _fn_poin

Re: Kernel Executable Pages

2008-07-15 Thread Asim
The itf is actually addr variable . That was a typo while formatting code in the mail. Regards, Asim On 7/15/08, Asim <[EMAIL PROTECTED]> wrote: > I'm allocation some function pointers and they were not executable. I > wanted to make them executable. I was able to fix my problem. Let me > know if

Re: Kernel Executable Pages

2008-07-15 Thread Sandeep K Sinha
Can you be a bit more specific ? On Tue, Jul 15, 2008 at 9:55 PM, Asim <[EMAIL PROTECTED]> wrote: > Hi, > > I try to allocate memory to generate some executable code in memory. > But when i try to execute - I get the following error "kernel tried to > execute NX-protected page - exploit attempt? (

Kernel Executable Pages

2008-07-15 Thread Asim
Hi, I try to allocate memory to generate some executable code in memory. But when i try to execute - I get the following error "kernel tried to execute NX-protected page - exploit attempt? (uid: 0)". Is there some different way to allocate executable memory (and not data). Kindly help. Regards, A

Re: [PATCH] x86: Introducing asm-x86/syscalls.h

2008-07-15 Thread Jaswinder Singh
Hello David, On Tue, 2008-07-15 at 07:58 -0700, David Woodhouse wrote: > I don't like this bit though: > > > --- a/include/linux/syscalls.h > > +++ b/include/linux/syscalls.h > > @@ -65,6 +65,10 @@ struct getcpu_cache; > > #include > > #include > > > > +#ifdef CONFIG_X86 > > +#include > >

Re: [PATCH] x86: traps and do_traps under one hood

2008-07-15 Thread Jaswinder Singh
Hello Alexander, On Tue, 2008-07-15 at 15:51 +0200, Alexander van Heukelum wrote: > > I think moving the declarations to a header file is a good thing, > but I don't think mach_traps.h is a suitable place. I CC new patch to you : [PATCH] x86: Introducing asm-x86/traps.h > The definitions >

Re: request for webcam driver help

2008-07-15 Thread Christophe Lucas
[EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > Hi All, > > I am new to linux drivers. > > I bought the webcam(BUFFALO BWC-30MS03/WH) in Japan and want to use the same > with my linux machine. > But i donno where to start. > > I have very little understanding of USB device drivers. > > I have s

Re: [PATCH] x86: traps and do_traps under one hood

2008-07-15 Thread Alexander van Heukelum
On Tue, 15 Jul 2008 16:22:38 +0530, "Jaswinder Singh" <[EMAIL PROTECTED]> said: > > Declaring x86 traps under one hood. > Declaring x86 do_traps before defining them. > > Signed-off-by: Jaswinder Singh <[EMAIL PROTECTED]> > --- > arch/x86/kernel/traps_32.c| 20 - > arch

Re: [PATCH] x86: Introducing asm-x86/syscalls.h

2008-07-15 Thread David Woodhouse
On Tue, 2008-07-15 at 18:36 +0530, Jaswinder Singh wrote: > Updated Patch: > > declaring arch-dependent syscalls for x86 under one hood Thanks Jaswinder, this looks quite sensible in general and should go some way towards making sparse shut up about undeclared functions. You should Cc Ingo though

Re: [PATCH] x86: traps and do_traps under one hood

2008-07-15 Thread David Woodhouse
On Tue, 2008-07-15 at 16:22 +0530, Jaswinder Singh wrote: > Declaring x86 traps under one hood. > Declaring x86 do_traps before defining them. > arch/x86/kernel/traps_32.c| 20 - > arch/x86/kernel/traps_64.c| 21 -- > include/asm-x86/mach-default/m

Re: [PATCH] x86: Introducing asm-x86/syscalls.h

2008-07-15 Thread Jaswinder Singh
Updated Patch: declaring arch-dependent syscalls for x86 under one hood Signed-off-by: Jaswinder Singh <[EMAIL PROTECTED]> --- arch/x86/kernel/ldt.c|1 + arch/x86/kernel/process_32.c |1 + arch/x86/kernel/process_64.c |1 + arch/x86/kernel/signal_32.c |1 + arch/x86/kern

[PATCH] x86: traps and do_traps under one hood

2008-07-15 Thread Jaswinder Singh
Declaring x86 traps under one hood. Declaring x86 do_traps before defining them. Signed-off-by: Jaswinder Singh <[EMAIL PROTECTED]> --- arch/x86/kernel/traps_32.c| 20 - arch/x86/kernel/traps_64.c| 21 -- include/asm-x86/mach-default/mach_traps

[PATCH] x86: Introducing asm-x86/syscalls.h

2008-07-15 Thread Jaswinder Singh
declaring arch-dependent syscalls for x86 under one hood Signed-off-by: Jaswinder Singh <[EMAIL PROTECTED]> --- arch/x86/kernel/ldt.c|1 + arch/x86/kernel/process_32.c |1 + arch/x86/kernel/signal_32.c |1 + arch/x86/kernel/tls.c|1 + arch/x86/kernel/vm86_32.c

Re: "soft" vs "hard" real-time?

2008-07-15 Thread Bernd Petrovitsch
On Tue, 2008-07-15 at 08:52 +0200, Roberto A. Foglietta wrote: > 2008/7/14 Bernd Petrovitsch <[EMAIL PROTECTED]>: > > On Mon, 2008-07-14 at 20:47 +0200, Roberto A. Foglietta wrote: > >> 2008/7/14 Robert P. J. Day <[EMAIL PROTECTED]>: > >> > > >> > is there a good online explanation of the differe

Problem while loading custom tty driver...

2008-07-15 Thread ashish mahamuni
I am trying to write a tty driver So as usual I tried compiling driver that I got from Linux Device Driver Book.. I've attached the same file here... My problem is..when I try to load this module I get this error. kobject_add failed for ttty3 with -EEXIST, don't try to register thing

Re: "soft" vs "hard" real-time?

2008-07-15 Thread Roberto A. Foglietta
2008/7/14 Bernd Petrovitsch <[EMAIL PROTECTED]>: > On Mon, 2008-07-14 at 20:47 +0200, Roberto A. Foglietta wrote: >> 2008/7/14 Robert P. J. Day <[EMAIL PROTECTED]>: >> > >> > is there a good online explanation of the difference WRT linux? >> > thanks. >> >> Sorry for the attachment but an image is