Hi all I saw a stack trace while booting the 2.6.17-rc6-mm2 kernel. Which looks like this BUG: using smp_processor_id() in preemptible [00000001] code: init/1 caller is __handle_mm_fault+0x22/0x248 [] show_trace+0x27/0x29 [] dump_stack+0x26/0x28 [] debug_smp_processor_id+0x9f/0xb0 [] __handle_mm_fault+0x22/0x248 [] do_page_fault+0x17e/0x605 [] error_code+0x39/0x40 [] padzero+0x2c/0x37 [] load_elf_binary+0x6e2/0xcfc [] search_binary_handler+0x96/0x201 [] do_execve+0x18f/0x243 [] sys_execve+0x3c/0x81 [] syscall_call+0x7/0xb Cause for the bug is a set of functions count_vm_event(), count_vm_events() and get_cpu_vm_events() calling smp_processor_id() in preemptible context without disabling irq's So I developed patch for this problem,attaching the patch here