J. Bruce Fields
f961e3f2ac
nfsd: encoders mustn't use unitialized values in error cases
...
In error cases, lgp->lg_layout_type may be out of bounds; so we
shouldn't be using it until after the check of nfserr.
This was seen to crash nfsd threads when the server receives a LAYOUTGET
request with a large layout type.
GETDEVICEINFO has the same problem.
Reported-by: Ari Kauppi <Ari.Kauppi@synopsys.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2017-05-10 14:25:19 -04:00
..
2017-03-03 21:44:35 -08:00
2017-03-02 08:42:31 +01:00
2017-03-16 16:29:30 +00:00
2017-03-02 08:42:31 +01:00
2017-03-02 08:42:31 +01:00
2017-04-14 16:53:45 -07:00
2017-03-02 08:42:31 +01:00
2017-03-03 11:38:56 -08:00
2017-04-17 15:44:23 -05:00
2017-03-03 11:38:56 -08:00
2017-03-25 15:36:56 -07:00
2017-02-23 20:33:51 -08:00
2017-03-09 18:23:27 -08:00
2017-03-03 11:38:56 -08:00
2017-03-03 11:38:56 -08:00
2017-03-02 08:42:31 +01:00
2017-04-03 01:06:00 -04:00
2017-03-20 10:00:18 -04:00
2017-03-09 17:01:10 -08:00
2017-03-02 10:09:00 +11:00
2017-03-03 12:14:13 -08:00
2017-03-15 10:06:07 -04:00
2017-03-03 21:44:35 -08:00
2017-03-02 08:42:31 +01:00
2017-03-02 08:42:32 +01:00
2017-04-13 18:24:21 -07:00
2017-03-02 08:42:31 +01:00
2017-03-15 15:08:48 -04:00
2017-03-02 08:42:32 +01:00
2017-02-27 18:43:46 -08:00
2017-03-17 10:25:59 +09:00
2017-05-08 18:06:18 -04:00
2017-03-02 20:51:15 -05:00
2017-03-03 10:16:38 -08:00
2017-04-27 18:00:16 -04:00
2017-05-10 14:25:19 -04:00
2017-03-02 08:42:32 +01:00
2017-03-02 08:42:32 +01:00
2017-03-02 08:42:32 +01:00
2017-03-09 18:23:27 -08:00
2017-03-02 08:42:31 +01:00
2017-04-15 09:39:31 -07:00
2017-03-08 10:42:13 -08:00
2017-04-13 18:24:21 -07:00
2017-02-24 17:46:57 -08:00
2017-03-02 08:42:31 +01:00
2017-02-27 18:43:46 -08:00
2017-02-24 17:46:57 -08:00
2017-04-08 17:33:32 +02:00
2017-03-02 20:51:15 -05:00
2017-04-18 23:18:02 +02:00
2017-03-02 20:51:15 -05:00
2017-04-09 08:26:21 -07:00
2017-03-03 10:16:38 -08:00
2017-03-02 08:42:29 +01:00
2017-03-02 20:51:15 -05:00
2017-03-02 08:42:36 +01:00
2017-03-02 08:42:39 +01:00
2017-03-02 08:42:39 +01:00
2017-03-02 08:42:36 +01:00
2017-03-02 08:42:37 +01:00
2017-03-02 08:56:59 -07:00
2017-03-02 08:42:37 +01:00
2017-02-01 09:13:51 +01:00
2017-03-02 08:42:31 +01:00
2017-03-02 08:42:36 +01:00
2017-04-08 00:47:49 -07:00
2017-02-27 18:43:46 -08:00
2017-03-02 08:42:32 +01:00
2017-03-02 08:42:32 +01:00
2017-03-02 08:42:35 +01:00
2017-03-02 08:42:35 +01:00
2017-03-02 08:42:31 +01:00
2017-03-02 08:42:29 +01:00
2017-03-02 08:42:35 +01:00
2017-03-13 08:27:34 -06:00
2017-01-30 16:32:25 -08:00
2017-03-02 08:42:37 +01:00
2017-03-06 09:50:01 -08:00
2017-03-03 11:38:56 -08:00
2017-02-04 00:01:06 +13:00
2017-02-27 18:43:46 -08:00
2017-04-15 09:34:52 -07:00
2017-03-02 08:42:38 +01:00
2017-04-19 15:56:24 -07:00
2017-02-07 15:05:04 +01:00
2017-02-04 00:01:06 +13:00
2017-02-04 00:01:06 +13:00
2017-03-02 08:42:31 +01:00
2017-03-02 08:42:38 +01:00
2017-03-03 10:16:38 -08:00
2017-03-02 08:42:29 +01:00
2017-03-03 10:16:38 -08:00
2017-04-03 01:06:00 -04:00
2017-02-23 20:33:51 -08:00
2017-02-20 16:51:23 +01:00
2017-03-01 12:53:44 +01:00
2017-04-08 00:47:48 -07:00