[PATCH] ecryptfs: add rename flag support

2021-02-26 Thread Jeffrey Mitchell
filesystem Signed-off-by: Jeffrey Mitchell --- fs/ecryptfs/inode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 18e9285fbb4c..647afc2fd754 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -601,9 +601,6

[PATCH] ecryptfs: fix kernel panic with null dev_name

2021-02-26 Thread Jeffrey Mitchell
f "dev_name" is null in ecryptfs_mount() Signed-off-by: Jeffrey Mitchell --- fs/ecryptfs/main.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c index e63259fdef28..b2f6a1937d23 100644 --- a/fs/ecryptfs/main.c +++ b/fs/ecryptfs/main

Re: [PATCH] ecryptfs: Fix inodes not being evicted until unmount

2021-02-02 Thread Jeffrey Mitchell
gt; vfs_unlink() -> nfs_unlink() -> > nfs_sillyrename() -> nfs_async_unlink() Yes, that is the code path that causes it. V/R, Jeffrey Mitchell

Re: [PATCH] xfs: set inode size after creating symlink

2021-01-21 Thread Jeffrey Mitchell
call to what ecryptfs_getattr_link() uses. The reported size still comes from i_size_read(). V/R, Jeffrey Mitchell

[PATCH] xfs: set inode size after creating symlink

2021-01-21 Thread Jeffrey Mitchell
"stat path/to/symlink/in/ecryptfs" will report "Size: 0" if the symlink was created after the last reboot on an XFS root. Call i_size_write() in xfs_symlink() Signed-off-by: Jeffrey Mitchell --- fs/xfs/xfs_symlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/xfs/xf

Re: [PATCH] ecryptfs: Fix inodes not being evicted until unmount

2020-12-18 Thread Jeffrey Mitchell
ode(); 0) | /* Unmounting eCryptFS */ -- 0) trace-a-1314 => umount-1336 -- 0) 2.986 us| ecryptfs_evict_inode(); On Fri, Dec 18, 2020 at 01:07:30PM -0600, Jeffrey Mitchell wrote: > On asynchronous b

[PATCH] ecryptfs: Fix inodes not being evicted until unmount

2020-12-18 Thread Jeffrey Mitchell
-by: Jeffrey Mitchell --- fs/ecryptfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index e23752d..f7594b6 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -147,7 +147,7 @@ static int ecryptfs_do_unlink(struct inode

[PATCH v2] nfs: Fix security label length not being reset

2020-09-15 Thread Jeffrey Mitchell
a longer security label. ls will not see that file nor any that are added afterwards, though they will exist on the backend. In nfs_readdir_page_filler(), reset security label buffer length before every reuse Signed-off-by: Jeffrey Mitchell --- v2: Added explanation from cover letter as requested by J

[PATCH] nfs: Fix security label length not being reset

2020-09-14 Thread Jeffrey Mitchell
a longer security label. ls will not see that file nor any that are added afterwards, though they will exist on the backend. - Jeffrey Jeffrey Mitchell (1): nfs: Fix security label length not being reset fs/nfs/dir.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.25.1

[PATCH] nfs: Fix security label length not being reset

2020-09-14 Thread Jeffrey Mitchell
In nfs_readdir_page_filler(), reset security label buffer length before every reuse Signed-off-by: Jeffrey Mitchell --- fs/nfs/dir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index a12f42e7d8c7..5ff6af4478a5 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c

[PATCH] nfs: Fix getxattr kernel panic and memory overflow

2020-08-05 Thread Jeffrey Mitchell
__vfs_getxattr+0x4e/0x70 sb_finish_set_opts+0x12c/0x240 selinux_set_mnt_opts+0x288/0x6a0 security_sb_set_mnt_opts+0x40/0x60 vfs_get_tree+0x57/0xb0 do_mount+0x742/0x9b0 __x64_sys_mount+0x89/0xc0 do_syscall_64+0x3e/0x70 - Jeffrey Jeffrey Mitchell (1): nfs: Fix getxattr kernel panic and memory

[PATCH] nfs: Fix getxattr kernel panic and memory overflow

2020-08-05 Thread Jeffrey Mitchell
Move the buffer size check to decode_attr_security_label() before memcpy() Only call memcpy() if the buffer is large enough Signed-off-by: Jeffrey Mitchell --- fs/nfs/nfs4proc.c | 2 -- fs/nfs/nfs4xdr.c | 5 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/nfs/nfs4proc.c

Re: [PATCH] ecryptfs: Fix inodes not being evicted until unmount

2020-05-08 Thread Jeffrey Mitchell
ode(); 0) | /* Unmounting eCryptFS */ -- 0) trace-a-1314 => umount-1336 -- 0) 2.986 us| ecryptfs_evict_inode(); On Fri, May 08, 2020 at 09:31:33AM -0500, Jeffrey Mitchell wrote: > On as

[PATCH] ecryptfs: Fix inodes not being evicted until unmount

2020-05-08 Thread Jeffrey Mitchell
-by: Jeffrey Mitchell --- fs/ecryptfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index e23752d..f7594b6 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -147,7 +147,7 @@ static int ecryptfs_do_unlink(struct inode