2009-09-07 13:40:37

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: security-testing tree build failure

Hi David,

Today's linux-next build (arm lots of configs) failed like this:

arch/arm/kernel/signal.c: In function 'do_notify_resume':
arch/arm/kernel/signal.c:701: error: implicit declaration of function 'tracehook_notify_resume'

Caused by commit d0420c83f39f79afb82010c2d2cafd150eef651b ("KEYS: Extend
TIF_NOTIFY_RESUME to (almost) all architectures [try #6]"). Presumably
the include of linux/tracehook.h is missing.

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (526.00 B)
(No filename) (197.00 B)
Download all attachments

2009-09-07 13:43:36

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: security-testing tree build failure

On Mon, 7 Sep 2009 23:40:28 +1000 Stephen Rothwell <[email protected]> wrote:
>
> Today's linux-next build (arm lots of configs) failed like this:
>
> arch/arm/kernel/signal.c: In function 'do_notify_resume':
> arch/arm/kernel/signal.c:701: error: implicit declaration of function 'tracehook_notify_resume'
>
> Caused by commit d0420c83f39f79afb82010c2d2cafd150eef651b ("KEYS: Extend
> TIF_NOTIFY_RESUME to (almost) all architectures [try #6]"). Presumably
> the include of linux/tracehook.h is missing.

The avr32 defconfig build fails the same way as well. Thee may be
others, that is as far as we have gone so far.
--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (728.00 B)
(No filename) (197.00 B)
Download all attachments

2009-09-08 00:40:21

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: security-testing tree build failure

Hi James, David,

On Mon, 7 Sep 2009 23:43:31 +1000 Stephen Rothwell <[email protected]> wrote:
>
> On Mon, 7 Sep 2009 23:40:28 +1000 Stephen Rothwell <[email protected]> wrote:
> >
> > Today's linux-next build (arm lots of configs) failed like this:
> >
> > arch/arm/kernel/signal.c: In function 'do_notify_resume':
> > arch/arm/kernel/signal.c:701: error: implicit declaration of function 'tracehook_notify_resume'
> >
> > Caused by commit d0420c83f39f79afb82010c2d2cafd150eef651b ("KEYS: Extend
> > TIF_NOTIFY_RESUME to (almost) all architectures [try #6]"). Presumably
> > the include of linux/tracehook.h is missing.
>
> The avr32 defconfig build fails the same way as well. Thee may be
> others, that is as far as we have gone so far.

This also broke the alpha and mips builds. I am going to use the version
of the security-testing tree from next-20090902 (the latest version I
have before the above commit was added) for today.

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (1.03 kB)
(No filename) (197.00 B)
Download all attachments

2009-09-08 03:22:54

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: security-testing tree build failure

Hi James, David,

On Tue, 8 Sep 2009 10:40:12 +1000 Stephen Rothwell <[email protected]> wrote:
>
> This also broke the alpha and mips builds. I am going to use the version

And cris :-(

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (295.00 B)
(No filename) (197.00 B)
Download all attachments

2009-09-09 07:31:20

by David Howells

[permalink] [raw]
Subject: [PATCH] KEYS: Add missing linux/tracehook.h #inclusions

Add #inclusions of linux/tracehook.h to those arch files that had the tracehook
call for TIF_NOTIFY_RESUME added when support for that flag was added to that
arch.

Signed-off-by: David Howells <[email protected]>
---

arch/alpha/kernel/signal.c | 1 +
arch/arm/kernel/signal.c | 1 +
arch/avr32/kernel/signal.c | 1 +
arch/cris/kernel/ptrace.c | 1 +
arch/h8300/kernel/signal.c | 1 +
arch/m32r/kernel/signal.c | 1 +
arch/mips/kernel/signal.c | 1 +
arch/parisc/kernel/signal.c | 1 +
8 files changed, 8 insertions(+), 0 deletions(-)


diff --git a/arch/alpha/kernel/signal.c b/arch/alpha/kernel/signal.c
index d91aaa7..0932dbb 100644
--- a/arch/alpha/kernel/signal.c
+++ b/arch/alpha/kernel/signal.c
@@ -20,6 +20,7 @@
#include <linux/binfmts.h>
#include <linux/bitops.h>
#include <linux/syscalls.h>
+#include <linux/tracehook.h>

#include <asm/uaccess.h>
#include <asm/sigcontext.h>
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c
index ea4ad3a..b76fe06 100644
--- a/arch/arm/kernel/signal.c
+++ b/arch/arm/kernel/signal.c
@@ -12,6 +12,7 @@
#include <linux/personality.h>
#include <linux/freezer.h>
#include <linux/uaccess.h>
+#include <linux/tracehook.h>

#include <asm/elf.h>
#include <asm/cacheflush.h>
diff --git a/arch/avr32/kernel/signal.c b/arch/avr32/kernel/signal.c
index de9f7fe..64f886f 100644
--- a/arch/avr32/kernel/signal.c
+++ b/arch/avr32/kernel/signal.c
@@ -16,6 +16,7 @@
#include <linux/ptrace.h>
#include <linux/unistd.h>
#include <linux/freezer.h>
+#include <linux/tracehook.h>

#include <asm/uaccess.h>
#include <asm/ucontext.h>
diff --git a/arch/cris/kernel/ptrace.c b/arch/cris/kernel/ptrace.c
index 32e9d5e..48b0f39 100644
--- a/arch/cris/kernel/ptrace.c
+++ b/arch/cris/kernel/ptrace.c
@@ -16,6 +16,7 @@
#include <linux/errno.h>
#include <linux/ptrace.h>
#include <linux/user.h>
+#include <linux/tracehook.h>

#include <asm/uaccess.h>
#include <asm/page.h>
diff --git a/arch/h8300/kernel/signal.c b/arch/h8300/kernel/signal.c
index abac3ee..af842c3 100644
--- a/arch/h8300/kernel/signal.c
+++ b/arch/h8300/kernel/signal.c
@@ -39,6 +39,7 @@
#include <linux/tty.h>
#include <linux/binfmts.h>
#include <linux/freezer.h>
+#include <linux/tracehook.h>

#include <asm/setup.h>
#include <asm/uaccess.h>
diff --git a/arch/m32r/kernel/signal.c b/arch/m32r/kernel/signal.c
index f80bac1..144b0f1 100644
--- a/arch/m32r/kernel/signal.c
+++ b/arch/m32r/kernel/signal.c
@@ -21,6 +21,7 @@
#include <linux/stddef.h>
#include <linux/personality.h>
#include <linux/freezer.h>
+#include <linux/tracehook.h>
#include <asm/cacheflush.h>
#include <asm/ucontext.h>
#include <asm/uaccess.h>
diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c
index c2acf31..6254041 100644
--- a/arch/mips/kernel/signal.c
+++ b/arch/mips/kernel/signal.c
@@ -21,6 +21,7 @@
#include <linux/compiler.h>
#include <linux/syscalls.h>
#include <linux/uaccess.h>
+#include <linux/tracehook.h>

#include <asm/abi.h>
#include <asm/asm.h>
diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c
index 5ca1c02..8eb3c63 100644
--- a/arch/parisc/kernel/signal.c
+++ b/arch/parisc/kernel/signal.c
@@ -25,6 +25,7 @@
#include <linux/stddef.h>
#include <linux/compat.h>
#include <linux/elf.h>
+#include <linux/tracehook.h>
#include <asm/ucontext.h>
#include <asm/rt_sigframe.h>
#include <asm/uaccess.h>

2009-09-09 08:39:12

by James Morris

[permalink] [raw]
Subject: Re: [PATCH] KEYS: Add missing linux/tracehook.h #inclusions

On Wed, 9 Sep 2009, David Howells wrote:

> Add #inclusions of linux/tracehook.h to those arch files that had the tracehook
> call for TIF_NOTIFY_RESUME added when support for that flag was added to that
> arch.
>
> Signed-off-by: David Howells <[email protected]>


Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next


--
James Morris
<[email protected]>

2009-09-09 08:48:29

by Stephen Rothwell

[permalink] [raw]
Subject: Re: [PATCH] KEYS: Add missing linux/tracehook.h #inclusions

Hi James, David,

On Wed, 9 Sep 2009 18:38:55 +1000 (EST) James Morris <[email protected]> wrote:
>
> Applied to
> git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next

Thanks guys.

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (313.00 B)
(No filename) (197.00 B)
Download all attachments