Skip to contentSkip to conversation

linux-next: build failure after merge of the final tree (security-testing tree related)

PATCH Applied Stephen Rothwell 3 participants 3 messages Oct 20, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi James,

After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this:

security/selinux/ss/services.c: In function 'security_read_policy':
security/selinux/ss/services.c:3172: error: implicit declaration of function 'vmalloc_user' security/selinux/ss/services.c:3172: warning: assignment makes pointer from integer without a cast

Caused by commit ed167abda544bb7f8cf09dc3d3608c79e1cfb25f ("SELinux:
allow userspace to read policy back out of the kernel") and bb17427490e1e295f3c0550c308684bd952a585d ("selinux: implement mmap on /selinux/policy").

Please see Rule 1 (in Documentation/SubmitChecklist).

I applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Wed, 20 Oct 2010 16:08:00 +1100
Subject: [PATCH] selinux: include vmalloc.h for vmalloc_user

---
 security/selinux/ss/services.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
security/selinux/ss/services.c +1 -0
index 3a1739b..223c1ff 100644
@@ -51,6 +51,7 @@
 #include <linux/mutex.h>
 #include <linux/selinux.h>
 #include <linux/flex_array.h>
+#include <linux/vmalloc.h>
 #include <net/netlabel.h>
 
 #include "flask.h"
Signature · 6 lines
1.7.1

-- 
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
Acked-by
#1 lore raw
Quoted 14 lines · Stephen Rothwell

Hi James,

After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this:

security/selinux/ss/services.c: In function 'security_read_policy':
security/selinux/ss/services.c:3172: error: implicit declaration of function 'vmalloc_user' security/selinux/ss/services.c:3172: warning: assignment makes pointer from integer without a cast

Caused by commit ed167abda544bb7f8cf09dc3d3608c79e1cfb25f ("SELinux:
allow userspace to read policy back out of the kernel") and bb17427490e1e295f3c0550c308684bd952a585d ("selinux: implement mmap on /selinux/policy").

Quoted 7 lines

Please see Rule 1 (in Documentation/SubmitChecklist).

I applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Wed, 20 Oct 2010 16:08:00 +1100
Subject: [PATCH] selinux: include vmalloc.h for vmalloc_user

Huh, not sure why it builds cleanly here. I'm applying my patch series on top of linux-next from the 18th. In any case this looks correct.

Quoted 20 lines
---
 security/selinux/ss/services.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
security/selinux/ss/services.c +1 -0
index 3a1739b..223c1ff 100644
@@ -51,6 +51,7 @@
 #include <linux/mutex.h>
 #include <linux/selinux.h>
 #include <linux/flex_array.h>
+#include <linux/vmalloc.h>
 #include <net/netlabel.h>
 
 #include "flask.h"
Signature · 1 line
1.7.1
Applied
#2 lore raw
In reply to Stephen Rothwell
Quoted 9 lines · Stephen Rothwell

Hi James,

After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this:

security/selinux/ss/services.c: In function 'security_read_policy':
security/selinux/ss/services.c:3172: error: implicit declaration of function 'vmalloc_user' security/selinux/ss/services.c:3172: warning: assignment makes pointer from integer without a cast

Quoted 8 lines

Caused by commit ed167abda544bb7f8cf09dc3d3608c79e1cfb25f ("SELinux:
allow userspace to read policy back out of the kernel") and bb17427490e1e295f3c0550c308684bd952a585d ("selinux: implement mmap on /selinux/policy").

Please see Rule 1 (in Documentation/SubmitChecklist).

I applied the following patch for today:

Thanks, applied.

Quoted 29 lines

From: Stephen Rothwell <[email protected]>
Date: Wed, 20 Oct 2010 16:08:00 +1100
Subject: [PATCH] selinux: include vmalloc.h for vmalloc_user

---
 security/selinux/ss/services.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
security/selinux/ss/services.c +1 -0
index 3a1739b..223c1ff 100644
@@ -51,6 +51,7 @@
 #include <linux/mutex.h>
 #include <linux/selinux.h>
 #include <linux/flex_array.h>
+#include <linux/vmalloc.h>
 #include <net/netlabel.h>
 
 #include "flask.h"
Signature · 6 lines
1.7.1

-- 
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
Signature · 2 lines
James Morris
<[email protected]>