EcryptFS development
 help / color / mirror / Atom feed
* async crashes
@ 2013-03-30 13:57 Jarkko Sakkinen
  2013-04-05 23:52 ` Tyler Hicks
  0 siblings, 1 reply; 3+ messages in thread
From: Jarkko Sakkinen @ 2013-03-30 13:57 UTC (permalink / raw)
  To: ecryptfs

Hi

I've been experimenting with async branch of ecryptfs for some
workloads. Sometimes it crashes so that ecryptfs_encrypt_extent_done()
first reports -EINPROGRESS (-115) to kernel log. After that it crashes
in ablkcipher_walk_phys().

I looked at ecryptfs_encrypt_extent_done() and this made me think
whether it should have special case for having -EBUSY and -EINPROGRESS.

Sorry about bit coares "bug report" but I'm not expert either with
ecryptfs or crypto implementation.

Thanks.

/Jarkko

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

* Re: async crashes
  2013-03-30 13:57 async crashes Jarkko Sakkinen
@ 2013-04-05 23:52 ` Tyler Hicks
  2013-04-18 20:45   ` Jarkko Sakkinen
  0 siblings, 1 reply; 3+ messages in thread
From: Tyler Hicks @ 2013-04-05 23:52 UTC (permalink / raw)
  To: Jarkko Sakkinen; +Cc: ecryptfs

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

On 2013-03-30 15:57:10, Jarkko Sakkinen wrote:
> Hi
> 
> I've been experimenting with async branch of ecryptfs for some
> workloads. Sometimes it crashes so that ecryptfs_encrypt_extent_done()
> first reports -EINPROGRESS (-115) to kernel log. After that it crashes
> in ablkcipher_walk_phys().

Were you building with Zeev's patch titled "eCryptfs: ablkcipher support
- add workqueue"? A (temporary) link to the patch can be found here:

http://git.kernel.org/cgit/linux/kernel/git/tyhicks/ecryptfs.git/commit/?h=async

Do you have a way to reproduce this? Any exotic hardware? Any crypto
acceleration hardware?

> I looked at ecryptfs_encrypt_extent_done() and this made me think
> whether it should have special case for having -EBUSY and -EINPROGRESS.

Looking at other ablkcipher callbacks, I'd think we'd at least need a
special case for -EINPROGRESS.

> 
> Sorry about bit coares "bug report" but I'm not expert either with
> ecryptfs or crypto implementation.

No problem, thanks for bringing it to our attention!


Additionally, I just cc'ed you on a different patch that I have been
working as an alternative to the async patch. Maybe you can give it a
try, as well.

Tyler

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: async crashes
  2013-04-05 23:52 ` Tyler Hicks
@ 2013-04-18 20:45   ` Jarkko Sakkinen
  0 siblings, 0 replies; 3+ messages in thread
From: Jarkko Sakkinen @ 2013-04-18 20:45 UTC (permalink / raw)
  To: Tyler Hicks; +Cc: ecryptfs

Hi

Sorry I haven't answered this before. And sorry for top-posting
but I can now summarize this so it makes sense..

I tested this with Intel Medfield hardware and SEP driver
(drivers/staging/sep). It turned out that SEP driver
crashed while encrypting extents of a page.

I also did a test where I mocked "err = -EINPROGRESS;" into
ecryptfs_encrypt_extent_done and tested what it would produce.
No crashes/oops whatsoever. So I guess this was completely
false alarm from ecryptfs perspective.

/Jarkko

On Sat, Apr 6, 2013, at 2:52, Tyler Hicks wrote:
> On 2013-03-30 15:57:10, Jarkko Sakkinen wrote:
> > Hi
> > 
> > I've been experimenting with async branch of ecryptfs for some
> > workloads. Sometimes it crashes so that ecryptfs_encrypt_extent_done()
> > first reports -EINPROGRESS (-115) to kernel log. After that it crashes
> > in ablkcipher_walk_phys().
> 
> Were you building with Zeev's patch titled "eCryptfs: ablkcipher support
> - add workqueue"? A (temporary) link to the patch can be found here:
> 
> http://git.kernel.org/cgit/linux/kernel/git/tyhicks/ecryptfs.git/commit/?h=async
> 
> Do you have a way to reproduce this? Any exotic hardware? Any crypto
> acceleration hardware?
> 
> > I looked at ecryptfs_encrypt_extent_done() and this made me think
> > whether it should have special case for having -EBUSY and -EINPROGRESS.
> 
> Looking at other ablkcipher callbacks, I'd think we'd at least need a
> special case for -EINPROGRESS.
> 
> > 
> > Sorry about bit coares "bug report" but I'm not expert either with
> > ecryptfs or crypto implementation.
> 
> No problem, thanks for bringing it to our attention!
> 
> 
> Additionally, I just cc'ed you on a different patch that I have been
> working as an alternative to the async patch. Maybe you can give it a
> try, as well.
> 
> Tyler
> Email had 1 attachment:
> + signature.asc
>   1k (application/pgp-signature)

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

end of thread, other threads:[~2013-04-18 20:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-30 13:57 async crashes Jarkko Sakkinen
2013-04-05 23:52 ` Tyler Hicks
2013-04-18 20:45   ` Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox