Bug 11359

Summary: Compile error in arch/x86/kernel/ptrace.c
Product: Other Reporter: François Valenduc (francoisvalenduc)
Component: Loadable Security Modules (LSM)Assignee: Other/LSM (other_lsm)
Status: RESOLVED PATCH_ALREADY_AVAILABLE    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.27-rc3-git4 Subsystem:
Regression: --- Bisected commit-id:

Description François Valenduc 2008-08-17 06:51:19 UTC
Latest working kernel version: 2.6.27-rc3-git3
Earliest failing kernel version: 2.6.27-rc3-git4
Distribution: Gentoo
Hardware Environment: Packard Bell Easynote MB86, SMP, Intel Core2 Duo
Software Environment:
Problem Description:

Steps to reproduce: try to compile the kernel

When I compile the last git version of kernel 2.6.27-rc3 (git4), I get the following compile error:

In file included from arch/x86/kernel/ptrace.c:19:

  CC      arch/x86/kernel/ptrace.o

In file included from arch/x86/kernel/ptrace.c:19:

include/linux/security.h: In function ‘security_ptrace_traceme’:

include/linux/security.h:1760: erreur: ‘parent’ undeclared (first use in this function)

include/linux/security.h:1760: erreur: (Each undeclared identifier is reported only once

include/linux/security.h:1760: erreur: for each function it appears in.)

After running a bisection, it appears that the commit 	5cd9c58fbe9ec92b45b27e131719af4f2bd9eb40 (security: Fix setting of PF_SUPERPRIV by __capable()) is problematic.

If I revert it, the kernel can be compiled.
Comment 1 Ingo Molnar 2008-08-17 07:27:20 UTC
>            Summary: Compile error in arch/x86/kernel/ptrace.c

solved by:

  http://lkml.org/lkml/2008/8/16/277

	Ingo
Comment 2 François Valenduc 2008-08-17 10:59:13 UTC
This patch indeed solves the problem.