Trond Myklebust
d8a1a00055
nfsd: Fix another OPEN stateid race
...
If nfsd4_process_open2() is initialising a new stateid, and yet the
call to nfs4_get_vfs_file() fails for some reason, then we must
declare the stateid closed, and unhash it before dropping the mutex.
Right now, we unhash the stateid after dropping the mutex, and without
changing the stateid type, meaning that another OPEN could theoretically
look it up and attempt to use it.
Reported-by: Andrew W Elble <aweits@rit.edu>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2017-11-27 16:45:10 -05:00
..
2017-11-22 20:17:54 -10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-24 13:55:46 +00:00
2017-11-17 16:10:02 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-16 11:41:22 -08:00
2017-11-15 18:21:06 -08:00
2017-11-21 05:38:32 -10:00
2017-11-15 18:21:04 -08:00
2017-11-17 12:54:01 -08:00
2017-10-19 16:15:16 +02:00
2017-11-17 13:20:41 -08:00
2017-11-14 11:35:15 -08:00
2017-11-07 20:25:03 +01:00
2017-11-14 14:44:04 -08:00
2017-11-17 14:16:21 -08:00
2017-11-02 11:10:55 +01:00
2017-09-07 11:59:42 -07:00
2017-11-17 09:51:57 -08:00
2017-11-17 11:54:55 -08:00
2017-11-16 12:10:21 -08:00
2017-11-17 16:10:03 -08:00
2017-11-16 11:41:22 -08:00
2017-11-15 19:42:40 -08:00
2017-11-15 18:21:06 -08:00
2017-11-17 16:10:03 -08:00
2017-11-17 16:10:03 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-15 18:21:06 -08:00
2017-11-14 14:13:11 -08:00
2017-11-17 09:51:57 -08:00
2017-11-02 11:10:55 +01:00
2017-11-14 13:53:18 -08:00
2017-09-07 11:59:42 -07:00
2017-11-18 11:22:04 -08:00
2017-11-02 11:10:55 +01:00
2017-11-13 17:56:58 -08:00
2017-11-17 14:18:00 -08:00
2017-09-26 09:25:38 -04:00
2017-11-27 16:45:10 -05:00
2017-11-17 16:10:03 -08:00
2017-11-02 11:10:55 +01:00
2017-11-15 10:14:11 -08:00
2017-11-14 15:32:19 -08:00
2017-11-21 15:57:07 -08:00
2017-11-02 11:10:55 +01:00
2017-11-21 05:40:48 -10:00
2017-11-17 13:36:59 -08:00
2017-11-22 20:20:02 -10:00
2017-11-21 15:57:05 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-14 14:13:11 -08:00
2017-09-06 17:27:26 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-14 11:35:15 -08:00
2017-11-14 14:13:11 -08:00
2017-11-02 11:10:55 +01:00
2017-11-22 20:42:42 -10:00
2017-11-17 11:54:55 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-17 12:54:01 -08:00
2017-11-16 12:50:35 -08:00
2017-11-02 11:10:55 +01:00
2017-10-13 16:18:33 -07:00
2017-10-03 17:54:25 -07:00
2017-11-14 15:32:19 -08:00
2017-11-15 18:21:06 -08:00
2017-11-02 11:10:55 +01:00
2017-11-17 12:54:01 -08:00
2017-11-17 11:54:55 -08:00
2017-11-17 09:51:57 -08:00
2017-11-15 18:21:04 -08:00
2017-11-14 15:32:19 -08:00
2017-11-02 11:10:55 +01:00
2017-11-17 16:56:17 -08:00
2017-10-25 11:01:08 +02:00
2017-11-15 08:08:36 -05:00
2017-11-17 12:54:01 -08:00
2017-11-15 18:21:04 -08:00
2017-11-17 12:54:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:32:44 +01:00
2017-10-10 08:14:37 -06:00
2017-10-25 11:01:08 +02:00
2017-11-10 08:48:46 -05:00
2017-11-02 11:10:55 +01:00
2017-11-17 12:08:18 -08:00
2017-09-10 19:31:46 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-17 12:54:01 -08:00
2017-11-08 15:16:36 -05:00
2017-11-02 11:10:55 +01:00
2017-11-17 16:10:03 -08:00
2017-11-07 10:32:44 +01:00
2017-11-17 12:08:18 -08:00
2017-11-07 10:32:44 +01:00
2017-11-17 11:54:55 -08:00
2017-11-02 11:10:55 +01:00
2017-11-17 11:54:55 -08:00
2017-10-25 11:01:08 +02:00
2017-11-02 11:10:55 +01:00
2017-11-17 12:54:01 -08:00
2017-11-17 12:54:01 -08:00
2017-11-14 15:32:19 -08:00
2017-11-02 11:10:55 +01:00
2017-11-15 18:21:05 -08:00
2017-11-02 11:10:55 +01:00
2017-10-04 18:03:15 +11:00