From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16709 invoked from network); 31 Mar 2000 12:33:00 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 31 Mar 2000 12:33:00 -0000 Received: from diplodocus.quadrics.com (diplodocus.quadrics.com [194.202.174.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id HAA32113 for ; Fri, 31 Mar 2000 07:32:59 -0500 Received: from quadrics.com (positron [194.202.174.10]) by diplodocus.quadrics.com (8.9.3/8.9.3) with ESMTP id NAA06352 for ; Fri, 31 Mar 2000 13:32:58 +0100 (BST) Sender: addy@quadrics.com Message-ID: <38E49AFB.131E6088@quadrics.com> Date: Fri, 31 Mar 2000 13:32:59 +0100 From: David Addison Organization: Quadrics Supercomputers World X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: AXP LIST Subject: vmlinux .got size > 64k and Oops Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi again, in my quest to stop my module from generating Oops whenever I touch a bad user pointer using copy_from_user() I think I have found the root cause. The problem stems from the values in the kernel __ex_table section not matching up with the instructions that they are supposed to protect. I think this is caused by the linker getting confused when the .got table exceeds 64k bytes. Looking at a stock RH6.1 kernel we see; objdump -h /boot/vmlinux-2.2.13-0.9 Idx Name Size VMA LMA File off Algn 11 .got 00011190 fffffc00005737e8 fffffc00005737e8 002737e8 2**3 0x11190 = 70032 So running a simple program like; main() { poll( 0, 10, 10); } Generates; <1>Unable to handle kernel paging request at virtual address 0000000000000000 a.out(636): Oops 0 pc = [] ra = [] ps = 0000 So apart from putting the kernel on a big diet is there anyway to fix this e.g. is the linker (ld) broken ? Cheers, Addy.