ecryptfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can't list directories with kernel 4.4.14 and ecryptfs
@ 2016-06-27 16:27 Henry Jensen
  2016-06-27 19:19 ` Tyler Hicks
  0 siblings, 1 reply; 11+ messages in thread
From: Henry Jensen @ 2016-06-27 16:27 UTC (permalink / raw)
  To: ecryptfs

Greetings,

I'm using ecryptfs with Slackware current and kernel 4.4.14. In kernel
4.4.14 was a patch introduced which make it impossilble to list the
contents of a directory.[0]

The mount itself works, but listing a directory results in an error
"wrong medium type". Showing the contents and the file itself (presumed
the name of the file is known) works.


Example:

henry@subnote:~$ ecryptfs-mount-private 
henry@subnote:~$ echo "foo bar" >Private/foobar
henry@subnote:~$ ls -l Private/foobar
-rw-r--r-- 1 henry users 8 Jun 27 18:13 Private/foobar
henry@subnote:~$ cat Private/foobar
foo bar
henry@subnote:~$ ls Private/
ls: cannot open directory 'Private/': Wrong medium type
henry@subnote:~$ cat Private/foo*  
cat: 'Private/foo*': No such file or directory

henry@subnote:~$ ls .Private/      
ECRYPTFS_FNEK_ENCRYPTED.FWZL6yY3cgf9JkRRDnGzSkFOIUQir-xo2KY6u52Ft53bpb4SnqMhgeIIl---

Output of dmesg:

[  946.181961] Error opening lower file for lower_dentry [0xffff88008d532180] and lower_mnt [0xffff8800bbf90f20]; rc = [-124]
[  946.181973] ecryptfs_open: Error attempting to initialize the lower file for the dentry with name [/]; rc = [-124]


See also [1]
[0] https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.14
[1] http://www.linuxquestions.org/questions/slackware-14/can%27t-access-ecryptfs-with-kernel-4-4-14-a-4175583163/

Regards,
Henry

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Can't list directories with kernel 4.4.14 and ecryptfs
  2016-06-27 16:27 Can't list directories with kernel 4.4.14 and ecryptfs Henry Jensen
@ 2016-06-27 19:19 ` Tyler Hicks
  2016-06-27 21:21   ` Henry Jensen
  0 siblings, 1 reply; 11+ messages in thread
From: Tyler Hicks @ 2016-06-27 19:19 UTC (permalink / raw)
  To: Henry Jensen, ecryptfs


[-- Attachment #1.1: Type: text/plain, Size: 1836 bytes --]

On 06/27/2016 11:27 AM, Henry Jensen wrote:
> Greetings,
> 
> I'm using ecryptfs with Slackware current and kernel 4.4.14. In kernel
> 4.4.14 was a patch introduced which make it impossilble to list the
> contents of a directory.[0]
> 
> The mount itself works, but listing a directory results in an error
> "wrong medium type". Showing the contents and the file itself (presumed
> the name of the file is known) works.

Hi Henry - sorry for the trouble. What filesystem are you mounting
eCryptfs on top of?

Tyler

> 
> 
> Example:
> 
> henry@subnote:~$ ecryptfs-mount-private 
> henry@subnote:~$ echo "foo bar" >Private/foobar
> henry@subnote:~$ ls -l Private/foobar
> -rw-r--r-- 1 henry users 8 Jun 27 18:13 Private/foobar
> henry@subnote:~$ cat Private/foobar
> foo bar
> henry@subnote:~$ ls Private/
> ls: cannot open directory 'Private/': Wrong medium type
> henry@subnote:~$ cat Private/foo*  
> cat: 'Private/foo*': No such file or directory
> 
> henry@subnote:~$ ls .Private/      
> ECRYPTFS_FNEK_ENCRYPTED.FWZL6yY3cgf9JkRRDnGzSkFOIUQir-xo2KY6u52Ft53bpb4SnqMhgeIIl---
> 
> Output of dmesg:
> 
> [  946.181961] Error opening lower file for lower_dentry [0xffff88008d532180] and lower_mnt [0xffff8800bbf90f20]; rc = [-124]
> [  946.181973] ecryptfs_open: Error attempting to initialize the lower file for the dentry with name [/]; rc = [-124]
> 
> 
> See also [1]
> [0] https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.14
> [1] http://www.linuxquestions.org/questions/slackware-14/can%27t-access-ecryptfs-with-kernel-4-4-14-a-4175583163/
> 
> Regards,
> Henry
> --
> To unsubscribe from this list: send the line "unsubscribe ecryptfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Can't list directories with kernel 4.4.14 and ecryptfs
  2016-06-27 19:19 ` Tyler Hicks
@ 2016-06-27 21:21   ` Henry Jensen
  2016-06-27 22:46     ` Kenneth Tan
  2016-06-27 22:47     ` Tyler Hicks
  0 siblings, 2 replies; 11+ messages in thread
From: Henry Jensen @ 2016-06-27 21:21 UTC (permalink / raw)
  To: ecryptfs

Hi Tyler,

Am 27. Juni 2016 21:19:08 MESZ, schrieb Tyler Hicks <tyhicks@canonical.com>:
>On 06/27/2016 11:27 AM, Henry Jensen wrote:
>> Greetings,
>> 
>> I'm using ecryptfs with Slackware current and kernel 4.4.14. In
>kernel
>> 4.4.14 was a patch introduced which make it impossilble to list the
>> contents of a directory.[0]
>> 
>> The mount itself works, but listing a directory results in an error
>> "wrong medium type". Showing the contents and the file itself
>(presumed
>> the name of the file is known) works.
>
>Hi Henry - sorry for the trouble. What filesystem are you mounting
>eCryptfs on top of?


I use ext4. With 'ecryptfs-mount-private' $HOME/.Private is mounted on $HOME/Private. 

ecryptfs worked perfectly until I upgraded to kernel 4.4.14. I tested it on another machine with Slackware64 and a 64bit kernel now - same result.

Regards,
Henry

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Can't list directories with kernel 4.4.14 and ecryptfs
  2016-06-27 21:21   ` Henry Jensen
@ 2016-06-27 22:46     ` Kenneth Tan
  2016-06-27 22:47     ` Tyler Hicks
  1 sibling, 0 replies; 11+ messages in thread
From: Kenneth Tan @ 2016-06-27 22:46 UTC (permalink / raw)
  To: ecryptfs

I'm using BTRFS under, but same environment, when I upgraded to 4.4.14,
ecryptfs broke with the exact same response. Running Slackware64 (-current tree)


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Can't list directories with kernel 4.4.14 and ecryptfs
  2016-06-27 21:21   ` Henry Jensen
  2016-06-27 22:46     ` Kenneth Tan
@ 2016-06-27 22:47     ` Tyler Hicks
  2016-06-29  4:36       ` Tyler Hicks
  1 sibling, 1 reply; 11+ messages in thread
From: Tyler Hicks @ 2016-06-27 22:47 UTC (permalink / raw)
  To: Henry Jensen, ecryptfs


[-- Attachment #1.1: Type: text/plain, Size: 1326 bytes --]

On 06/27/2016 04:21 PM, Henry Jensen wrote:
> Hi Tyler,
> 
> Am 27. Juni 2016 21:19:08 MESZ, schrieb Tyler Hicks <tyhicks@canonical.com>:
>> On 06/27/2016 11:27 AM, Henry Jensen wrote:
>>> Greetings,
>>>
>>> I'm using ecryptfs with Slackware current and kernel 4.4.14. In
>> kernel
>>> 4.4.14 was a patch introduced which make it impossilble to list the
>>> contents of a directory.[0]
>>>
>>> The mount itself works, but listing a directory results in an error
>>> "wrong medium type". Showing the contents and the file itself
>> (presumed
>>> the name of the file is known) works.
>>
>> Hi Henry - sorry for the trouble. What filesystem are you mounting
>> eCryptfs on top of?
> 
> 
> I use ext4. With 'ecryptfs-mount-private' $HOME/.Private is mounted on $HOME/Private. 
> 
> ecryptfs worked perfectly until I upgraded to kernel 4.4.14. I tested it on another machine with Slackware64 and a 64bit kernel now - same result.

Thanks. The backported version of the patch needs to be adjusted. I'll
try to get a patch out the stable list tomorrow.

Tyler

> 
> Regards,
> Henry
> 
> --
> To unsubscribe from this list: send the line "unsubscribe ecryptfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Can't list directories with kernel 4.4.14 and ecryptfs
  2016-06-27 22:47     ` Tyler Hicks
@ 2016-06-29  4:36       ` Tyler Hicks
  2016-07-01 20:15         ` Henry Jensen
  0 siblings, 1 reply; 11+ messages in thread
From: Tyler Hicks @ 2016-06-29  4:36 UTC (permalink / raw)
  To: Henry Jensen, Kenneth Tan; +Cc: ecryptfs


[-- Attachment #1.1: Type: text/plain, Size: 1602 bytes --]

On 06/27/2016 05:47 PM, Tyler Hicks wrote:
> On 06/27/2016 04:21 PM, Henry Jensen wrote:
>> Hi Tyler,
>>
>> Am 27. Juni 2016 21:19:08 MESZ, schrieb Tyler Hicks <tyhicks@canonical.com>:
>>> On 06/27/2016 11:27 AM, Henry Jensen wrote:
>>>> Greetings,
>>>>
>>>> I'm using ecryptfs with Slackware current and kernel 4.4.14. In
>>> kernel
>>>> 4.4.14 was a patch introduced which make it impossilble to list the
>>>> contents of a directory.[0]
>>>>
>>>> The mount itself works, but listing a directory results in an error
>>>> "wrong medium type". Showing the contents and the file itself
>>> (presumed
>>>> the name of the file is known) works.
>>>
>>> Hi Henry - sorry for the trouble. What filesystem are you mounting
>>> eCryptfs on top of?
>>
>>
>> I use ext4. With 'ecryptfs-mount-private' $HOME/.Private is mounted on $HOME/Private. 
>>
>> ecryptfs worked perfectly until I upgraded to kernel 4.4.14. I tested it on another machine with Slackware64 and a 64bit kernel now - same result.
> 
> Thanks. The backported version of the patch needs to be adjusted. I'll
> try to get a patch out the stable list tomorrow.

I've sent a fix to the stable list (and cc'ed the ecryptfs list). I
tested on 4.4.y and 3.18.y on ext{2,3,4}, btrfs, and xfs. It should fix
the regression that you hit.

Tyler

> 
> Tyler
> 
>>
>> Regards,
>> Henry
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe ecryptfs" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
> 
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Can't list directories with kernel 4.4.14 and ecryptfs
  2016-06-29  4:36       ` Tyler Hicks
@ 2016-07-01 20:15         ` Henry Jensen
  2016-07-01 21:06           ` Tyler Hicks
  0 siblings, 1 reply; 11+ messages in thread
From: Henry Jensen @ 2016-07-01 20:15 UTC (permalink / raw)
  To: Tyler Hicks; +Cc: Kenneth Tan, ecryptfs

Hello Tyler

On Tue, 28 Jun 2016 23:36:23 -0500
Tyler Hicks <tyhicks@canonical.com> wrote:

> > Thanks. The backported version of the patch needs to be adjusted. I'll
> > try to get a patch out the stable list tomorrow.  
> 
> I've sent a fix to the stable list (and cc'ed the ecryptfs list). I
> tested on 4.4.y and 3.18.y on ext{2,3,4}, btrfs, and xfs. It should fix
> the regression that you hit.


Sorry, the patch did not work for me. I am still getting error "Wrong
medium type" wwhen accessing directories.


Regards,

Henry

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Can't list directories with kernel 4.4.14 and ecryptfs
  2016-07-01 20:15         ` Henry Jensen
@ 2016-07-01 21:06           ` Tyler Hicks
  2016-07-01 21:16             ` Henry Jensen
  0 siblings, 1 reply; 11+ messages in thread
From: Tyler Hicks @ 2016-07-01 21:06 UTC (permalink / raw)
  To: Henry Jensen; +Cc: Kenneth Tan, ecryptfs


[-- Attachment #1.1: Type: text/plain, Size: 1202 bytes --]

On 07/01/2016 03:15 PM, Henry Jensen wrote:
> Hello Tyler
> 
> On Tue, 28 Jun 2016 23:36:23 -0500
> Tyler Hicks <tyhicks@canonical.com> wrote:
> 
>>> Thanks. The backported version of the patch needs to be adjusted. I'll
>>> try to get a patch out the stable list tomorrow.  
>>
>> I've sent a fix to the stable list (and cc'ed the ecryptfs list). I
>> tested on 4.4.y and 3.18.y on ext{2,3,4}, btrfs, and xfs. It should fix
>> the regression that you hit.
> 
> 
> Sorry, the patch did not work for me. I am still getting error "Wrong
> medium type" wwhen accessing directories.
> 

Hi Henry - Can you please double check that you're running the patched
kernel? I only ask that because I have a pretty high degree of
confidence that the patch fixes the issue due to the amount of testing
that I performed. I'm in the middle of rebuilding the linux-stable 4.4.y
kernel with that patch applied on top to retest. If you could double
check your environment in the meantime, I'd appreciate it.

If it turns out that you're still hitting the bug, I'll need reproducer
instructions as my tests don't seem to be sufficient. Thank you!

Tyler

> 
> Regards,
> 
> Henry
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Can't list directories with kernel 4.4.14 and ecryptfs
  2016-07-01 21:06           ` Tyler Hicks
@ 2016-07-01 21:16             ` Henry Jensen
  2016-07-01 21:33               ` Tyler Hicks
  2016-07-01 21:49               ` Henry Jensen
  0 siblings, 2 replies; 11+ messages in thread
From: Henry Jensen @ 2016-07-01 21:16 UTC (permalink / raw)
  To: Tyler Hicks; +Cc: Kenneth Tan, ecryptfs

Hi Tyler,

hold on, I think I ran into the same issue as the guys from Manjaro, see

https://forum.manjaro.org/t/kenel-4-4-14-lts-has-issues-with-ecryptfs-on-testing-29-june-2016/5001/9

and

https://github.com/manjaro/packages-core/commit/ff5431986233877dba816e77debe0bf1eacf6628

tl;dr - the patch was malformed. Will check again with correct formatted patch.

Regards,

Henry

Am 1. Juli 2016 23:06:56 MESZ, schrieb Tyler Hicks <tyhicks@canonical.com>:
>On 07/01/2016 03:15 PM, Henry Jensen wrote:
>> Hello Tyler
>> 
>> On Tue, 28 Jun 2016 23:36:23 -0500
>> Tyler Hicks <tyhicks@canonical.com> wrote:
>> 
>>>> Thanks. The backported version of the patch needs to be adjusted.
>I'll
>>>> try to get a patch out the stable list tomorrow.  
>>>
>>> I've sent a fix to the stable list (and cc'ed the ecryptfs list). I
>>> tested on 4.4.y and 3.18.y on ext{2,3,4}, btrfs, and xfs. It should
>fix
>>> the regression that you hit.
>> 
>> 
>> Sorry, the patch did not work for me. I am still getting error "Wrong
>> medium type" wwhen accessing directories.
>> 
>
>Hi Henry - Can you please double check that you're running the patched
>kernel? I only ask that because I have a pretty high degree of
>confidence that the patch fixes the issue due to the amount of testing
>that I performed. I'm in the middle of rebuilding the linux-stable
>4.4.y
>kernel with that patch applied on top to retest. If you could double
>check your environment in the meantime, I'd appreciate it.
>
>If it turns out that you're still hitting the bug, I'll need reproducer
>instructions as my tests don't seem to be sufficient. Thank you!
>
>Tyler
>
>> 
>> Regards,
>> 
>> Henry
>> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Can't list directories with kernel 4.4.14 and ecryptfs
  2016-07-01 21:16             ` Henry Jensen
@ 2016-07-01 21:33               ` Tyler Hicks
  2016-07-01 21:49               ` Henry Jensen
  1 sibling, 0 replies; 11+ messages in thread
From: Tyler Hicks @ 2016-07-01 21:33 UTC (permalink / raw)
  To: Henry Jensen; +Cc: Kenneth Tan, ecryptfs


[-- Attachment #1.1: Type: text/plain, Size: 2178 bytes --]

My automated tests all pass. I was about to move onto manual testing but
I'll hold off until I hear back from you.

Tyler

On 07/01/2016 04:16 PM, Henry Jensen wrote:
> Hi Tyler,
> 
> hold on, I think I ran into the same issue as the guys from Manjaro, see
> 
> https://forum.manjaro.org/t/kenel-4-4-14-lts-has-issues-with-ecryptfs-on-testing-29-june-2016/5001/9
> 
> and
> 
> https://github.com/manjaro/packages-core/commit/ff5431986233877dba816e77debe0bf1eacf6628
> 
> tl;dr - the patch was malformed. Will check again with correct formatted patch.
> 
> Regards,
> 
> Henry
> 
> Am 1. Juli 2016 23:06:56 MESZ, schrieb Tyler Hicks <tyhicks@canonical.com>:
>> On 07/01/2016 03:15 PM, Henry Jensen wrote:
>>> Hello Tyler
>>>
>>> On Tue, 28 Jun 2016 23:36:23 -0500
>>> Tyler Hicks <tyhicks@canonical.com> wrote:
>>>
>>>>> Thanks. The backported version of the patch needs to be adjusted.
>> I'll
>>>>> try to get a patch out the stable list tomorrow.  
>>>>
>>>> I've sent a fix to the stable list (and cc'ed the ecryptfs list). I
>>>> tested on 4.4.y and 3.18.y on ext{2,3,4}, btrfs, and xfs. It should
>> fix
>>>> the regression that you hit.
>>>
>>>
>>> Sorry, the patch did not work for me. I am still getting error "Wrong
>>> medium type" wwhen accessing directories.
>>>
>>
>> Hi Henry - Can you please double check that you're running the patched
>> kernel? I only ask that because I have a pretty high degree of
>> confidence that the patch fixes the issue due to the amount of testing
>> that I performed. I'm in the middle of rebuilding the linux-stable
>> 4.4.y
>> kernel with that patch applied on top to retest. If you could double
>> check your environment in the meantime, I'd appreciate it.
>>
>> If it turns out that you're still hitting the bug, I'll need reproducer
>> instructions as my tests don't seem to be sufficient. Thank you!
>>
>> Tyler
>>
>>>
>>> Regards,
>>>
>>> Henry
>>>
> 
> --
> To unsubscribe from this list: send the line "unsubscribe ecryptfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Can't list directories with kernel 4.4.14 and ecryptfs
  2016-07-01 21:16             ` Henry Jensen
  2016-07-01 21:33               ` Tyler Hicks
@ 2016-07-01 21:49               ` Henry Jensen
  1 sibling, 0 replies; 11+ messages in thread
From: Henry Jensen @ 2016-07-01 21:49 UTC (permalink / raw)
  To: Tyler Hicks; +Cc: Kenneth Tan, ecryptfs

Hello,

I confirmed it - for some reason the patch I used and was distributed
by Slackware and Manjaro was malformatted (@@ was transformed into
<at> <at>). I applied the corrected patch and it worked - ecryptfs is
working normally again, as expected.

Regards,

Henry
  



On Fri, 01 Jul 2016 23:16:46 +0200
Henry Jensen <hjensen@gmx.de> wrote:

> Hi Tyler,
> 
> hold on, I think I ran into the same issue as the guys from Manjaro, see
> 
> https://forum.manjaro.org/t/kenel-4-4-14-lts-has-issues-with-ecryptfs-on-testing-29-june-2016/5001/9
> 
> and
> 
> https://github.com/manjaro/packages-core/commit/ff5431986233877dba816e77debe0bf1eacf6628
> 
> tl;dr - the patch was malformed. Will check again with correct formatted patch.
> 
> Regards,
> 
> Henry
> 
> Am 1. Juli 2016 23:06:56 MESZ, schrieb Tyler Hicks <tyhicks@canonical.com>:
> >On 07/01/2016 03:15 PM, Henry Jensen wrote:  
> >> Hello Tyler
> >> 
> >> On Tue, 28 Jun 2016 23:36:23 -0500
> >> Tyler Hicks <tyhicks@canonical.com> wrote:
> >>   
> >>>> Thanks. The backported version of the patch needs to be adjusted.  
> >I'll  
> >>>> try to get a patch out the stable list tomorrow.    
> >>>
> >>> I've sent a fix to the stable list (and cc'ed the ecryptfs list). I
> >>> tested on 4.4.y and 3.18.y on ext{2,3,4}, btrfs, and xfs. It should  
> >fix  
> >>> the regression that you hit.  
> >> 
> >> 
> >> Sorry, the patch did not work for me. I am still getting error "Wrong
> >> medium type" wwhen accessing directories.
> >>   
> >
> >Hi Henry - Can you please double check that you're running the patched
> >kernel? I only ask that because I have a pretty high degree of
> >confidence that the patch fixes the issue due to the amount of testing
> >that I performed. I'm in the middle of rebuilding the linux-stable
> >4.4.y
> >kernel with that patch applied on top to retest. If you could double
> >check your environment in the meantime, I'd appreciate it.
> >
> >If it turns out that you're still hitting the bug, I'll need reproducer
> >instructions as my tests don't seem to be sufficient. Thank you!
> >
> >Tyler
> >  
> >> 
> >> Regards,
> >> 
> >> Henry
> >>   

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-07-01 21:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-27 16:27 Can't list directories with kernel 4.4.14 and ecryptfs Henry Jensen
2016-06-27 19:19 ` Tyler Hicks
2016-06-27 21:21   ` Henry Jensen
2016-06-27 22:46     ` Kenneth Tan
2016-06-27 22:47     ` Tyler Hicks
2016-06-29  4:36       ` Tyler Hicks
2016-07-01 20:15         ` Henry Jensen
2016-07-01 21:06           ` Tyler Hicks
2016-07-01 21:16             ` Henry Jensen
2016-07-01 21:33               ` Tyler Hicks
2016-07-01 21:49               ` Henry Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).