Alan Stern
984f1733fc
[SCSI] sd: Fix potential out-of-bounds access
...
This patch fixes an out-of-bounds error in sd_read_cache_type(), found
by Google's AddressSanitizer tool. When the loop ends, we know that
"offset" lies beyond the end of the data in the buffer, so no Caching
mode page was found. In theory it may be present, but the buffer size
is limited to 512 bytes.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
CC: <stable@vger.kernel.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2013-09-11 09:44:00 -07:00
..
2013-07-04 12:30:30 -07:00
2013-09-10 14:48:16 -07:00
2013-05-28 12:02:12 +02:00
2013-06-04 11:15:59 -07:00
2013-04-09 14:13:27 -04:00
2013-07-03 16:07:41 -07:00
2013-09-03 07:27:58 -07:00
2013-05-02 07:32:26 -07:00
2013-08-23 13:04:29 -04:00
2013-06-04 11:16:28 -07:00
2013-07-09 18:24:39 -07:00
2013-04-11 16:00:31 -07:00
2013-09-06 11:22:35 -07:00
2013-07-13 17:41:21 -07:00
2013-08-02 13:16:38 -07:00
2013-09-06 11:41:34 -07:00
2013-08-26 12:51:30 +04:00
2013-07-13 08:22:56 +04:00
2013-06-04 11:15:59 -07:00
2013-09-10 17:33:39 -07:00
2013-09-10 15:01:26 -07:00
2013-09-03 07:27:58 -07:00
2013-09-06 11:42:53 -07:00
2013-07-23 15:23:08 -07:00
2013-07-03 16:07:25 -07:00
2013-04-09 14:13:21 -04:00
2013-08-26 18:53:47 +04:00
2013-09-03 07:28:08 -07:00
2013-09-03 07:27:57 -07:00
2013-04-09 14:13:15 -04:00
2013-09-06 16:08:37 -07:00
2013-06-24 16:32:22 -07:00
2013-04-09 14:13:15 -04:00
2013-06-24 19:44:18 +02:00
2013-06-24 19:44:18 +02:00
2013-04-09 14:13:22 -04:00
2013-04-09 14:13:22 -04:00
2013-04-09 14:13:23 -04:00
2013-04-09 14:13:28 -04:00
2013-04-09 14:13:29 -04:00
2013-04-09 14:13:29 -04:00
2013-04-09 14:13:29 -04:00
2013-04-09 14:13:24 -04:00
2013-06-26 18:32:47 -07:00
2013-06-26 18:32:47 -07:00
2013-07-09 22:52:29 +01:00
2013-04-09 14:13:24 -04:00
2013-04-09 14:13:24 -04:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:17 -04:00
2013-09-03 07:27:58 -07:00
2013-06-26 18:32:47 -07:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:15 -04:00
2013-09-10 14:43:02 -07:00
2013-08-26 12:51:31 +04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:25 -04:00
2013-08-26 12:51:32 +04:00
2013-08-26 12:51:32 +04:00
2013-04-09 14:13:27 -04:00
2013-04-09 14:13:27 -04:00
2013-04-11 16:55:04 -07:00
2013-09-03 07:27:58 -07:00
2013-07-09 18:24:39 -07:00
2013-08-26 18:53:49 +04:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:17 -04:00
2013-09-03 07:27:58 -07:00
2013-06-05 13:49:36 -06:00
2013-04-29 15:41:57 -04:00
2013-04-09 14:13:15 -04:00
2013-04-15 14:30:44 -06:00
2013-04-15 14:30:44 -06:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:17 -04:00
2013-06-19 17:53:35 +02:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:17 -04:00
2013-06-18 13:48:45 +02:00
2013-04-09 14:13:17 -04:00
2013-09-03 07:28:08 -07:00
2013-06-24 13:00:10 -07:00
2013-08-26 18:52:27 +04:00
2013-08-26 18:52:27 +04:00
2013-03-28 14:27:24 -04:00
2013-06-03 21:49:52 +02:00
2013-05-31 15:16:51 -04:00
2013-06-24 13:00:10 -07:00
2013-08-26 18:52:27 +04:00
2013-07-03 16:07:41 -07:00
2013-08-23 13:08:30 -04:00
2013-08-02 13:20:21 -07:00
2013-05-02 15:37:03 -07:00
2013-09-11 09:44:00 -07:00
2013-06-26 17:56:18 -07:00
2013-09-03 07:28:10 -07:00
2013-05-07 02:16:21 -04:00
2013-08-21 10:10:50 -07:00
2013-07-08 15:23:15 +01:00
2013-05-04 14:50:16 -04:00
2013-05-04 14:50:16 -04:00
2013-05-04 14:50:16 -04:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:17 -04:00
2013-08-01 11:37:19 +09:30
2013-04-09 14:13:15 -04:00
2013-04-09 14:13:15 -04:00
2013-04-09 14:13:15 -04:00