Problems when compiling kernel with fedora core 10

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Problems when compiling kernel with fedora core 10

Postby arcueid » Sun Mar 22, 2009 1:28 pm

Hello everyone,

I got latest fedora 10 with kernel.org and grsecurity-2.1.13-2.6.28.8-200903191958.patch.
The same problems are showing up when using the stable grsec version.
When using kernel without patch no warnings are showing up. I would appreciate any ideas how to fix :P
I didn't try to use the finished kernel so far since I believe that it won't boot then.

following problems occur during make:

HOSTCC scripts/genksyms/lex.o
In file included from scripts/genksyms/lex.l:102:
scripts/genksyms/keywords.gperf: In function 'is_reserved_word':
scripts/genksyms/keywords.gperf:65: warning: missing initializer
scripts/genksyms/keywords.gperf:65: warning: (near initialization for 'wordlist[0].token')
scripts/genksyms/keywords.gperf:65: warning: missing initializer
scripts/genksyms/keywords.gperf:65: warning: (near initialization for 'wordlist[1].token')
scripts/genksyms/keywords.gperf:65: warning: missing initializer
scripts/genksyms/keywords.gperf:65: warning: (near initialization for 'wordlist[2].token')
scripts/genksyms/keywords.gperf:27: warning: missing initializer
scripts/genksyms/keywords.gperf:27: warning: (near initialization for 'wordlist[4].token')
scripts/genksyms/keywords.gperf:9: warning: missing initializer
scripts/genksyms/keywords.gperf:9: warning: (near initialization for 'wordlist[6].token')
scripts/genksyms/keywords.gperf:10: warning: missing initializer
scripts/genksyms/keywords.gperf:10: warning: (near initialization for 'wordlist[8].token')
scripts/genksyms/keywords.gperf:10: warning: missing initializer
scripts/genksyms/keywords.gperf:10: warning: (near initialization for 'wordlist[9].token')
scripts/genksyms/keywords.gperf:53: warning: missing initializer
scripts/genksyms/keywords.gperf:53: warning: (near initialization for 'wordlist[11].token')
scripts/genksyms/keywords.gperf:11: warning: missing initializer
scripts/genksyms/keywords.gperf:11: warning: (near initialization for 'wordlist[27].token')
scripts/genksyms/keywords.gperf:37: warning: missing initializer
scripts/genksyms/keywords.gperf:37: warning: (near initialization for 'wordlist[32].token')
scripts/genksyms/keywords.gperf:8: warning: missing initializer
scripts/genksyms/keywords.gperf:8: warning: (near initialization for 'wordlist[35].token')
scripts/genksyms/keywords.gperf:48: warning: missing initializer
scripts/genksyms/keywords.gperf:48: warning: (near initialization for 'wordlist[41].token')
scripts/genksyms/keywords.gperf:48: warning: missing initializer
scripts/genksyms/keywords.gperf:48: warning: (near initialization for 'wordlist[42].token')
scripts/genksyms/keywords.gperf:43: warning: missing initializer
scripts/genksyms/keywords.gperf:43: warning: (near initialization for 'wordlist[46].token')
scripts/genksyms/keywords.gperf:43: warning: missing initializer
scripts/genksyms/keywords.gperf:43: warning: (near initialization for 'wordlist[47].token')
scripts/genksyms/keywords.gperf:51: warning: missing initializer
scripts/genksyms/keywords.gperf:51: warning: (near initialization for 'wordlist[49].token')
scripts/genksyms/keywords.gperf:35: warning: missing initializer
scripts/genksyms/keywords.gperf:35: warning: (near initialization for 'wordlist[52].token')
scripts/genksyms/keywords.gperf:6: warning: missing initializer
scripts/genksyms/keywords.gperf:6: warning: (near initialization for 'wordlist[54].token')
scripts/genksyms/keywords.gperf:6: warning: missing initializer
scripts/genksyms/keywords.gperf:6: warning: (near initialization for 'wordlist[55].token')
scripts/genksyms/keywords.gperf:42: warning: missing initializer
scripts/genksyms/keywords.gperf:42: warning: (near initialization for 'wordlist[59].token')
scripts/genksyms/keywords.gperf:44: warning: missing initializer
scripts/genksyms/keywords.gperf:44: warning: (near initialization for 'wordlist[62].token')
scripts/genksyms/keywords.gperf:44: warning: missing initializer
scripts/genksyms/keywords.gperf:44: warning: (near initialization for 'wordlist[63].token')
HOSTCC scripts/genksyms/parse.o

HOSTCC scripts/mod/modpost.o
scripts/mod/modpost.c: In function 'read_symbols':
scripts/mod/modpost.c:1554: warning: missing initializer
scripts/mod/modpost.c:1554: warning: (near initialization for 'info.size')
scripts/mod/modpost.c: In function 'write_dump':
scripts/mod/modpost.c:1941: warning: missing initializer
scripts/mod/modpost.c:1941: warning: (near initialization for 'buf.p')
scripts/mod/modpost.c: In function 'write_markers':
scripts/mod/modpost.c:2020: warning: missing initializer
scripts/mod/modpost.c:2020: warning: (near initialization for 'buf.p')
scripts/mod/modpost.c: In function 'main':
scripts/mod/modpost.c:2056: warning: missing initializer
scripts/mod/modpost.c:2056: warning: (near initialization for 'buf.p')

CC arch/x86/kernel/efi_32.o
arch/x86/kernel/efi_32.c: In function 'efi_call_phys_prelog':
arch/x86/kernel/efi_32.c:59: warning: assignment makes integer from pointer without a cast
arch/x86/kernel/efi_32.c: In function 'efi_call_phys_epilog':
arch/x86/kernel/efi_32.c:68: warning: assignment makes integer from pointer without a cast

CC kernel/futex.o
kernel/futex.c: In function 'exit_robust_list':
kernel/futex.c:1939: warning: 'next_pi' may be used uninitialized in this function

CC fs/gfs2/ops_inode.o
fs/gfs2/ops_inode.c: In function 'gfs2_mkdir':
/usr/src/linux-2.6.28.8/arch/x86/include/asm/string_32.h:75: warning: array subscript is above array bounds

CC [M] fs/xfs/xfs_mount.o
fs/xfs/xfs_mount.c: In function 'xfs_mod_sb':
fs/xfs/xfs_mount.c:1457: warning: array subscript is above array bounds

CC drivers/acpi/tables/tbfadt.o
drivers/acpi/tables/tbfadt.c: In function 'acpi_tb_create_local_fadt':
/usr/src/linux-2.6.28.8/arch/x86/include/asm/string_32.h:75: warning: array subscript is above array bounds

CC drivers/serial/8250_pci.o
drivers/serial/8250_pci.c: In function 'skip_tx_en_setup':
drivers/serial/8250_pci.c:773: warning: passing argument 2 of 'pci_default_setup' discards qualifiers from pointer target type
drivers/serial/8250_pci.c: At top level:
drivers/serial/8250_pci.c:847: warning: initialization from incompatible pointer type
drivers/serial/8250_pci.c:854: warning: initialization from incompatible pointer type
drivers/serial/8250_pci.c:861: warning: initialization from incompatible pointer type

CC drivers/usb/core/hcd.o
drivers/usb/core/hcd.c: In function 'usb_hcd_poll_rh_status':
/usr/src/linux-2.6.28.8/arch/x86/include/asm/string_32.h:75: warning: array subscript is above array bounds

MODPOST vmlinux.o
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/linux/compile.h

----- with debug
LD vmlinux.o
MODPOST vmlinux.o
WARNING: vmlinux.o(.cpuinit.data+0x0): Section mismatch in reference from the variable initial_code to the function .init.text:i386_start_kernel()
The variable __cpuinitdata initial_code references
a function __init i386_start_kernel().
If i386_start_kernel is only used by initial_code then
annotate i386_start_kernel with a matching annotation.

thx!
arcueid
 
Posts: 2
Joined: Sun Mar 22, 2009 11:08 am

Re: Problems when compiling kernel with fedora core 10

Postby spender » Sun Mar 22, 2009 4:00 pm

Additional compiler warning flags are added by PaX to reveal more potential bugs within the vanilla kernel. The addition of grsecurity/PaX hasn't added code that is causing those warnings (which don't cause compilation to fail), it's just providing additional information.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: Problems when compiling kernel with fedora core 10

Postby arcueid » Sun Mar 22, 2009 8:44 pm

Hi spender,

can you guarantee that it will work once i add the finished kernel to /boot ? I can't have a risk of a none booting system of this root server.
It doesn't look ok to me on the last part so :P

bye
arcueid
 
Posts: 2
Joined: Sun Mar 22, 2009 11:08 am


Return to grsecurity support