Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No hardened 3.x kernels on PPC/PPC64?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
jhardin
n00b
n00b


Joined: 12 Oct 2005
Posts: 30

PostPosted: Wed Apr 25, 2012 2:07 am    Post subject: No hardened 3.x kernels on PPC/PPC64? Reply with quote

Trying to build linux-3.3.2-hardened on PPC64 I get this:

Code:
athena linux # make
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (GRKERNSEC_HARDENED_SERVER) selects GRKERNSEC_IO which has unmet direct dependencies (GRKERNSEC && X86)
warning: (GRKERNSEC_HIGH && GRKERNSEC_HARDENED_SERVER && GRKERNSEC_HARDENED_WORKSTATION) selects PAX_MEMORY_UDEREF which has unmet direct dependencies (X86 && !UML_X86 && !XEN && !GRKERNSEC_HARDENED_VIRTUALIZATION)
warning: (GRKERNSEC_HARDENED_SERVER && GRKERNSEC_HARDENED_WORKSTATION && GRKERNSEC_HARDENED_VIRTUALIZATION) selects PAX_MEMORY_STACKLEAK which has unmet direct dependencies (X86)
warning: (GRKERNSEC_HIGH && GRKERNSEC_HARDENED_SERVER && GRKERNSEC_HARDENED_WORKSTATION && GRKERNSEC_HARDENED_VIRTUALIZATION) selects PAX_RANDKSTACK which has unmet direct dependencies (PAX && X86_TSC && X86)
warning: (GRKERNSEC_HARDENED_SERVER) selects GRKERNSEC_IO which has unmet direct dependencies (GRKERNSEC && X86)
warning: (GRKERNSEC_HIGH && GRKERNSEC_HARDENED_SERVER && GRKERNSEC_HARDENED_WORKSTATION) selects PAX_MEMORY_UDEREF which has unmet direct dependencies (X86 && !UML_X86 && !XEN && !GRKERNSEC_HARDENED_VIRTUALIZATION)
warning: (GRKERNSEC_HARDENED_SERVER && GRKERNSEC_HARDENED_WORKSTATION && GRKERNSEC_HARDENED_VIRTUALIZATION) selects PAX_MEMORY_STACKLEAK which has unmet direct dependencies (X86)
warning: (GRKERNSEC_HIGH && GRKERNSEC_HARDENED_SERVER && GRKERNSEC_HARDENED_WORKSTATION && GRKERNSEC_HARDENED_VIRTUALIZATION) selects PAX_RANDKSTACK which has unmet direct dependencies (PAX && X86_TSC && X86)
  CHK     include/linux/version.h

Given the apparent explicit requirements for X86, is the 3.3 hardened kernel not supported on PPC/PPC64?

When I try to compile linux-3.1.10-hardened I get this:

Code:
athena linux # make -j 1
  HOSTCC  -fPIC tools/gcc/constify_plugin.o
  HOSTCC  -fPIC tools/gcc/stackleak_plugin.o
  HOSTLLD -shared tools/gcc/constify_plugin.so
  HOSTLLD -shared tools/gcc/stackleak_plugin.so
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  HOSTCC  scripts/basic/fixdep
  CC      kernel/bounds.s
  GEN     include/generated/bounds.h
  CC      arch/powerpc/kernel/asm-offsets.s
  GEN     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/util.o
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/genksyms/genksyms.o
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTLD  scripts/genksyms/genksyms
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  CC      init/main.o
  CHK     include/generated/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
In file included from include/linux/icmpv6.h:82:0,
                 from include/linux/ipv6.h:220,
                 from include/net/ipv6.h:16,
                 from include/linux/sunrpc/clnt.h:25,
                 from include/linux/nfs_fs.h:50,
                 from init/do_mounts.c:20:
include/linux/skbuff.h: In function '__dev_alloc_skb':
include/linux/skbuff.h:1553:43: warning: comparison of distinct pointer types lacks a cast
include/linux/skbuff.h:1555:20: warning: comparison of distinct pointer types lacks a cast
include/linux/skbuff.h: In function '__skb_cow':
include/linux/skbuff.h:1650:17: warning: comparison of distinct pointer types lacks a cast
include/linux/skbuff.h:1651:14: warning: comparison of distinct pointer types lacks a cast
include/linux/skbuff.h:1656:32: warning: comparison of distinct pointer types lacks a cast
include/linux/skbuff.h:1656:32: warning: comparison of distinct pointer types lacks a cast
  CC      init/do_mounts_rd.o
  LD      init/mounts.o
  CC      init/noinitramfs.o
  LD      init/built-in.o
  LD      usr/built-in.o
  CC      arch/powerpc/kernel/cputable.o
  CC      arch/powerpc/kernel/ptrace.o
  CC      arch/powerpc/kernel/syscalls.o
  CC      arch/powerpc/kernel/irq.o
arch/powerpc/kernel/irq.c: In function 'irq_alloc_host':
arch/powerpc/kernel/irq.c:551:3: error: assignment of read-only location '*host->ops'
make[1]: *** [arch/powerpc/kernel/irq.o] Error 1
make: *** [arch/powerpc/kernel] Error 2

...has anybody successfully built a hardened 3.x kernel on PPC64?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum