2.6.16 snapshot & apm

Discuss and suggest new grsecurity features

2.6.16 snapshot & apm

Postby tosh » Mon Apr 10, 2006 9:23 pm

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.
tosh
 
Posts: 19
Joined: Mon Apr 10, 2006 9:13 pm

Re: 2.6.16 snapshot & apm

Postby PaX Team » Tue Apr 11, 2006 7:11 am

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.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Postby tosh » Tue Apr 11, 2006 8:34 am

The above small patch fixed problem with apm.

Thank you for fast replay and help.
tosh
 
Posts: 19
Joined: Mon Apr 10, 2006 9:13 pm


Return to grsecurity development