Page 1 of 1

2.6.16 snapshot & apm

PostPosted: Mon Apr 10, 2006 9:23 pm
by tosh
Hello.

I compiled letest 2.6.16 grsecurity snapshot from ~spender/ and got that warning:

Code: Select all
WARNING: /var/tmp/package-kernel-j9nU4b/kernel-2.6.16.2/lib/modules/2.6.16.2-kyuzz-1/kernel/arch/i386/kernel/apm.ko needs unknown symbol cpu_gdt_table


and the apm module refuses to load:

Code: Select all
grep gdt /var/log/kern.log
Mar 31 00:39:22 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Mar 31 00:39:26 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Mar 31 00:40:32 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Mar 31 01:33:52 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Mar 31 01:51:18 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Mar 31 01:51:21 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Apr  2 12:48:57 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Apr  2 12:49:01 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Apr  2 12:51:37 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Apr  2 12:52:14 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Apr  2 12:53:28 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Apr  2 12:54:44 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Apr  2 12:55:25 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Apr  5 00:55:27 kyuzz kernel: apm: Unknown symbol cpu_gdt_table
Apr  5 00:55:31 kyuzz kernel: apm: Unknown symbol cpu_gdt_table


Hope this helps.

Re: 2.6.16 snapshot & apm

PostPosted: Tue Apr 11, 2006 7:11 am
by PaX Team
tosh wrote:
Code: Select all
WARNING: /var/tmp/package-kernel-j9nU4b/kernel-2.6.16.2/lib/modules/2.6.16.2-kyuzz-1/kernel/arch/i386/kernel/apm.ko needs unknown symbol cpu_gdt_table
thanks, this should fix it:
Code: Select all
--- linux-2.6.16-pax/arch/i386/kernel/i386_ksyms.c      2006-03-20 09:28:44.000000000 +0100
+++ linux-2.6.16-pax/arch/i386/kernel/i386_ksyms.c      2006-04-11 11:49:10.000000000 +0200
@@ -3,7 +3,7 @@
 #include <asm/checksum.h>
 #include <asm/desc.h>

-EXPORT_SYMBOL_GPL(cpu_gdt_descr);
+EXPORT_SYMBOL_GPL(cpu_gdt_table);

 EXPORT_SYMBOL(__down_failed);
 EXPORT_SYMBOL(__down_failed_interruptible);
if it begins to complain about cpu_gdt_descr then you'll need both exports, let me know.

PostPosted: Tue Apr 11, 2006 8:34 am
by tosh
The above small patch fixed problem with apm.

Thank you for fast replay and help.