[Q] eCryptFS race window?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Cyrill Gorcunov
Date: Tuesday, May 20, 2008 - 10:03 am

Hi Michael,

it seems there is a few potential race window in eCryptFS which I was trying
to fix but it requires more deeper eCrypFS knowledge that have (at least only
by understanding eCryptFS in big picture it is possible to fix this problem
by elegant path). So what is the problem - the procedures

	ecryptfs_miscdev_poll
	ecryptfs_miscdev_read

does take ecryptfs_daemon_hash_mux mutex and then daemon->mux _but_ releases
them not in exactly backward order as it should. My patches (not in mainline
but you saw them) was screwed up 'cause mutex_is_locked could release mutex
acquired by another process and that is wrong. But I've a hope that I'm simply
*wrong* about this possible races ;) Take a look please.

		- Cyrill -
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Q] eCryptFS race window?, Cyrill Gorcunov, (Tue May 20, 10:03 am)
Re: [Q] eCryptFS race window?, Michael Halcrow, (Tue May 20, 11:27 am)
Re: [Q] eCryptFS race window?, Cyrill Gorcunov, (Tue May 20, 11:39 am)
Re: [Q] eCryptFS race window?, Cyrill Gorcunov, (Tue May 20, 11:54 am)