lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 17 May 2020 16:25:25 -0500
From:   "Serge E. Hallyn" <serge@...lyn.com>
To:     James.Bottomley@...senPartnership.com
Cc:     Christian Brauner <christian.brauner@...onical.com>,
        lkml <linux-kernel@...r.kernel.org>, serge@...lyn.com
Subject: [PATCH 1/1] shiftfs: specify struct members

struct path is declared as randomize_layout, so specify the
struct members when initializing to avoid build failure.

Signed-off-by: Serge Hallyn <shallyn@...co.com>
---

[ this is for https://git.kernel.org/pub/scm/linux/kernel/git/jejb/binfmt_misc.git/commit/?h=shiftfs-v3 ,
which i was just building for an experiment ]

 fs/shiftfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/shiftfs.c b/fs/shiftfs.c
index 7984a93745d2..6028244c2f42 100644
--- a/fs/shiftfs.c
+++ b/fs/shiftfs.c
@@ -535,7 +535,7 @@ static int shiftfs_getattr(const struct path *path, struct kstat *stat,
 	struct dentry *real = path->dentry->d_fsdata;
 	struct inode *reali = real->d_inode;
 	const struct inode_operations *iop = reali->i_op;
-	struct path newpath = { path->dentry->d_sb->s_fs_info, real };
+	struct path newpath = { .mnt = path->dentry->d_sb->s_fs_info, .dentry = real };
 	int err = 0;
 
 	if (iop->getattr)
-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ