linux-next: build failure after merge of the security tree
Subsystems (3)
Hi all,
After merging the security tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:
fs/anon_inodes.c: In function 'anon_inode_make_secure_inode':fs/anon_inodes.c:70:10: error: implicit declaration of function 'security_inode_init_security_anon'; did you mean 'security_inode_init_security'? [-Werror=implicit-function-declaration]
70 | error = security_inode_init_security_anon(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| security_inode_init_securityCaused by commit
2749d3f84a70 ("Add a new LSM-supporting anonymous inode interface")
# CONFIG_SECURITY is not set
Also, the explicit include of linux/security.h is missing ...
I have added the following patch for today.
From b2bae25c9b715e06f7e802ec7b51cfbfec046e6c Mon Sep 17 00:00:00 2001
From: Stephen Rothwell <[email protected]>
Date: Wed, 8 Jul 2020 13:43:01 +1000
Subject: [PATCH] fix up for "Add a new LSM-supporting anonymous inode interface"
--- fs/anon_inodes.c | 1 + include/linux/security.h | 7 +++++++ 2 files changed, 8 insertions(+)
fs/anon_inodes.c +1 -0
@@ -21,6 +21,7 @@#include <linux/magic.h> #include <linux/anon_inodes.h> #include <linux/pseudo_fs.h> +#include <linux/security.h> #include <linux/uaccess.h>
include/linux/security.h +7 -0
@@ -735,6 +735,13 @@ static inline int security_inode_init_security(struct inode *inode,return 0 ; } +static inline int security_inode_init_security_anon (struct inode *inode, +const struct qstr *name, +const struct inode *context_inode) +{ +return 0 ; +} + static inline int security_old_inode_init_security(struct inode *inode, struct inode *dir, const struct qstr *qstr,
Signature · 5 lines
2.27.0 -- Cheers, Stephen Rothwell
Hi all,
Quoted 51 lines · On Wed, 8 Jul 2020 14:00:34 +1000 Stephen Rothwell <[email protected]> wrote:
After merging the security tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
fs/anon_inodes.c: In function 'anon_inode_make_secure_inode':fs/anon_inodes.c:70:10: error: implicit declaration of function 'security_inode_init_security_anon'; did you mean 'security_inode_init_security'? [-Werror=implicit-function-declaration]70 | error = security_inode_init_security_anon( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | security_inode_init_securityCaused by commit
2749d3f84a70("Add a new LSM-supporting anonymous inode interface")#
CONFIG_SECURITYis not setAlso, the explicit include of
linux/security.his missing ...I have added the following patch for today.
From
b2bae25c9b715e06f7e802ec7b51cfbfec046e6cMon Sep 17 00:00:00 2001
From: Stephen Rothwell <[email protected]>
Date: Wed, 8 Jul 2020 13:43:01 +1000
Subject: [PATCH] fix up for "Add a new LSM-supporting anonymous inode interface"Signed-off-by Stephen Rothwell <[email protected]>--- fs/anon_inodes.c | 1 + include/linux/security.h | 7 +++++++ 2 files changed, 8 insertions(+)fs/anon_inodes.c +1
-0@@ -21,6 +21,7 @@#include <linux/magic.h> #include <linux/anon_inodes.h> #include <linux/pseudo_fs.h> +#include <linux/security.h> #include <linux/uaccess.h> include/linux/security.h +0
-0@@ -735,6 +735,13 @@ static inline int security_inode_init_security(struct inode *inode,return 0 ; }
include/linux/security.h static inline int security_inode_init_security(struct inode *inode, · line 747
Quoted 10 lines
include/linux/security.h +7
-0+static inline int security_inode_init_security_anon (struct inode *inode, +const struct qstr *name, +const struct inode *context_inode) +{ +return 0 ; +} + static inline int security_old_inode_init_security(struct inode *inode, struct inode *dir, const struct qstr *qstr,
I am still applying the above patch ...
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 2 lines · On Mon, 13 Jul 2020 12:04:19 +1000 Stephen Rothwell <[email protected]>…
I am still applying the above patch ...
And the mail address Daniel Colascione <[email protected]> bounces.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 53 lines · On Mon, 13 Jul 2020 12:04:19 +1000 Stephen Rothwell <[email protected]>…
Quoted 51 lines · On Wed, 8 Jul 2020 14:00:34 +1000 Stephen Rothwell <[email protected]> wrote:
After merging the security tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
fs/anon_inodes.c: In function 'anon_inode_make_secure_inode':fs/anon_inodes.c:70:10: error: implicit declaration of function 'security_inode_init_security_anon'; did you mean 'security_inode_init_security'? [-Werror=implicit-function-declaration]70 | error = security_inode_init_security_anon( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | security_inode_init_securityCaused by commit
2749d3f84a70("Add a new LSM-supporting anonymous inode interface")#
CONFIG_SECURITYis not setAlso, the explicit include of
linux/security.his missing ...I have added the following patch for today.
From
b2bae25c9b715e06f7e802ec7b51cfbfec046e6cMon Sep 17 00:00:00 2001
From: Stephen Rothwell <[email protected]>
Date: Wed, 8 Jul 2020 13:43:01 +1000
Subject: [PATCH] fix up for "Add a new LSM-supporting anonymous inode interface"Signed-off-by Stephen Rothwell <[email protected]>--- fs/anon_inodes.c | 1 + include/linux/security.h | 7 +++++++ 2 files changed, 8 insertions(+)fs/anon_inodes.c +1
-0@@ -21,6 +21,7 @@#include <linux/magic.h> #include <linux/anon_inodes.h> #include <linux/pseudo_fs.h> +#include <linux/security.h> #include <linux/uaccess.h> include/linux/security.h +0
-0@@ -735,6 +735,13 @@ static inline int security_inode_init_security(struct inode *inode,return 0 ; }
Quoted 12 lines
include/linux/security.h static inline int security_inode_init_security(struct inode *inode, · line 747
Quoted 10 lines
include/linux/security.h +7
-0+static inline int security_inode_init_security_anon (struct inode *inode, +const struct qstr *name, +const struct inode *context_inode) +{ +return 0 ; +} + static inline int security_old_inode_init_security(struct inode *inode, struct inode *dir, const struct qstr *qstr,I am still applying the above patch ...
The merge window is coming up fast ... is anything happening about this failure?
Signature · 2 lines
Cheers, Stephen Rothwell
James Morris
maintainerQuoted 4 lines · Stephen Rothwell
Quoted 1 line
I am still applying the above patch ...
The merge window is coming up fast ... is anything happening about this failure?
A new patch is coming, but I'm not sure this code has had enough review from the core VFS folk.
Please drop secure_uffd_v5.9 for the time being.
Signature · 2 lines
James Morris <[email protected]>
Hi James,
Quoted 5 lines · On Thu, 30 Jul 2020 12:35:03 +1000 (AEST) James Morris <[email protected]>…
Quoted 2 lines · Stephen Rothwell
Quoted 1 line
I am still applying the above patch ...
Quoted 7 lines
Quoted 2 lines
The merge window is coming up fast ... is anything happening about this failure?
A new patch is coming, but I'm not sure this code has had enough review from the core VFS folk.
Please drop secure_uffd_v5.9 for the time being.
You just need to remove/revert it from your security tree
(git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git#next-testing).
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
Quoted 12 lines · On Thu, 30 Jul 2020 12:59:04 +1000 Stephen Rothwell <[email protected]>…
Hi James,
Quoted 8 lines · On Thu, 30 Jul 2020 12:35:03 +1000 (AEST) James Morris <[email protected]>…
Quoted 4 lines · Stephen Rothwell
Quoted 1 line
I am still applying the above patch ...
The merge window is coming up fast ... is anything happening about this failure?
Quoted 7 lines
Quoted 4 lines
A new patch is coming, but I'm not sure this code has had enough review from the core VFS folk.
Please drop secure_uffd_v5.9 for the time being.
You just need to remove/revert it from your security tree
(git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git#next-testing).
In today's linux-next I have reverted the three commits in that branch:
d08ac70b1e0d Wire UFFD up to SELinux2b72259a271a Teach SELinux about anonymous inodes 2749d3f84a70 Add a new LSM-supporting anonymous inode interface
Signature · 2 lines
Cheers, Stephen Rothwell
James Morris
maintainerQuoted 11 lines · Stephen Rothwell
Hi James,
Quoted 8 lines · On Thu, 30 Jul 2020 12:35:03 +1000 (AEST) James Morris <[email protected]>…
Quoted 4 lines · Stephen Rothwell
Quoted 1 line
I am still applying the above patch ...
The merge window is coming up fast ... is anything happening about this failure?
Quoted 7 lines
Quoted 4 lines
A new patch is coming, but I'm not sure this code has had enough review from the core VFS folk.
Please drop secure_uffd_v5.9 for the time being.
You just need to remove/revert it from your security tree
(git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git#next-testing).
Done.
Signature · 2 lines
James Morris <[email protected]>